Conditional Formatting where cell value is a formula

RattlingCarp3048

Board Regular
Joined
Jan 12, 2022
Messages
166
Office Version
  1. 365
Platform
  1. Windows
I have this formula D=VLOOKUP(B7,'Sheet 1'!C:E,3,0) which either returns a date or "New"

i want to conditionally format column D to highlight the cell if the value = "New"

these are all the variations i have tried so far and nothing has worked. Any help is appreciated.

=ISFORMULA($D:$D)
=ISFORMULA($D:$D)="New"
=ISFORMULA(indirect($D:$D))="New"
=ISFORMULA(INDIRECT($D:$D)="New")
=ISFORMULA(INDIRECT($D:$D="New"))
=INDIRECT($D:$D="New")
=INDIRECT($D:$D)="New"

*also tried putting the vlookup directly into the conditional formatting formula field as well as New vs "New"
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
When you write Conditional Formatting formulas, if applying to a multi-cell range, you write the formula as it applies to the very FIRST cell in your selection (a single cell), and Excel will automatically adjust it for the rest of the cells in that range.

So, if you wanted to Conditionally Format column D (though I would recommend against formatting an entire column, as that is over 1 million cells), you would select column D, and then enter your formula like this:
Excel Formula:
=ISFORMULA($D1)
(notice how it is referencing a single cell, not the entire range).
 
Upvote 0
I can limit the range to D1:D30, no problem, no need to go to 1M in this case.

So how would I limit the formatting to only the cells that =New?

Isformula($D1="New")?
 
Upvote 0
try: =AND(ISFORMULA($D1),$D1="New")
 
Upvote 0
Solution
I omitted the $, but it makes no difference in a single column.

Mr Excel Questions.xlsx
ABCDEFG
2A4561/15/2023
3B141321/16/2023
4C121/17/2023
5
6B7LOOKUP
7DNew
8B1/16/2023
9C1/17/2023
10A1/15/2023
11QNew
12
Sheet3
Cell Formulas
RangeFormula
D7:D11D7=IF(ISNA(VLOOKUP(B7,$C$2:$E$4,3,0)),"New",VLOOKUP(B7,$C$2:$E$4,3,0))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D7:D11Expression=AND(ISFORMULA(D7),D7="New")textNO
 
Upvote 0
try: =AND(ISFORMULA($D1),$D1="New")
this is the one that ended up working for me, without the $. Thank you for getting me in the right direction!

1674666807537.png
 
Upvote 0
@RattlingCarp3048 , if you find that one of the threads has provided you with an answer please mark that thread as answered.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top