Using IF and Index Match Match in single statement

rhonllanders

New Member
Joined
Mar 21, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi!
I've been stuck on this one for a hot minute and all approaches are a #SPILL!
I'm trying to get a formula to pull in data from another file's table where Key = Yes and section of data values match both column header name and the row unique ID number.
Can you see what I'm doing wrong here?

=IF('Dashboard.xlsx'!Data[Key (Yes/No)]="Yes",IF(INDEX('Dashboard.xlsx'!Data[[Missing]:[Misaligned]], MATCH($C4,'Dashboard.xlsx'!Data[Unique ID])),MATCH(J$1, 'Dashboard.xlsx'!Data[[#Headers],[Missing]:[Misaligned]], 0)),"-")

Any help is always appreciated!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I'm guessing somewhat, but have a look:
Dashboard.xlsx
ABCDEF
1Unique IDKey (Yes/No)MissingNextMisalignedLast
211Yes171319
322Yes281420
433No391521
544No4101622
611Yes5111723
711No6121824
Sheet1

Book3
ABCJ
11Missing
25Heading Name
3Unique ID
411
Sheet4
Cell Formulas
RangeFormula
A1:A2A1=FILTER(FILTER(Dashboard.xlsx!Data[[Missing]:[Misaligned]],(Dashboard.xlsx!Data[Key (Yes/No)]="Yes")*(Dashboard.xlsx!Data[Unique ID]=$C4)),(Dashboard.xlsx!Data[[#Headers],[Missing]:[Misaligned]]=J$1))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,985
Members
452,540
Latest member
haasro02

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