PC Review


Reply
Thread Tools Rate Thread

Change a cell value when another cell changes

 
 
=?Utf-8?B?d2FoYW1sZXI=?=
Guest
Posts: n/a
 
      25th Oct 2006
How do I change the value of a cell when another cell changes?
In other words, if the value of cell D12 changes I want the value in cell
E12 to be deleted.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      25th Oct 2006
In worksheet code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("D12"), Target) Is Nothing Then
Else
Range("E12").Clear
End If
End Sub
--
Gary's Student


"wahamler" wrote:

> How do I change the value of a cell when another cell changes?
> In other words, if the value of cell D12 changes I want the value in cell
> E12 to be deleted.

 
Reply With Quote
 
PCLIVE
Guest
Posts: n/a
 
      25th Oct 2006
If you know what the value in D12 is, you could use a formula in E12 to
display blank if D12 is not that pre-defined value.
example - if the value in D12 is 5 and the value in E12 is also 5 (but can
be whatever you want):

=IF(D12<>5,"",5)

HTH,
Paul

"wahamler" <(E-Mail Removed)> wrote in message
news75A9E44-C335-4414-85A7-(E-Mail Removed)...
> How do I change the value of a cell when another cell changes?
> In other words, if the value of cell D12 changes I want the value in cell
> E12 to be deleted.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the cell format doesn't change existing cell content Kate Microsoft Excel Misc 2 14th Jan 2010 04:44 PM
Need Help, DataGrid, Cell color change on cell data change =?Utf-8?B?QnJpYW5ESA==?= Microsoft C# .NET 0 13th Jun 2007 03:45 PM
Change in DataGrid Cell (combobox) should cause change in another cell (TextBox) joinzulfi@gmail.com Microsoft VB .NET 0 5th Apr 2007 08:00 AM
change current cell colour based on the value of adjacent cell on other worksheet Rits Microsoft Excel Programming 2 23rd Nov 2006 11:57 AM
Worksheet shakes like Rock n' Roll - how check the cell beside upon a singel cell change? Microsoft Excel Misc 1 4th May 2004 07:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:17 AM.