+ Reply to Thread
Results 1 to 5 of 5

Summing row of values greater than Zero, excluding minimum

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    7

    Summing row of values greater than Zero, excluding minimum

    Hi,

    I'm trying to create a formula to sum a row of values greater than zero, and exclude the lowest value greater than 0.

    My current formula sums the values and excludes the single lowest value, but I am unable to make sure only values greater than 0 are included.

    =SUM(B2:R2,)-SUM(,SMALL(B2:R2,1))

    Any assistance would be appreciated.

  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,724

    Re: Summing row of values greater than Zero, excluding minimum

    Try this array* formula:

    =SUMIF(B2:R2,">0")-MIN(IF(B2:R2>0,B2:R2))

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Hope this helps.

    Pete

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Summing row of values greater than Zero, excluding minimum

    welcome to the forum, jdstuffel. what if 1 is the lowest value but appeared twice? should it be deducted once or twice? for the former:
    =SUMIF(B2:R2,">0")-SMALL(B2:R2,COUNTIF(B2:R2,0)+1)

    for the latter:
    =SUMIF(B2:R2,">0")-SUMIF(B2:R2,SMALL(B2:R2,COUNTIF(B2:R2,0)+1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    10-18-2013
    Location
    Indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Summing row of values greater than Zero, excluding minimum

    Thank you both for the help. Both formulas appear to work for my needs. I appreciate the quick replies!

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

    Re: Summing row of values greater than Zero, excluding minimum

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Finding the minimum value in a range but excluding one value
    By Wilgoss in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-04-2012, 08:39 AM
  2. Replies: 4
    Last Post: 12-05-2011, 07:01 PM
  3. Averaging values, excluding minimum value
    By LoriR in forum Excel General
    Replies: 10
    Last Post: 04-22-2011, 03:45 AM
  4. Replies: 10
    Last Post: 08-30-2010, 10:22 AM
  5. Minimum value excluding zero?
    By Ritte in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 12-30-2009, 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