Excel won't allow more nesting issue!!!

swagyolo

New Member
Joined
Jun 17, 2015
Messages
16
My formula is: =G4+IF(K3=1,GETPIVOTDATA("Sum of 1EL",$A$10),IF(K3=2,GETPIVOTDATA("Sum of 2EL",$A$10), IF(K3=3,GETPIVOTDATA("Sum of 3EL",$A$10), IF(K3=4,GETPIVOTDATA("Sum of 4EL",$A$10), IF(K3=5,GETPIVOTDATA("Sum of 5EL",$A$10), IF(K3=6,GETPIVOTDATA("Sum of 6EL",$A$10), IF(K3=7,GETPIVOTDATA("Sum of 7EL",$A$10), IF(K3=8,GETPIVOTDATA("Sum of 8EL",$A$10), IF(K3=9,GETPIVOTDATA("Sum of 9EL",$A$10))))

Everytime I try and use this, it says that I am unable to use it in my current version of excel. I tried switching to an XML, but I wasn't allowed to do that either.
 

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I've never used that function, but does this work for you?

=G4+GETPIVOTDATA("Sum of "&K3&"EL",$A$10)

I'm not sure, you might need INDIRECT with that:

=G4+GETPIVOTDATA(INDIRECT("Sum of "&K3&"EL"),$A$10)
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,160
Messages
5,600,058
Members
414,357
Latest member
Gemma_R

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
Top