Can Xlookup return all valid returns on multiple criteria?

fddekker

Board Regular
Joined
Jun 30, 2008
Messages
86
Office Version
  1. 365
Platform
  1. Windows
I was wondering if there is a functionality in XLookup that can return all valid entries when the look-up is done on more than one criteria. Does Xlookup have the capability to 'spill' like the filter function do? Below is an example: I would like to display all returns for the two parameters entered in cells E2 and F2, from the lists in columns A & B using Xlookup, is that possible? (I know it can be done with Match and Row, but it could be great if this can be done with Xlookup)
Excel365.xlsx
ABCDEFG
1Tax JurisdictionTax CodeAmountTax JurisdictionTax CodeAmount
2NYA07200CN2,453.00NYA07300CR(6,800.00)
3NYA07200CN8,352.00(1,267.00)
4NYA07200CR(63.56)(7,612.00)
5NYA07300CN8,194.001,082.00
6NYA07300CR(6,800.00)
7NYA07300CR(1,267.00)
8NYA07300CR(7,612.00)
9NYA07300EN(6,393.00)
10NYA07300EN1,429.00
11NYA07300EN4,121.00
12NYA07300CR1,082.00
13NYA07300EN(4,246.00)
14NYA07300EN725.00
15NYA07300EN684.00
16NYA07400ER5,489.00
17NYA07400ER5,508.00
18NYA07400O0(2,462.00)
19NYA07400CR8,193.00
20NYA07400CN(1,494.00)
Sheet2
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Xlookup will only return the 1st match, why not use the Filter function.
 
Upvote 0
Thanks for the confirmation. I know how to do it with the new filter function, but this would have been a nice feature to wean corporate users off of V and HLookup. (Additional motivation.)
 
Upvote 0
I would have that Filter would be better for that.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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