Index match on pivot table with same column names

stefanh

New Member
Joined
May 25, 2021
Messages
2
Platform
  1. Windows
Hello guys - I am new to posting here but have been a frequent user of the forum for years, has helped me a lot throughout the years. I am trying to do an Index Match on a Pivot table where some sub-columns have the same name (please see below)
Path 1Path 1 TotalPath 2
Row LabelsJanFebMarAprJanFeb
Client 11215523025422132169

I am trying to get the values for instance for Jan in Path 2 (ie. 132). If i am hovering over the cell, the column name appears as "Path 2 - Jan", so I have used the below formula (with a list of clients in "Pivot 1" and the sheet where I am entering the formula in "Aggregate"
=INDEX('Pivot 1'!$1:$1048,MATCH(Aggregate!$A6,'Pivot 1'!$A:$A,0),MATCH("Path 2 - Jan",'Pivot 1'!$4:$4,0))

I have decomposed the formula and the last part is the one that is not working ie. MATCH("Path 2 - Jan",'Pivot 1'!$4:$4,0). It's clearly the name of the sub-column that is not recognized.
Would anyone know what to do to fix this?
Many thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Is there any reason you don't want to use the GetPivot formulas ?

20210525 Pivot GetPivot.xlsx
ABCD
1
2
3
4
5ClientJanFeb
6Client 1132169
7Client 20700
8
Aggregate
Cell Formulas
RangeFormula
B6:C7B6=IFERROR(GETPIVOTDATA("Amt",'Data and Pivot'!$F$17,"Client",$A6,"Path","Path 2","Month",B$5),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

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