Conditional Formatting Formula

easybpw

Active Member
Joined
Sep 30, 2003
Messages
407
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello everyone,

Thanks in advance for the help. I'm trying to do conditional formatting using a formula with a vlookup and OR statement. However I can't figure it out. My preference is to use wild cards but I understand conditional formatting doesn't allow for this. Below is what I have but it clearly isn't working. I can get it to work if I only have one condition but not if I have more than one. Any help is appreciated.

=VLOOKUP($T2,PAY!$A$4:$E$35,5,0)=(OR("H","E"))
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,362
Office Version
  1. 365
Platform
  1. Windows
Try
Excel Formula:
=OR(VLOOKUP($T2,PAY!$A$4:$E$35,5,0)="H",VLOOKUP($T2,PAY!$A$4:$E$35,5,0)="E")
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,362
Office Version
  1. 365
Platform
  1. Windows
Another possibility
Excel Formula:
=ISNUMBER(SEARCH(VLOOKUP($T2,PAY!$A$4:$E$35,5,0),"HE"))
 

Watch MrExcel Video

Forum statistics

Threads
1,127,238
Messages
5,623,549
Members
415,980
Latest member
Lidget

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
Top