+ Reply to Thread
Results 1 to 7 of 7

SumIf only if value is above a certain number

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    4

    SumIf only if value is above a certain number

    I have used SumIf to determine add numbers using the regular criteria, for example:
    =sumif($A1:$A6,$A1:$A6,$B1:$B6) to return the sums of values in B that match the row criteria in A many times with great success.

    Now I need to do something more complicated. I only want to sum the value in B if it is over a specific number, like 10. I have tried nesting an IF statement and it doesn't look like that is the way to go.

    Thanks in advance for your help,

    micheldun
    Last edited by micheldun; 11-05-2012 at 04:10 PM.

  2. #2
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: SumIf only if value is above a certain number

    Try this:

    =sumif(B1:B6,">10")

    Check out http://theexcelphile.com/learning-ex...summing-it-up/

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: SumIf only if value is above a certain number

    TheExcelphile-

    Thank you for your quick response. I don't believe I explained my problem properly. The set of data I am adding looks like this:

    Name Number
    A 9
    A 10
    A 11
    B 2
    B 4
    C 4
    C 10

    There are 5,000 rows so I can afford the time to write a formula for each new name. So, I know that if I use =sumif(A$2:A$7,A$2:A$7,B$2:B$7) it will return 29 for A, 6 for B, etc...
    What I need it to return is 21 for A, 0 for B, 10 for C, etc... I tried putting sumif(B$2:B$7,">9") in the sumrange of the above formula and that did not work.

    Thank you,
    micheldun

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SumIf only if value is above a certain number

    With a help column and a pivot table.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    11-05-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: SumIf only if value is above a certain number

    Thank you oeldere,

    I am preparing this for a pivot table that already contains a lot of information, but I believe I can make this work.

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: SumIf only if value is above a certain number

    Hello Micheldun,

    If I am following you correctly, you can use SUMIFS.

    =SUMIFS(B:B,A:A,"A",B:B,">9")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Registered User
    Join Date
    11-05-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: SumIf only if value is above a certain number

    Haseeb,

    That with a little bit of modification, that is exactly what I am looking for. Thank you much!
    =SUMIFS(L$2:L$4493,A$2:A$4493,A$2:A$4493,L$2:L$4493,">13")

    micheldun

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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