+ Reply to Thread
Results 1 to 5 of 5

having trouble with nested IF function

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Michigan
    MS-Off Ver
    MS Office 365
    Posts
    2

    having trouble with nested IF function

    =IF(Amount_Purchasing>0,Current_Processing_Fee,IF(Amount_Purchasing>=10,Current_Processing_Fee+Extra_Handling,"-"))

    I am creating a buy sell ticket for a school project and this is supposed to have a processing fee of $2.00 (Current_Processing_Fee) unless the user enters an amount of 10 or above in the Amount_Purchasing column, in which case it should ADD Current_Processing_Fee+Extra_Handling however it isn't. I continue to get the $2.00 original amount.

    I have also tried the following format with the same results:

    =IF(Amount_Purchasing>0,Current_Processing_Fee,IF(Amount_Purchasing>=10,Processing_Fee=Current_Processing_Fee+Extra_Handling,"-"))
    Attached Images Attached Images

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,711

    Re: having trouble with nested IF function

    The way you have written the first formula is to see if Amount_Purchasing is greater than zero - if it is then it will return the Current_Processing_Fee and won't bother to look at the second IF function. This is also true of the second attempt. Try it like this:

    =IF(Amount_Purchasing<=0,"-",Current_Processing_Fee + IF(Amount_Purchasing>=10,Extra_Handling,0))

    Hope this helps.

    Pete

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: having trouble with nested IF function

    in a multiple IF THEN statement the first IF THEN that satisfies the statement will complete the statement, so
    IF(Amount_Purchasing>0,Current_Processing_Fee,IF(Amount_Purchasing>=10,Current_Processing_Fee+Extra_Handling,"-"))
    chances are that the >0 is satisfied for the first statement which >=10 is also >0 so the if statement doesn't have to go on.
    perhaps this is your issue. Maybe putting it like this will help... IF(Amount_Purchasing>=10,Current_Processing_Fee+Extra_Handling,IF(Amount_Purchasing>0,Current_Processing_Fee,"-"))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    07-10-2019
    Location
    Michigan
    MS-Off Ver
    MS Office 365
    Posts
    2

    Re: having trouble with nested IF function

    Thank you very much for the help guys, that makes complete since now!

    Its always something simple

  5. #5
    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,595

    Re: having trouble with nested IF function

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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. Trouble with nested If's
    By KimMorgan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2019, 05:16 PM
  2. [SOLVED] Trouble with nested for loops
    By excel_novice2019 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2019, 08:44 PM
  3. Replies: 2
    Last Post: 01-05-2019, 03:33 AM
  4. Trouble with nested if function
    By faodavid in forum Excel General
    Replies: 2
    Last Post: 02-02-2015, 05:07 AM
  5. [SOLVED] Having trouble using a nested IF with VBA msgbox
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2015, 03:19 PM
  6. [SOLVED] Trouble with Nested If
    By shaught7 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-25-2014, 02:26 PM
  7. Trouble with Nested IF Function
    By gvishnu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2013, 05:18 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