+ Reply to Thread
Results 1 to 5 of 5

Sum cells in range with values greater than 2

  1. #1
    Registered User
    Join Date
    06-18-2010
    Location
    holland
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sum cells in range with values greater than 2

    Good evening people,

    With this vba code i count all cells with a value higher then 2.
    I want to ask if someone here knows a formula for doing this.

    Thank you in advance.

    Hennie


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by henneman; 07-20-2010 at 02:36 PM.

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,824

    Re: Sum cells in range with values greater than 2

    In C9 you could use:

    =SUMIF(C3:C7,">2",C3:C7)

    Copy that to D9, E9 and F9.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Sum cells in range with values greater than 2

    You don't need to reference the same range that you are summing and searching criteria...

    i.e. =SUMIF(C3:C7,">2") will do.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-18-2010
    Location
    holland
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum cells in range with values greater than 2

    Hello Paul,

    Thank you very much for this formula!


    Hennie

  5. #5
    Registered User
    Join Date
    06-18-2010
    Location
    holland
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum cells in range with values greater than 2

    Quote Originally Posted by NBVC View Post
    You don't need to reference the same range that you are summing and searching criteria...

    i.e. =SUMIF(C3:C7,">2") will do.

    Hello NBVC,

    That's even more efficient, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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