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.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

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:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,711
Messages
5,833,254
Members
430,200
Latest member
ADLHMA2022

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