Help on XLOOKUP

amim79

New Member
Joined
Sep 5, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a couple of sheets and I want to do an xlookup based on 2 columns in a separate sheet.

The first sheet is called 'Databases Inventory' with a sample data.

SQL Server NameDatabase NameEnvTypeCorresponding PRD SQL Clusteron-prem DB versionHas OGGIn SQL Migration ScopeKyndryl ScopeHas SQL MI Compatibility issue (y/n)Size (GB)
KULDCPWSQL05aiaIMGdb_2013PRDSingle SQL ServerN/A - StandaloneSQL 2016yyy6.74

My destination sheet is called Timeline v5 with a sample data

On-premCloudDatabase name
SUMYFAP00022SQL on VM - FAP22 UATaiaIMGdb_2013Chee Wundigital app, eCorr, NBFE, PrintAgent, etc3.12
KULDCPWSQL05SQL on VM - SQL05 PRDaiaIMGdb_2013Chee Wundigital app, eCorr, NBFE*etc6.74


I tried to do =XLOOKUP(C41,'Databases Inventory'!$B$2:$B$753,'Databases Inventory'!$I$2:$I$753) unfortunately it flagged both items. How can I select this correctly e.g. having size as a secondary lookup value from XLOOKUP?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
See if this gives you what you are after.

Book6
ABCDEFG
40On-premCloudDatabase name
41SUMYFAP00022SQL on VM - FAP22 UATaiaIMGdb_2013Chee Wundigital app, eCorr, NBFE, PrintAgent, etc3.12Not Found
42KULDCPWSQL05SQL on VM - SQL05 PRDaiaIMGdb_2013Chee Wundigital app, eCorr, NBFE*etc6.74y
Timeline v5
Cell Formulas
RangeFormula
G41:G42G41=XLOOKUP(1,('Databases Inventory'!$B$2:$B$753=C41)*('Databases Inventory'!$K$2:$K$753=F41),'Databases Inventory'!$I$2:$I$753,"Not Found")
 
Upvote 0
Solution
Hi Alex, it is what I am looking for. I sent over the my other modified sheet, and wondering why it didn't work. It gave me some time to study and formula and few tweaks here and there it worked! Thanks Alex the Wizard. You made my day!
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

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