Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change a cell value when another cell changes

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Change a cell value when another cell changes

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Change a cell value when another cell changes

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
Using DTPicker to change date in a cell when user selects cell? WaterDog Excel Programming 3 June 8th 06 01:36 PM
How can i change cell colour depending on month of date in cell? andy75 Excel Discussion (Misc queries) 2 January 6th 06 07:46 AM
How do I change the color of a cell depending on the result of the function in that cell Mo Childs[_2_] Excel Programming 4 November 1st 05 09:30 PM
Change Cell Value Across whole WorkSheet/ Workbook if cell type is currency Shashi Bhosale Excel Programming 1 October 11th 04 03:20 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"