Match vertical then find match horizontally

bgrove

Board Regular
Joined
Dec 2, 2013
Messages
60
Hi,

Need additional brain power on this one.

I'm trying to use conditional formatting formulas to find the Sales Name AND match to the Sales Acct. IF the name cannot be found the row highlights red. If the Name is found but the account cannot the row highlights red.

I've tried his formula and it does not work
=and(VLOOKUP(f2,'ADM'!$D$2:$D$102,1,0)=f2,VLOOKUP(g2,'ADM'!$E$2:$E$102,1,FALSE)=g2)

I've tried this formula and it does not work:

=and(match(f2,l2:l12,0),match(g2,m2,m12,0))


Here is my data:

Sales Name Sales Acct ____________ Master Sales Name ___ Master Acct
John Doe---------64540 _____________ Cindy Lu----------------------1015
John Doe---------10039818___________ John Doe----------------------1039818
Jane Doe---------10140184___________ John Doe----------------------64540
Jane Doe---------64554 _____________ Jane Doe-----------------------10140184
Cindy Lu----------1015 ______________ Jane Doe-----------------------64554

I would love some suggestions or additional brain power on this one.

Thank you,

Bev
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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