Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50049

Clear cell when Value of cell that is not target changes.

$
0
0
I have 2 list:
Names1
Names2

The value of G:G will change which list is displayed in D on the same row. However not every change that occurs in G:G will require D on the same row to be cleared.

For example
User selects value of G4
Red _ list Names1 should appear in D4
Blue _ list Names2 should appear in D4
Green _ list Names2 should appear in D4
Yellow _ list Names2 should appear in D4

I have set up M:M to monitor G:G with =IF(G4="Red","Names1","Names2")

I want Cell D of the same row to only clear if the List needs to be changed.
In other words if I change G4 from Blue (list Names2) to Red (list Names1) then D4 needs to clear.
If I change from Blue to Green (list Names2) then it does NOT clear.

M:M will be hidden and never a target. Only Cells D:D will be targeted.
Attached Files

Viewing all articles
Browse latest Browse all 50049

Trending Articles