Avatar of Euro5
Euro5
Flag for United States of America asked on

find multiple conditions on different sheet

I want to return a value if multiple conditions on a row are met.
When all conditions match on same row - the same date, region, etc.
It has to look up a whole list on a separate sheet and find the one line that has all these matches and return the 'code'.
If no line matches, return a blank.
Test.xlsx
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Euro5

8/22/2022 - Mon
Flyster

You can try this Sumproduct formula:

=SUMPRODUCT(--(Sheet2!$A$2:$A$6=A2),--(Sheet2!$B$2:$B$6=B2),--(Sheet2!$C$2:$C$6=C2),Sheet2!$D$2:$D$6)

Open in new window

See attached.


PaulTest013020.xlsx

ASKER CERTIFIED SOLUTION
Norie

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Euro5

ASKER
Thank you  - this is quite valuable and was very quick!!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy