Xlookup multiple lookups

ecrodrig

Board Regular
Joined
Jan 21, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I have a file that I want to do the following on xlookup C2 in T&MMthlyFile tab column B but I want it to only look at the row that has Total in it I am attaching a picture. So basically find Project1 but only give me row 2 since that is the row that has project 1 and TOTAL on it. Just need the first part of the formula as I nee dto add other information to it but need to know how to pull just that particular row.

Thanks in advance.
 

Attachments

  • Screen Shot 2022-08-06 at 2.43.18 PM.png
    Screen Shot 2022-08-06 at 2.43.18 PM.png
    79.8 KB · Views: 13
Sorry I did find one more issue. My "real" file where I need the output has 131 lines and the file where I am pulling the info only has 100 lines. When I pull down the formula I am good up to line 25 but after that, I get no more results. Any suggestions?
I found the issue everything needed to stay constant so $R$2:$R$100 and so on. This has fixed my problem. THANKS again
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Glad you sorted it & thanks for letting us know.
 
Upvote 0
You could try this and see if it leads to another way to achieve.
small data set and the XLOOKUP formula in D11 is =XLOOKUP("Total"&C11,$A$2:$A$8&$B$2:$B$8,$D$2:$D$8)
you join the lookup together and also join the lookup array together so they match, then target the column you want the answer from.
columns in use are A to D, result are underneath in column D (June dollars)

PM ProjectRFS #June dollars
TotalProject1
100​
1​
Project1
2​
Project1
TotalProject2
200​
Project2
TotalProject3
500​
4​
Project3
Project1
100​
Project2
200​
Project3
500​
Project4
#N/A​
 
Upvote 0
Why would you want to use that when the filter function is far more efficient?

the XLOOKUP formula in D11 is
And which is D11? Why not use the XL2BB add-in to post data in future, that way we can see which cell is which.
 
Upvote 0
Hi Fluff, First time in using this not sure how to upload my example Excel file, just wanted to show another way to get those answers.
 
Upvote 0

Forum statistics

Threads
1,217,414
Messages
6,136,494
Members
450,016
Latest member
murarj

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