+ Reply to Thread
Results 1 to 6 of 6

Counting certain cells that are greater than a value

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Counting certain cells that are greater than a value

    Hi All

    I need to be able to sum if certain cells are less than 35, my cells are


    A A B A B TOTAL
    20 39 12 28 34 ????


    So in the total i want to sum if the A's are less than 35, my answer would be 48

    I have tried
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And various others but cant seem to get it to sum those particular cells, its easy enough to do one cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then it returns 20, but i cant get them to go together

    If i do
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then i get a return of 60, but this then includes the cell C2 which is a B product

    Any suggestions? i thought maybe the AND function would be helpful but dont have much knowledge on AND
    Last edited by shiftyspina; 06-07-2013 at 07:25 AM. Reason: layout and wroung wraps

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Counting certain cells that are greater than a value

    =SUMIF(A1:E1,"<35")

    But your result should be 94. Not 48

    20 39 12 28 34
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Counting certain cells that are greater than a value

    no because i only want to sum the cells that are labelled "A" and that are greater than "35"

    The 34 is labelled B

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Counting certain cells that are greater than a value

    Then try

    =SUMPRODUCT((A1:E1="a")*(A2:E2<35)*(A2:E2))

    Edit:OR

    =SUMIFS(A2:E2,A2:E2,"<35",A1:E1,"a")
    Last edited by Fotis1991; 06-07-2013 at 07:56 AM. Reason: Edit:

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    Liverpool
    MS-Off Ver
    Office 365
    Posts
    84

    Re: Counting certain cells that are greater than a value

    Try this;
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Sun

  6. #6
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Counting certain cells that are greater than a value

    Brilliant thank you both

+ 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