Nested If in pivot table

Purplethunder

New Member
Joined
Feb 8, 2019
Messages
2
Hi Guys,

Just found this forum so hoping you can help!

I have a pivot table with the following nested IF statement in the calculated field section but it only appears to be picking up the >20% part and the *8% bit at the end...any ideas why?

Thanks

[TABLE="width: 1372"]
<tbody>[TR]
[TD="width: 59"]Bonus[/TD]
[TD="width: 1313"]=IF('% Margin'<0,0,IF('% Margin'>20%,'Margin Amount'*25%,IF('% Margin'>19%<20%,'Margin Amount'*20%,IF('% Margin'>18%<19%,'Margin Amount'*15%,IF('% Margin'>17%<18%,'Margin Amount'*10%,'Margin Amount'*8%))))):confused:[/TD]
[/TR]
</tbody>[/TABLE]

:confused::confused::confused:
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
'% Margin'>17%<18%

i think here should be AND('% Margin'>17%,'% Margin'<18%)
where '% Margin' can be 17,2% or 17,8%, ... etc

but maybe i m wrong ;)
 
Last edited:
Upvote 0
Thanks, our IT man figured it out in the end as below:

[TABLE="width: 1313"]
<tbody>[TR]
[TD="width: 1313"]IFS('% Margin'>20%,'Margin Amount'*25%,'% Margin'>19%,'Margin Amount'*20%,'% Margin'>18%,'Margin Amount'*15%,'% Margin'>17%,'Margin Amount'*10%,'% Margin'>0,Margin Amount'*8%,'% Margin<=0,0)[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

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