Conditional formatting based on vlookup/ NA Value

rachel06

Board Regular
Joined
Feb 3, 2016
Messages
114
Office Version
  1. 365
Platform
  1. Windows
Hi!

I've been posting here a lot lately and I appreciate all of the help. I have my brain in a bit of a knot on this one, and I'm not sure if what I want is possible with conditional formatting.

Basically, if this formula finds an #N/A value, I don't want the conditional formatting to do anything, but if it finds a value, I want it to highlight the cell. Just need to know how to writhe the formula:

=VLOOKUP(B3,'Quarter Lookup'!B:C,2,0)

Thanks!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Let's say that formula is in cell A1.
Then use this Conditional Formatting formula:
Excel Formula:
=NOT(ISNA(A1))
and choose your desired formatting color.
 
Upvote 1
Solution
Let's say that formula is in cell A1.
Then use this Conditional Formatting formula:
Excel Formula:
=NOT(ISNA(A1))
and choose your desired formatting color.
Thanks!

I'm actually trying to use that formula within the conditions of the conditional formatting. Is that possible?

I tried this but it's not doing anything as far as formatting as I'd like it to. It's not formatting at all.

Code:
=NOT(ISNA(VLOOKUP(B3,'Quarter Lookup'!B:C,2,0)))


Is something like this possible? I feel like I'm on the right track but I'm getting stuck!
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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