+ Reply to Thread
Results 1 to 9 of 9

Nested IF statement not multiplying formula by the designated cell

  1. #1
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Nested IF statement not multiplying formula by the designated cell

    Would massively appreciate some help, my small amount of remaining hair is being pulled out as we speak.

    I'm attempting to create a basic calculator which calculates the commission due based on entry of a "Revenue Generated" value (B11).

    In the IF statement I've tried to create what should be happening is that each additional tier should be calculated with the relevant rate of commission for that band, then added to the commission generated for the previous band.

    The issue seems to be that after the 2nd tier the commission that should be applied from column D the new commission rate is not being applied, for all additional IF statements beyond this point it appears as though the commission rate from D3 is being applied instead of D4 and D5 a accordingly. Up to D3 the correct rate is applied, beyond then it's not.

    I'd be extremely grateful if someone could help me with this.
    Attached Files Attached Files
    Last edited by randomraz; 06-15-2020 at 12:44 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,486

    Re: IF statement issue help

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do: what is the issue and what help are you after?

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Nested IF statement not multiplying formula by the designated cell

    Quote Originally Posted by randomraz View Post
    my small amount of remaining hair is being pulled out as we speak.
    .

    LOL

    =IF(FALSE,B11*D2,IF(TRUE,F2+(B11-9999.99)*D3, IF(TRUE,F3+(B11-29999.99)*D4,IF(TRUE,F4+(B11-49999.99)*D5))))
    Look at your conditions result . when your revenueis 60k 3 conditions meet as TRUE, so the formula will take the 1st occurance and return its calculation.

  4. #4
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Re: Nested IF statement not multiplying formula by the designated cell

    Thanks so much for that. It does help.

    So my question would be how do I ensure that the condition in the 10,000 - 29,9999 range and then also in the 30,000 - 59,999 range is False so that when the value in B11 is at 60,000 the value calculated in B12 actually comes to 9,900 as it's supposed to?

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Nested IF statement not multiplying formula by the designated cell

    Hi,
    Please see AliGW's post and amend your title.

  6. #6
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Re: Nested IF statement not multiplying formula by the designated cell

    I did, does it need amending again?

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Nested IF statement not multiplying formula by the designated cell

    Oh sorry I didnt know you have. Just noticed now the edit time.

    You need to add double condition and create a range limit by using IF(AND

    In B12:
    =IF(B11< 9999.99,B11*D2,IF(AND(B11> =9999.99,B11< 29999.99),F2+(B11-9999.99)*D3, IF(AND(B11> = 29999.99,B11 < 49999.99),F3+(B11-29999.99)*D4,F4+(B11-49999.99)*D5)))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Re: Nested IF statement not multiplying formula by the designated cell

    Thanks so much for that, this was exactly what was required.

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Nested IF statement not multiplying formula by the designated cell

    you're welcome.
    if your problem is solved, you can go to Thread Tools and select Mark This Thread Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] if and statement issue
    By Sway2119 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2017, 01:22 AM
  2. [SOLVED] If Statement Issue
    By mansions2find in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2015, 10:53 AM
  3. Issue with IF statement
    By DennyMathews in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 05:39 AM
  4. [SOLVED] Issue with If Statement
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2012, 08:19 PM
  5. if statement issue
    By jw01 in forum Excel General
    Replies: 7
    Last Post: 05-27-2011, 01:16 PM
  6. Issue w/o sum, but with if statement
    By jasonkbu in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2008, 03:26 PM
  7. If statement issue
    By punter in forum Excel General
    Replies: 3
    Last Post: 11-27-2006, 04:39 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1