Index Match Return Second Column, not first

CPR83

New Member
Joined
Sep 27, 2019
Messages
1
Hello,

I am building a template based on a auto-generated template coming out of our financial system. Right now the source data is
July August September
AreaActualBudgetActualBudgetActualBudget
Area1101512151218
Area2121812181318
Area3598946
Area4265849

<tbody>
</tbody>


My end goal is to create an index match to return a table that looks like this:

Actuals
AreaJulyAugustSeptemberOctoberNovember
Area1101212
Area2121213
Area3584
Area4254

<tbody>
</tbody>


Right now I have it set up to index match successfully on the first column for Actuals. I want to create another table for just the budget. I know I can do this with a simple link but I like having these checks in place. Right now my index match checks against a cell with "Actuals" against the column heading of the source table.
This is my current formula and it works well for the Actuals table:
=INDEX('Total'!$C$7:$AN$22,MATCH(Sheet1!$B8,'Total'!$A$7:$A$22,0),MATCH(Sheet1!E$4,'Total'!$C$4:$AN$4,0),MATCH($B$3,''!$C$5:$AN$5,0))

Only problem is I can't figure out how to return the budget column since the formula above is returning the first column automatically.

I've been searching for an answer but can't seem to come up with a solution.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Book1
ABCDEFG
2JulyJulyAugustAugustSeptemberSeptember
3AreaActualBudgetActualBudgetActualBudget
4Area1101512151218
5Area2121812181318
6Area3598946
7Area4265849
8
9
10Actual
11AreaJulyAugustSeptemberOctoberNovember
12Area1101212
13Area2121213
14Area3584
15Area4254
16
17
18budget
19AreaJulyAugustSeptemberOctoberNovember
20Area1151518
21Area2181818
22Area3996
23Area4689
Sheet2
Cell Formulas
RangeFormula
B12{=INDEX($B$4:$G$7,MATCH($A12,$A$4:$A$7,0),MATCH(B$11&$A$10,$B$2:$G$2&$B$3:$G$3,0))}
B20{=INDEX($B$4:$G$7,MATCH($A20,$A$4:$A$7,0),MATCH(B$11&$A$18,$B$2:$G$2&$B$3:$G$3,0))}
C12{=INDEX($B$4:$G$7,MATCH($A12,$A$4:$A$7,0),MATCH(C$11&$A$10,$B$2:$G$2&$B$3:$G$3,0))}
C20{=INDEX($B$4:$G$7,MATCH($A20,$A$4:$A$7,0),MATCH(C$11&$A$18,$B$2:$G$2&$B$3:$G$3,0))}
D12{=INDEX($B$4:$G$7,MATCH($A12,$A$4:$A$7,0),MATCH(D$11&$A$10,$B$2:$G$2&$B$3:$G$3,0))}
D20{=INDEX($B$4:$G$7,MATCH($A20,$A$4:$A$7,0),MATCH(D$11&$A$18,$B$2:$G$2&$B$3:$G$3,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Personally I like using sumifs and dates Excel understands. By using sumifs then it is much easier to use a criteria for summing.

So in your case I would replace the dates if they arent in the real Excel way and them. Then build your separate tables that also have dates on top. You can format them as displaying the month name not an actual date.

Set the dates with the eomonth function. For the File that comes from the system you will need do a double month setup so there are dates for both bud and act. Just set two cells to end of july then to the right use two cells with eomonth functions and ref to those two cells. Then you mark both cells with the eomonth functions and drag to the right
 
Last edited:
Upvote 0
Maybe
INDEX('Total'!$C$7:$AN$22,MATCH(Sheet1!$B8,'Total'!$A$7:$A$22,0),MATCH(Sheet1!E$4,'Total'!$C$4:$AN$4,0)+1)
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,923
Members
448,533
Latest member
thietbibeboiwasaco

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