If this and that!

Nygie

Board Regular
Joined
Apr 15, 2015
Messages
50
Hi All, been racking my brains on this one, looked at loads of examples. I think I just do not understand the structure of combining the if and or statements as I have written it down and it makes sense to me. :laugh:
Basically I am working out employer Pension contributions.
The formula in my head goes like.
If D2 = Y (this states they are in pension)
then
If Gross>865 the cell = (753 x 1%) Or If Gross > 113 and <866 the cell = (Gross-113 x 1%)
Else cell = 0

Maybe I am missing something. I tried but I seem to be going round in circles. Is there a logic builder app :)
Thanks for looking
N
 
Nearly there
=IF(D2="Y",IF(Table6[[#This Row],[Gross £]]>865,753*0.01,IF(AND(Table6[[#This Row],[Gross £]]>113,Table6[[#This Row],[Gross £]]<865),(Table6[[#This Row],[Gross £]]-113)*0.01)),0)
Sorry for the table references lol
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thank you both for your replies.
Very helpful, I was nearly there I had my Y/N conditioning met but could not get the formula to do me sums!

Thanks again
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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