+ Reply to Thread
Results 1 to 10 of 10

Counting Cells across Multiple Columns

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Smile Counting Cells across Multiple Columns

    Hello, could someone please help me with counting in Excel 2003 for the following:

    Please find my attached spreadsheet (no sensitive data).

    Workbook Name: Counting Cells

    Worksheet Name: Master_List

    I am trying to count the number of cells in columns W, X, Y, Z & AA that have a numeric value greater than zero in each of the columns and also match the text value of “AOG” in column G.

    In the attached spreadsheet, if I filter column G for text value of “AOG” and count the number of cells in columns: W,X,Y,Z & AA that have a numeric value of greater than zero, then I should get a numeric result of: 24.

    You may notice that in some of these columns, there is no numeric value greater than zero. That is because the information in columns: W,X,Y,Z & AA change daily.

    If someone could please help, it would be greatly appreciated.

    Kind regards,

    Chris
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Counting Cells across Multiple Columns

    enter in AB3 and pull it across

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


    Just noticed that you need it for Excel 2003

    Use this array formula

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


    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER
    Last edited by AlKey; 03-03-2016 at 12:06 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Counting Cells across Multiple Columns

    Hi AlKey, thank you for your reply - much appreciated. Unfortunately, I am using Excel 2003 and COUNTIFS is not a function in Excel 2003.

    Is there a way to achieve what I need using Excel 2003 please?

    Kind regards,

    Chris

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Counting Cells across Multiple Columns

    Have you tried the array formula?

  5. #5
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Counting Cells across Multiple Columns

    Hi AlKey, thank you for the array formula. It works fine. Really appreciate your help

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,918

    Re: Counting Cells across Multiple Columns

    Or try this:
    =SUMPRODUCT((G:G="AOG")*((W:W>0)+(X:X>0)+(Y:Y>0)+(Z:Z>0)+(AA:AA>0)))

  7. #7
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Counting Cells across Multiple Columns

    Thank you Phuocam for your excellent code - very much appreciated.

    Kind regards,

    Chris

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,918

    Re: Counting Cells across Multiple Columns

    You're welcome

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Cells across Multiple Columns

    Quote Originally Posted by Phuocam View Post
    =SUMPRODUCT((G:G="AOG")*((W:W>0)+(X:X>0)+(Y:Y>0)+(Z:Z>0)+(AA:AA>0)))
    You should avoid using entire columns as range references in the SUMPRODUCT function.

    It will evaluate every cell referenced.

    That single formula is evaluating 6,291,456 cells!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,918

    Re: Counting Cells across Multiple Columns

    Quote Originally Posted by Tony Valko View Post
    You should avoid using entire columns as range references in the SUMPRODUCT function.

    It will evaluate every cell referenced.

    That single formula is evaluating 6,291,456 cells!
    Yes, here is a sample, thank you!
    Last edited by Phuocam; 03-05-2016 at 08:55 AM.

+ 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] Counting in Multiple Columns
    By omnomster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2015, 09:07 PM
  2. [SOLVED] Counting multiple criteria in multiple columns
    By jimbosi in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 03-22-2015, 02:34 PM
  3. [SOLVED] counting cells/rows across multiple criteria (columns)
    By vf_guy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2014, 10:06 PM
  4. Replies: 3
    Last Post: 03-01-2012, 06:17 AM
  5. Counting Duplicate cells in multiple columns - pt2
    By dgcuk23 in forum Excel General
    Replies: 2
    Last Post: 03-12-2009, 07:30 PM
  6. Counting Duplicate cells in multiple columns
    By dgcuk23 in forum Excel General
    Replies: 6
    Last Post: 03-10-2009, 05:05 PM
  7. counting in multiple columns
    By sgoldbe2 in forum Excel General
    Replies: 1
    Last Post: 03-17-2008, 09:34 AM

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