Power GETPIVOTDATA - based on multiple items in CELL reference

Zaoka

New Member
Joined
Sep 2, 2015
Messages
19
HI,

I am trying to create formula that will extract data from power pivot table based on cell reference.

Issue is that cell contains more then one Item, separated with " ; " , I can change this in any form, but I need to keep it in one cell
Example Account num.
Excel Formula:
A2 = 5110;51100

Is it possible to create getpivotdata formula that will basically sum accounts based on one cell content . So if I change cell content result change without changing formula

Excel Formula:
=IFERROR(GETPIVOTDATA("[Measures].[balance sum]";'Class 5'!$A$5;"[Report 1].[Account]";"[Report 1].[Account num.].&[5110]");0)
.

At this moment I sum multiple getpivotdata , but it is getting hard to maintain cell contents and formulas. So i wanted to cut out formula part

Excel Formula:
=IFERROR(GETPIVOTDATA("[Measures].[balance sum]";'Class 5'!$A$5;"[Report 1].[Account]";"[Report 1].[Account num.].&[5110]");0)+IFERROR(GETPIVOTDATA("[Measures].[balance sum]";'Class 5'!$A$5;"[Report 1].[Account]";"[Report 1].[Account num.].&[51100]");0)
.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,224,823
Messages
6,181,179
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