Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: If this and that!

  1. #1
    New Member
    Join Date
    Apr 2015
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default If this and that!

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

  2. #2
    Board Regular
    Join Date
    Oct 2008
    Posts
    996
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    which cell contains gross?

  3. #3
    New Member
    Join Date
    Apr 2015
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    Its in a Table but lets say E2

  4. #4
    Board Regular
    Join Date
    Oct 2008
    Posts
    996
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    What is 753 doing there? Do you mean gross x 1% ?

  5. #5
    Board Regular
    Join Date
    Oct 2008
    Posts
    996
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    Quote Originally Posted by Nygie View Post
    If Gross>865 the cell = (753 x 1%) Or If Gross > 113 and <866 the cell = (Gross-113 x 1%)
    N
    Could you clarify a bit on the above line?

  6. #6
    New Member
    Join Date
    Apr 2015
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    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 by Nygie; Feb 16th, 2018 at 10:39 AM.

  7. #7
    Board Regular
    Join Date
    Oct 2015
    Location
    Mc Calla, AL
    Posts
    436
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Default Re: If this and that!

    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.

  8. #8
    Board Regular
    Join Date
    Oct 2008
    Posts
    996
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    See if this works
    =IF(AND(D2="y",E2>865),7.53,IF(AND(E2>113,D2="y"),E2-1.13,0))

  9. #9
    Board Regular
    Join Date
    Oct 2008
    Posts
    996
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    Shorter version

    =(D2="y")*IF(E2>865,7.53,IF(E2>113,E2-1.13))

  10. #10
    New Member
    Join Date
    Apr 2015
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If this and that!

    Nearly there too.
    =IF(AND(D4="y",E4>865),7.53,IF(AND(E4>113,D4="y"),(E4-113)*0.01,0))

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •