+ Reply to Thread
Results 1 to 6 of 6

Add Individual Cells with Values Greater Than 0

  1. #1
    Registered User
    Join Date
    04-27-2019
    Location
    Los Angeles,CA
    MS-Off Ver
    Office 2010
    Posts
    21

    Add Individual Cells with Values Greater Than 0

    Hi All,

    I'm looking to add cells with values greater than 0 that are not in a range. I want to add the total hrs from G5, M5, S5 and so on but with values greater than zero only. I don't know if this is possible but I would really appreciate the help. Thanks


    EX.png
    Last edited by MiglA06; 02-09-2021 at 03:19 AM.

  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
    52,933

    Re: Count Individual Cells with Values Greater Than 0

    Your title says COUNT but your request says ADD - which 1 is it?

    either way, take a look at the sumif() function (or countif)
    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
    04-27-2019
    Location
    Los Angeles,CA
    MS-Off Ver
    Office 2010
    Posts
    21

    Re: Count Individual Cells with Values Greater Than 0

    Sorry about that. I've tried both those functions but since it is not a range I get a too many arguments error. I only want to count those specific cells.

    =SUMIF(G5,M5,S5,Y5,AE5,AK5,AQ5,">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
    52,933

    Re: Add Individual Cells with Values Greater Than 0

    SUMIF only takes 3 arguments...Criteria range, Criteria, sum range. Try this instead...
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    1
    Sat Sun Mon Tue Wed
    2
    Start End Ttl Hrs Start End Ttl Hrs Start End Ttl Hrs Start End Ttl Hrs Start End Ttl Hrs
    3
    8.5
    -0.5
    -0.5
    7.5
    -0.5
    16

    P3=SUMIFS(A3:O3,A3:O3,">0",$A$2:$O$2,"Ttl Hrs")

  5. #5
    Registered User
    Join Date
    04-27-2019
    Location
    Los Angeles,CA
    MS-Off Ver
    Office 2010
    Posts
    21

    Re: Add Individual Cells with Values Greater Than 0

    That worked great. Thanks FDibbins

  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
    52,933

    Re: Add Individual Cells with Values Greater Than 0

    Great, happy to help and thanks for the feedback

+ 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. Replies: 1
    Last Post: 11-19-2015, 10:34 AM
  2. [SOLVED] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  3. [SOLVED] Getting average of subtotals only if value of individual cells are greater than zero
    By anthonykinsella1975 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 10-18-2013, 03:37 PM
  4. Replies: 3
    Last Post: 04-03-2013, 02:35 PM
  5. [SOLVED] Pivot Count Values greater than zero
    By sureshpunna in forum Excel General
    Replies: 17
    Last Post: 12-13-2012, 04:54 AM
  6. Count values greater than zero
    By skatmandu2002 in forum Excel General
    Replies: 2
    Last Post: 12-02-2009, 07:26 PM
  7. Count values greater than zero
    By famico78 in forum Excel General
    Replies: 4
    Last Post: 12-10-2008, 10:02 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