+ Reply to Thread
Results 1 to 4 of 4

Formula to avoid a negative number

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Formula to avoid a negative number

    Hello,

    I am looking to update the following formula I use.

    The last part of the formula will check E3, if the text "No" is present, the result would be -0, if anything else is present, the result would be -1.

    What I am looking to do is not have the result going into the negative.

    For example, if the first part of the formula returns a .5, the result would be -.5

    If the result is a negative number, I would like it to display a 0.

    Is that possible?

    =IFERROR(IF(OR(A3="",B3="",C3="",D3="",E3=""),"",IF(D3="No",1,IF(D3="Yes",2,0))*VLOOKUP(C3,'List Data'!$I$1:$J$18,2,FALSE)-IF(E3="No",0,1)),"0")

    I appreciate any help.

    Thanks,
    Nick

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula to avoid a negative number

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Formula to avoid a negative number

    That's perfect Fluff! Thank you.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula to avoid a negative number

    You're welcome & thanks for the feedback.

+ 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. Replies: 7
    Last Post: 07-10-2018, 01:05 PM
  2. Replies: 3
    Last Post: 03-10-2016, 04:40 PM
  3. If value = negative number, then (formula here)
    By mghal9000 in forum Excel General
    Replies: 2
    Last Post: 11-06-2014, 05:11 PM
  4. Avoid negative dates using iferror
    By dcaraher in forum Excel General
    Replies: 3
    Last Post: 11-18-2009, 12:04 PM
  5. How to keep avoid unwanted negative numbers
    By Research RN in forum Excel General
    Replies: 3
    Last Post: 04-08-2009, 02:01 PM
  6. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  7. 2003= negative number&2004= negative number How Do I Calculate gro
    By Jason in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2005, 02:06 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