Match with variable lookup array

Oras78

New Member
Joined
Mar 18, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a table in which I'm trying to do index and match match. however, I realized my second match lookup array is within in the index table. I tried to use index within the match but I'm getting an error. I know the first multiple match is working, but the second match isn't.

Any help would be appreciated
SQL:
State SRC NetSRC.xlsx
ABCDEF
1Column2Column3Column20Column23
2Bonus Depreciation Property - Early Disposition Subtraction - ALBonus Depreciation Current Year Addback
3Jurisdiction CodeFiler IndicatorBonus Depreciation Property - Early Disposition Subtraction - ALCredit for Employer Differential Wage Payments Expenses
4AL" "908090#N/A
5ALX6456#N/A
6ALF278727
7ALR47779774777
8982887982
9
10Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year AddbackBonus Depreciation Subtraction - Pre 2005 - Prior Year
11AR" "42649-60340
12ARX17-23
13ARF00
14ARR36-50
1542702-60413
16
17Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year Subtraction - AZBonus Depreciation Subtraction - AZ
18AZ" "-360754-45701
19AZX-2968-378
20AZF00
21AZR-2844-362
22-366566-46441
Sheet1
Cell Formulas
RangeFormula
E2E2=C3
F2F2=C10
E4:F4F4=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A4)*($B$4:$B$22=$B4),0),MATCH(F$2,$C$3:$D$3,0))
F5F5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A5)*($B$4:$B$22=$B5),0),MATCH(F$2,INDEX($C$4:$D$22,,),0))
E5:E8E5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=A5)*($B$4:$B$22=B5),0),MATCH(E$2,$C$3:$D$3,0))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi, I have a table in which I'm trying to do index and match match. however, I realized my second match lookup array is within in the index table. I tried to use index within the match but I'm getting an error. I know the first multiple match is working, but the second match isn't.

Any help would be appreciated
SQL:
State SRC NetSRC.xlsx
ABCDEF
1Column2Column3Column20Column23
2Bonus Depreciation Property - Early Disposition Subtraction - ALBonus Depreciation Current Year Addback
3Jurisdiction CodeFiler IndicatorBonus Depreciation Property - Early Disposition Subtraction - ALCredit for Employer Differential Wage Payments Expenses
4AL" "908090#N/A
5ALX6456#N/A
6ALF278727
7ALR47779774777
8982887982
9
10Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year AddbackBonus Depreciation Subtraction - Pre 2005 - Prior Year
11AR" "42649-60340
12ARX17-23
13ARF00
14ARR36-50
1542702-60413
16
17Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year Subtraction - AZBonus Depreciation Subtraction - AZ
18AZ" "-360754-45701
19AZX-2968-378
20AZF00
21AZR-2844-362
22-366566-46441
Sheet1
Cell Formulas
RangeFormula
E2E2=C3
F2F2=C10
E4:F4F4=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A4)*($B$4:$B$22=$B4),0),MATCH(F$2,$C$3:$D$3,0))
F5F5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A5)*($B$4:$B$22=$B5),0),MATCH(F$2,INDEX($C$4:$D$22,,),0))
E5:E8E5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=A5)*($B$4:$B$22=B5),0),MATCH(E$2,$C$3:$D$3,0))
I forgot to move the above lookup reference for the fist match.
State SRC NetSRC.xlsx
ABCDEF
1Column2Column3Column20Column23
2Bonus Depreciation Property - Early Disposition Subtraction - ALBonus Depreciation Current Year Addback
3Jurisdiction CodeFiler IndicatorBonus Depreciation Property - Early Disposition Subtraction - ALCredit for Employer Differential Wage Payments Expenses
4AL" "908090#N/A
5ALX6456#N/A
6ALF278727
7ALR47779774777
8982887982
9
10Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year AddbackBonus Depreciation Subtraction - Pre 2005 - Prior Year
11AR" "42649-60340
12ARX17-23
13ARF00
14ARR36-50
1542702-60413
16
17Jurisdiction CodeFiler IndicatorBonus Depreciation Current Year Subtraction - AZBonus Depreciation Subtraction - AZ
18AZ" "-360754-45701
19AZX-2968-378
20AZF00
21AZR-2844-362
22-366566-46441
Sheet1
Cell Formulas
RangeFormula
E2E2=C3
F2F2=C10
F4F4=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A11)*($B$4:$B$22=$B11),0),MATCH(F$2,$C$3:$D$3,0))
F5F5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A11)*($B$4:$B$22=$B11),0),MATCH(F$2,INDEX($C$4:$D$22,,),0))
E4E4=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=$A4)*($B$4:$B$22=$B4),0),MATCH(E$2,$C$3:$D$3,0))
E5:E8E5=INDEX($C$4:$D$22,MATCH(1,($A$4:$A$22=A5)*($B$4:$B$22=B5),0),MATCH(E$2,$C$3:$D$3,0))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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