+ Reply to Thread
Results 1 to 10 of 10

Formula results to show as 0 if <0 or >40,000

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2016
    Location
    Brisbane Australia
    MS-Off Ver
    2013
    Posts
    3

    Formula results to show as 0 if <0 or >40,000

    If the result of my sumifs formula is <0 or >40,000 is there a way to make it show up as 0 instead?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Formula results to show as 0 if <0 or >40,000

    Hi, welcome to the forum

    Maybe this...
    =IF(or(a1<0,A1>40000),0,A1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-17-2016
    Location
    Brisbane Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula results to show as 0 if <0 or >40,000

    Is it possible to actual have it included in the original formula or do I have to do this as a reference to the cell with the formula in it? Below is the original formula that I am using.....

    =IFERROR(SUMIFS('Average Timeframe to Settlement'!$G:$G,'Average Timeframe to Settlement'!$C:$C,Sheet1!$B3,'Average Timeframe to Settlement'!$A:$A,Sheet1!E$1)-SUMIFS('Average Timeframe to Settlement'!$F:$F,'Average Timeframe to Settlement'!$C:$C,Sheet1!$A3,'Average Timeframe to Settlement'!$A:$A,Sheet1!E$1),0)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Formula results to show as 0 if <0 or >40,000

    Just replace my A1 reference with your formula

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

    Re: Formula results to show as 0 if <0 or >40,000

    Never mind, he got it!
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Formula results to show as 0 if <0 or >40,000

    Sambo, have you seem that 1 insurance commercial with the girl trying to get the dollar from the guy with the fishing rod?.....ya gotta be quicker than that LOL

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula results to show as 0 if <0 or >40,000

    Insert your original formula (without the beginning =) in this formula where I have A8

    =MIN(40000,MAX(0,A8))


    Not quite right, never mind.
    Last edited by Jonmo1; 01-17-2016 at 11:17 PM.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula results to show as 0 if <0 or >40,000

    This was almost right, but not quite
    Quote Originally Posted by Jonmo1 View Post
    =MIN(40000,MAX(0,A8))
    Here's an adjustment to this that would reduce the number of times you have to do the sumifs.
    It's done 3 times in the nested IF.
    This would only need to do it twice

    =IF(A8>40000,0,MAX(0,A8))

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

    Re: Formula results to show as 0 if <0 or >40,000

    Yeah, iPads, hunting and pecking can take a while. . But the portability is nice.

  10. #10
    Registered User
    Join Date
    01-17-2016
    Location
    Brisbane Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula results to show as 0 if <0 or >40,000

    Wonderful, thanks for you help!

+ 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] Using VLookup but results show formula instead of results...
    By excel me in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-28-2013, 09:40 PM
  2. Show results in formula bar
    By desktop in forum Excel General
    Replies: 1
    Last Post: 10-04-2012, 02:04 AM
  3. Only show formula results if not 0 (zero)
    By randolphoralph in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2008, 12:42 PM
  4. Some formula results will not show up in the cell
    By Biff in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 PM
  5. Some formula results will not show up in the cell
    By Space Elf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  6. Some formula results will not show up in the cell
    By Biff in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  7. Some formula results will not show up in the cell
    By Space Elf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  8. Some formula results will not show up in the cell
    By Space Elf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2005, 09:05 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