+ Reply to Thread
Results 1 to 7 of 7

COUNTIF values in a table that doesn't have values in order

  1. #1
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    COUNTIF values in a table that doesn't have values in order

    I have a table that I'd like to count the number of cells that have values greater than 0, but the cells I want to count are not in order, so I'm confused on what to do for the range.


    A simple example of the table is attached.

    In this table, I'd like to count cell H5, P5, X5, AF5, AN5, AV5 values that are greater than 0 (the number of cells, not SUM the values). So the result for ROW 5 is 5. ROW 6 result is 4, ...

    Repeat for ROW 6, then ROW 7, ....

    All suggestions would be greatly appreciated!
    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,750

    Re: COUNTIF values in a table that doesn't have values in order

    try
    =SUM(COUNTIF(INDIRECT({"H5","P5","X5","AF5","AN5","AV5"}),">0"))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Re: COUNTIF values in a table that doesn't have values in order

    That's fantastic! Thank you for the help!!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,448

    Re: COUNTIF values in a table that doesn't have values in order

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




    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Re: COUNTIF values in a table that doesn't have values in order

    Wow! I like that solution to. Very clever! Thank you very much!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,448

    Re: COUNTIF values in a table that doesn't have values in order

    You're welcome. Thanks for the rep.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,750

    Re: COUNTIF values in a table that doesn't have values in order

    I agree , excellent solution and makes it copyable
    InterstateRentals thanks for the rep

+ 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] COUNTIF Table and another table of values
    By dgbrown in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2013, 12:23 PM
  2. Replies: 0
    Last Post: 04-04-2013, 04:52 PM
  3. [SOLVED] Auto Sort values drawn from a VLookup table into ascending order?
    By dsklein85 in forum Excel General
    Replies: 9
    Last Post: 05-02-2012, 09:53 AM
  4. Countif Formula between Values from a Data Table
    By mrvp in forum Excel General
    Replies: 4
    Last Post: 03-06-2012, 07:25 PM
  5. Replies: 3
    Last Post: 10-23-2008, 04:01 PM

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