Excel formula to compare multiple matches

MFT

New Member
Joined
Feb 14, 2023
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Excel formula for multiple matches. Kindly help to find a formula in G3 and G4. I have data in column B and C, I wanted to match it with column E and F. However vlookup does not work as there are multiple matches. I wanted a result of True/False if B and C contains the values in E and F.

Project codeBSProject CodeProject Business StreamResult
3702​
AAAA
3999​
AAAA
TRUE​
3875​
BBBB
3999​
DDDD
FALSE​
3961​
CCCC
3999​
CCCC
3999​
AAAAIn cell G3
3999​
BBBBI wanted a result here if B column contains 3999 with AAAA also present, then True
4271​
DDDDIn cell G4
4291​
AAAAI wanted a result here if B column contains 3999 with DDDD is not present, then False
4307​
BBBB
3999​
CCCC
4400​
CCCC
4403​
BBBB
4403​
DDDD
4403​
AAAA
4403​
AAAA
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    24.5 KB · Views: 6

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this formula in G3 and copy it down to G4

Excel Formula:
=COUNTIFS(B$3:B$17,E3,C$3:C$17,F3)>0
 
  • Like
Reactions: MFT
Upvote 0
Solution
Try this formula in G3 and copy it down to G4

Excel Formula:
=COUNTIFS(B$3:B$17,E3,C$3:C$17,F3)>0
Amazing Peter !! This is working exactly with my requirement. Many thanks :)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

BTW, Welcome to the MrExcel board!
 
Upvote 1

Forum statistics

Threads
1,214,834
Messages
6,121,877
Members
449,056
Latest member
ruhulaminappu

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