+ Reply to Thread
Results 1 to 5 of 5

Formula to exclude negative numbers and blanks

  1. #1
    Registered User
    Join Date
    09-06-2005
    Location
    Nassau County, New York
    Posts
    4

    Formula to exclude negative numbers and blanks

    I have a formula...
    =IF(ISNUMBER(F12),F12-G12,"")

    but I want it to exclude negative numbers in Column G, do you have any suggestions?

    Thanks
    Jim

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to exclude negative numbers and blanks

    What do you mean "exclude"?

    If F12 = 5 and G12 = -7 what do you want the result to be?
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-06-2005
    Location
    Nassau County, New York
    Posts
    4

    Re: Formula to exclude negative numbers and blanks

    Its for a column of numbers for a stacked bar chart, I want it to leave out any numbers that are negative or blank. The first 18 numbers are positive and the last 3 are negative (in column G). Column F has some blanks so I want them left out also. It's for a hi/low/close type of chart that they used to use MicroCharts for, trouble is the president of the company died and the company just closed so I need an Excel chart to replace it.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to exclude negative numbers and blanks

    This formula will only return a result if both cells contain numbers and G12 >= 0

    =IF(AND(COUNT(F12,G12)=2,G12>0),F12-G12,"")

  5. #5
    Registered User
    Join Date
    09-06-2005
    Location
    Nassau County, New York
    Posts
    4

    Re: Formula to exclude negative numbers and blanks

    That worked, fantastic. Thanks so much.

+ 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] Having two date return number but exclude negative numbers
    By redjayhawk11 in forum Excel General
    Replies: 5
    Last Post: 12-31-2013, 06:34 AM
  2. [SOLVED] VBA to Sort Data and exclude the negative numbers with respect to time during averaging
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2013, 12:00 PM
  3. Exclude blanks from formula
    By ads100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2012, 06:17 PM
  4. Replies: 5
    Last Post: 05-12-2009, 04:47 PM
  5. [SOLVED] Excel Formula - Add column of numbers but ignore negative numbers
    By view for Distribution List members in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2006, 10:20 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