changing the INDEX function so it looks in 2 ranges

elcalvo

New Member
Joined
Dec 15, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
in one sheet I have changed this formula:

B4: =TRANSPOSE(SORT(UNIQUE(BaseData[Partner])))
which returned 6 values in B4:G4

into:

B4: =INDEX(SORT(UNIQUE(BaseData[Partner])),SEQUENCE(2,3,1,1))
which returns 6 values in B4:D5

in another sheet I have the formula:

=XLOOKUP([@Partner], INDEX('🔽 FILTER'!$B$4#,,), INDEX('🔽 FILTER'!$B$5:$G$5,,))

where I want to change: INDEX('🔽 FILTER'!$B$5:$G$5,,) so it looks in the range: B3:D3 and B6:D6

the formula should return TRUE or FALSE if the Partner was found in B3:D3 or B6:D6
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sorry, I see my post was somehow blunt.

I'd appreciate support for this issue and copied some screenshots in to clarify:

To Do.xlsm
BCD
2Partner
3
4ABC
5DEF
6
🔽 FILTER
Cell Formulas
RangeFormula
B4:D5B4=INDEX(SORT(UNIQUE(BaseData[Partner])),SEQUENCE(2,3,1,1))
Dynamic array formulas.


To Do.xlsm
M
5Include Partner
6#REF!
CRM
Cell Formulas
RangeFormula
M6M6=OR(XLOOKUP([@Partner], INDEX('🔽 FILTER'!$B$4#,,), INDEX('🔽 FILTER'!$B$3#,,)) = [@Partner], XLOOKUP([@Partner], INDEX('🔽 FILTER'!$B$4#,,), INDEX('🔽 FILTER'!$B$6#,,)) = [@Partner])
Named Ranges
NameRefers ToCells
FromArray_1='🔽 FILTER'!$B$4#M6
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,953
Members
449,095
Latest member
nmaske

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