+ Reply to Thread
Results 1 to 4 of 4

Need assistance with nested IF formula that is returning negative number

  1. #1
    Registered User
    Join Date
    10-13-2021
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    1

    Need assistance with nested IF formula that is returning negative number

    Hello everyone!

    I'm trying to fix the issue with the formula below however I couldn't figure it out how to solve it.

    =IF(J4="Open",TODAY()-G4,IF(J4="Delivered",I4-G4,""))

    The issue is when I update the status in cell J, the cell H automatically changes into negative value (refer to attached photo) which suppose to be blank unless there is a figure in cell I.

    Thanks in advance.
    Photo.jpg
    Last edited by AliGW; 10-14-2021 at 04:54 AM. Reason: Title changed - please think more carefully about your thread titles in future!

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

    Re: Need assistance with nested IF formula that is returning negative number

    Administrative Note:

    Welcome to the forum.

    Your thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    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. As you are new here, I have done it for you this time.)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,197

    Re: Need assistance with nested IF formula that is returning negative number

    Try this:

    =IF(J4="","",IF(J4="Open",TODAY()-G4,IF(J4="Delivered",I4-G4,"")))

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

    Re: Need assistance with nested IF formula that is returning negative number

    If it has been delivered, I4 should has date of delivery. Try to add.

    Then using:

    =MAX(0,MIN(TODAY(),I4)-G4))
    Quang PT

+ 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] the way we solve Solve equation. Can Excel solve this?
    By tta.akmal in forum Excel General
    Replies: 3
    Last Post: 08-10-2020, 07:49 AM
  2. want a simple percentage in excel
    By sincere778 in forum The Water Cooler
    Replies: 0
    Last Post: 10-19-2017, 01:26 AM
  3. Formula help please can anyone solve this.
    By Sue Russell in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-13-2014, 06:22 PM
  4. [SOLVED] How to solve this % formula?
    By rugbymadkid in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-18-2013, 01:24 AM
  5. [SOLVED] Formula to solve for X
    By MaddyG in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2013, 03:23 PM
  6. Excel 2007 : how to solve this formula
    By unique1 in forum Excel General
    Replies: 1
    Last Post: 01-22-2012, 07:21 AM
  7. Need help to solve this formula index using vba
    By poojiemilan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2011, 02:40 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