I would like a cell to be color filled or formatted based on the value in the adjacent cell. For example, if cell D1= #NA then I want the font in C1 to be filled in red.I would like to compare entire range in column C and D for this. Is there any conditional formatting rules or VBA macro that can accomplish this?
0
votes
4 Answers
0
votes
To apply such a format to C3 based on the contents of D3:
- Select C3
- In Conditional Formatting click New Rule...
- Select "Use a formula to determine which cells to format"
- For the formula enter "=ISNA($D$3)"
- Click the Format button to set up the format that gets applied when the previous formula returns TRUE
Hope that helps
0
votes
0
votes
Conditional formatting would be easiest way to do this.
If under conditional formatting you select new rule and then "use a formula to determine which cells to format". A formula such as =$D$1="#na" and change the format to what you would like. If you click OK and make sure this applies to C1 and stop if true is selected.
This worked for me! If you would like to use vba then let me know.