Quote:
|
Originally Posted by robertiu
Thank you for your reply, however this is what i want to happen, if I put any number on A1, A1 will turn into color red then if I put any number on B1, B1 will turn into black, so we have A1 as red and B1 as black, but I want is that if B1 will change into black the A1 will also turn into black.
(Red for us is unpaid then when it turns black then it is paid.)
I got here some pictures on how I want it to work. It is in order from 1 to 5
|
Hi Robert,
That is exactly what I attached on my post.
The combinations are:
A1 is a number / B1 is not a number ---> A1 is red, B1 is no fill.
A1 is a number / B1 is a number ---> A1 is black, B1 is black.
A1 is not a number / B1 is a number ---> A1 is no fill, B1 is black
A1 is not a number / B1 is not a number ---> A1 is no fill, B1 is no fill.
You do not need VBA to do this because you can check the underlying values in each cell as outlined by my formulas in post #2.
I have now attached an example using Excel 2002. You can toggle the font colours in the conditional formatting also.