Check if multiple values exist in other columns

Wishmaster89

Board Regular
Joined
Jan 10, 2022
Messages
77
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
  2. MacOS
Hi

I want to check that both ID and Date from the right side match the value in the columns on the left. If both matches are true i want to vlookup(the easy bit!) to return programme name into column I.

I have tried using a match statement but can't get it to work.

Can any one help please?

if and match.xlsx
ABCDEFGHIJK
1IDDateprogrammeID Dateprogramme
212301/11/2021maths22201/12/20214Yes
333301/02/2022english12301/11/2021Yes
422201/12/2021history33301/02/2022Yes
Sheet1
Cell Formulas
RangeFormula
I2I2=IF(MATCH(G2,A:A,0),(MATCH(H2,B:B,0)),"no match")
K2:K4K2=IF(MATCH(H2,B:B,0),"Yes","No")
 
@etaf It works, thank you again. I didn't know you could have multiple lookup values for match.
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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