Lookup 3 conditions on different sheet

colzre

New Member
Joined
Jan 8, 2024
Messages
25
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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
My pleasure, happy to help. Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

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