# Excel won't allow more nesting issue!!!

#### swagyolo

##### New Member
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
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:

#### swagyolo

##### New Member
Wow. Yes it does. Thank you so much.

Replies
0
Views
366
Replies
0
Views
288
Replies
9
Views
1K
Replies
6
Views
290
Replies
6
Views
205

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.

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

### 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.

### Which adblocker are you using?

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

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