How does one get around Xlookups duplicates vs filters size limitations?

BEDE

New Member
Joined
Mar 29, 2024
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hello,

Can't figure this out. I have two data sets I'm trying to match up. The issue is criteria in one data set is limited to dates and numbers, both can be matched, however the return array has a (encore) on certain days. For example, with xlookup the return array contains duplicates on days that have encore, the return array doesn't account that for ThisMovie vs ThisMovie(Encore) it just puts one based on search order. Filter on the other hand does account for it but the array needs to be of compatible size, which is probably how it returns correct data because it just does it verbatim every row idk

SAME RESULTS
=XLOOKUP(DATEVALUE(DATASET[dates])*DATASET[numbers],DATEVALUE('INFO (5)'!F12#)*'INFO (5)'!B12#,'INFO(5)'!A12#)
=INDEX('INFO(5)'!A12#,XMATCH(DATEVALUE(DATASET[dates])*DATASET[numbers],DATEVALUE('INFO(5)'!F12#)*'INFO(5)'!B12#,0,1))

Also why does boolean logic not work if the starting dates are different? does it too need to be of a compatible sizes?
--(DATEVALUE(DATASET[dates])=DATEVALUE('INFO (5)'!F12#))
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Here's an example, filter works but it needs to be same size which it will never be.

production.xlsb
OPQRSTUVW
10CR1CR2CR1CR2ReturnXlookupupXlookupup reversefilter
114/8/20242504/8/2024250name date a250name date a250name date a250name date a250
124/8/20245004/8/2024500name date a500name date a500name date a500name date a500
134/8/20247504/8/2024750name date a750name date a750name date a750name date a750
144/9/20242504/9/2024250name date a250name date a250name date a250name date a250
154/9/20245004/9/2024500name date a500name date a500name date a500name date a500
164/9/20247504/9/2024750name date a750name date a750name date a750name date a750
174/10/20242504/10/2024250name(encore) date a250name(encore) date a250name date a250name(encore) date a250
184/10/20245004/10/2024500name(encore) date a500name(encore) date a500name date a500name(encore) date a500
194/10/20247504/10/2024750name(encore) date a750name(encore) date a750name date a750name(encore) date a750
204/10/20242504/10/2024250name date a250name(encore) date a250name date a250name date a250
214/10/20245004/10/2024500name date a500name(encore) date a500name date a500name date a500
224/10/20247504/10/2024750name date a750name(encore) date a750name date a750name date a750
234/11/20242504/11/2024250name date a250name date a250name date a250name date a250
244/11/20245004/11/2024500name date a500name date a500name date a500name date a500
254/11/20247504/11/2024750name date a750name date a750name date a750name date a750
Sheet1
Cell Formulas
RangeFormula
U11:U25U11=XLOOKUP(O11:O25*P11:P25,R11:R25*S11:S25,T11:T25)
V11:V25V11=XLOOKUP(O11:O25*P11:P25,R11:R25*S11:S25,T11:T25,,,-1)
W11:W25W11=FILTER(T11:T25,O11:O25*P11:P25=R11:R25*S11:S25)
Dynamic array formulas.
 
Upvote 0
I'm not really sure what you are trying to do? Are columns O:P the data that you are looking up, R:T the columns that you are trying to match against?

Given a date and CR2, how to you know if the correct one was pulled? what tells you if it was an encore or not?
 
Upvote 0
SCAN(0,O11:S25,LAMBDA(AA,BB,CC,DD,EE,XLOOKUP(AA,CC,EE,"EMPTY",0))) <- FAILED.
 
Upvote 0
I'm not really sure what you are trying to do? Are columns O:P the data that you are looking up, R:T the columns that you are trying to match against?

Given a date and CR2, how to you know if the correct one was pulled? what tells you if it was an encore or not?
"CR1'= Criteria Range 1 etc, so basically, dataone(Criteria Range 1, Criteria Range 2) datatwo(cr1, cr2, return array)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

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