xlookup

whynot

Board Regular
Joined
Jun 27, 2009
Messages
115
Office Version
  1. 365
Platform
  1. Windows
Am i able to use the XLOOKUP function to perform the following task.

I need the value that matches year and week in my output sheet from the data i have in another sheet.

See screenshots below

My output sheet - Column C would is output column and I need to fill that column with data from the sheet below if it matches year and week.
1599931829728.png


My data sheet - Need to pull the values from column G

1599931982881.png


Thank you in advance for your help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You'd do that the same way as I showed you before
Excel Formula:
=XLOOKUP($A3&"|"&$B3,Sheet1!$A$2:$A$100&"|"&Sheet1!$B$2:$B$100,Sheet1!$G$2:$G$100,"",0)
 
Upvote 0
Thank you - i am getting the following message - "VALUE"

I am using the following formula

=XLOOKUP($A3&"|"&$B3,US!$A$2:$A$1000&"|"&US!$B$2:$B$1000,US!$G$2:$G$100,"",0)
 
Upvote 0
I figured it out.

thank you very much for your help!!!

Again, you saved me a ton of time!!

I really appreciate the help!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
If you are interested you could also use this approach.

Excel Formula:
=INDEX(FILTER(US!G$2:G$1000,(US!A$2:A$1000=A3)*(US!B$2:B$1000=B3),""),1)
 
Upvote 0
Thank you very much for the reply.

I knew about Index function - not that i am very good at using it.

i did not know about the Filter function.

I will try to understand it better.

Thank you very much!!

I really appreciate the help.
 
Upvote 0
You are very welcome. Thanks for the follow-up. :)

The FILTER function is another of the new functions in Excel 365, along with XLOOKUP (that you are obviously aware of) & several others.
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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