+ Reply to Thread
Results 1 to 6 of 6

IF formula with mulitiple calculations not producing correct results

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    Chicago, USA
    MS-Off Ver
    2010
    Posts
    3

    IF formula with mulitiple calculations not producing correct results

    Greetings! I cannot get my "IF" formula to produce consistently correct results. I have tried many different tweaks to this formula, and this version comes the closest to working correctly. Thank you in advance for any assistance.

    My formula is producing incorrect results:

    =IF(C4*I2>750,"Call",IF(C4*I2<751,C4*G22,IF(C4*I2<501,C4*F22,IF(C4*I2<251,C4*E22,IF(C4*I2<100,C4*D22,IF(C4*I2<61,C4*C22,IF(C4*I2<41,C4*B22)))))))

    My spreadsheet is attached.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: IF formula with mulitiple calculations not producing correct results

    The parts of your formula are in reverse order.

    If C4*I2 < 41 the answer should be C4 * B22
    but the first condition is
    If C4*I2 < 751
    Since 41 is < 751 this results in C4 * G22

    Put the parts of the formula from smallest to largest, ie

    IF C4*I2 < 41, etc IF C4*I2 < 61, etc up to < 751 then > 750
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-15-2015
    Location
    Chicago, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: IF formula with mulitiple calculations not producing correct results

    Thank you for responding, Special-K!

    Reversing the order is the first way that I tried the formula, and it would not work at all. I'll try again using exactly the same format and reversing, but I 99.9% positive that I have already tried that with incorrect results.

    Thanks!

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: IF formula with mulitiple calculations not producing correct results

    You should be able to shorten that to

    =IF(C4*I2 > 750,"Call",C4*INDIRECT((LOOKUP(C4*I2,{1E-99,41,61,100,251,501,750},{"B22","C22","D22","E22","F22","G22",""}))))

    which on second thought is just about is as long

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,678

    Re: IF formula with mulitiple calculations not producing correct results

    It can be done with LOOKUP instead of IF's. Try to upload the spreadsheet.
    Quang PT

  6. #6
    Registered User
    Join Date
    01-15-2015
    Location
    Chicago, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: IF formula with mulitiple calculations not producing correct results

    Thanks again, Special-K! I haven't yet tested the entire sheet, but the reverse formula is working. I must have made some minor mistake when I tried it the first time, so I'll make sure to be more careful in the future.

    I sincerely appreciate your help, and will "pass it forward" if and when I can.

+ 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 formula using dates not producing correct result
    By Snelms in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2014, 03:48 PM
  2. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  3. [SOLVED] Conditional format formula producing incorrect results?
    By Dougie12. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2014, 03:02 PM
  4. SUM function not producing correct result
    By angiebro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2010, 06:10 PM
  5. Formula producing inconsistent results
    By joseclar in forum Excel General
    Replies: 5
    Last Post: 05-20-2009, 01:41 PM

Tags for this Thread

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