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
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
What is 753 doing there? Do you mean gross x 1% ?

<tbody>
</tbody><colgroup><col></colgroup>
 
Upvote 0
753 is the banded Gross earnings that contributions are paid on when gross is over 865
The contributions for earnings under 866 is paid on the band of earnings 113 to 865, so we have if the gross is less than 866 the contributions are paid on Gross minus 113.
 
Last edited:
Upvote 0
Nygie,

You can string what you are looking for into one formula: =IF(D2="Y",IF(Gross>865,753*0.01,IF(AND(Gross>113,Gross<865),Gross-(113*0.01))),0)

So this is how this formula calculates:

First determines if there is a "Y" in cell D2: =IF(D2="Y"

If yes, first check to see if Gross is Greater than 865: IF(Gross>865,
if True then multiply 753 x 1%

If not True, Check to see if Gross is Greater than 113 and Less than 865: IF(AND(Gross>113,Gross<865) Notice the construct of an IF(AND statement. You enter 2 logical checks separated by a comma then followed by ")" to complete the "AND" portion of the formula.

Now, if both checks of Gross are True (Gross is Greater than 113 and Less than 865) then: Gross-(113*0.01)

Finally, if there is not a "Y" in cell D2 enter a "0": ,0)

Hope this works and the explanation helps.
 
Upvote 0
See if this works
=IF(AND(D2="y",E2>865),7.53,IF(AND(E2>113,D2="y"),E2-1.13,0))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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