Lookup 3 conditions on different sheet

colzre

New Member
Joined
Jan 8, 2024
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hello experts,

I am trying to build a lookup function (any other I would be happy too) to consider 3 conditions from Sheet2 and return to Sheet1 if all of them meet.

Basically if all conditions PROYECT, CONCEPT AND VAT are found, then return VAT TO RETURN on cell R9. Blank cells would return as zero value. I used xlookup with no success.

Any idea to make it work?

Many thanks beforehand!


Regards,

John

Book1.xlsx
KLMNOPQRS
6
7
8PROYECTCONCEPTVATVAT TO RETURN
9AustriaITInvoice#VALUE!
10FranceAdministration
11BrazilTravelsInvoice
12
13
Sheet1
Cell Formulas
RangeFormula
R9R9=XLOOKUP(K9,Sheet2!E6:E8,XLOOKUP(L9,Sheet2!F6:F8,XLOOKUP(M9,Sheet2!G6:G7,Sheet2!H6:H8)))




Book1.xlsx
EFGH
2
3
4PROYECTSCONCEPTVATVAT TO RETURN
5
6AustriaITInvoice20
7FranceAdministration20
8BrazilTravels7
Sheet2
 

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.
Maybe this?

Book1
JKLMNOPQRS
6
7
8PROYECTCONCEPTVATVAT TO RETURN
9AustriaITInvoice20
10FranceAdministration
11BrazilTravelsInvoice
12
13
Sheet1
Cell Formulas
RangeFormula
R9R9=LET(lookup,BYROW(Sheet2!$E$6:$G$8,LAMBDA(r,CONCAT(r))),return,Sheet2!$H$6:$H$8,XLOOKUP(K9&L9&M9,lookup,return,0,0))
 
Upvote 0
Or try this: This is not a single cell formula and needs to be copied down.
You can change the "Not Found" in the formula to a zero.

ExcelQuestions80.xlsx
KLMNOPQR
1
2
3
4
5
6
7
8PROYECTCONCEPTVATVAT TO RETURN
9AustriaITInvoice20
10FranceAdministration20
11BrazilTravelsInvoiceNot Found
12Not Found
Sheet1
Cell Formulas
RangeFormula
R9:R12R9=XLOOKUP( K9&L9&M9, Sheet2!$A$5:$A$7 & Sheet2!$B$5:$B$7 & Sheet2!$C$5:$C$7, Sheet2!$D$5:$D$7,"Not Found",0)
 
Upvote 0
Solution
Thank you both.

Sorted with your help!!

Appreciated (y)(y)(y)
 
Upvote 0
My pleasure, happy to help. Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

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