+ Reply to Thread
Results 1 to 5 of 5

COUNTIF Multiple cells in column

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2015
    Location
    london
    MS-Off Ver
    8
    Posts
    8

    COUNTIF Multiple cells in column

    I have a timesheet that include staff of different disciplines and their hours. I am count the amount of staff in each day by purely using function to count any that begin with 0 - Function used: =COUNTIF(B14:B54,"0*") This returns the total of 10 which is correct. This however is split into 4 manager and 6 staff and would like to split this by using same count but for cells that those disciplines appear. For example I tried;
    =COUNTIF(B18,B27,B28,B40,B48,"0*") but this didn't work.

    Can someone tell me how I select random cells within same column. The aim is to have total number of managers and staff in each day of which I can then add conditional formatting to when falls below required level.

    Any advice would be gratefully received.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNTIF Multiple cells in column

    Hi.

    Is there not another column which lists whether they are "manager" or "staff"? If there is, you could simply include that by extending your function to COUNTIFS.

    Regards
    Click * below if this answer helped

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

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

    Re: COUNTIF Multiple cells in column

    Quote Originally Posted by swaza View Post
    =COUNTIF(B18,B27,B28,B40,B48,"0*")

    but this didn't work.
    Something like this:

    =SUM(COUNTIF(INDIRECT({"B18","B27","B28","B40","B48"}),"0*"))

    But that's not very robust.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    06-15-2015
    Location
    london
    MS-Off Ver
    8
    Posts
    8

    Re: COUNTIF Multiple cells in column

    That worked. Thank you. However is there a simple way now to apply the formula across all columns (days of the week)???

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

    Re: COUNTIF Multiple cells in column

    I think you need to post a SMALL sample file so we can see what you're trying to do.

    We don't need a file with hundreds of rows and dozens of columns worth of data. About 20 rows and a few columns worth of data is plenty.

    Make sure you tell us what results you expect.

+ 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] Multiple Countif's on data placed in 1 column
    By Shurov in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2014, 01:30 PM
  2. [SOLVED] Countif multiple criterai within 1 column
    By ctbanker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2014, 03:46 PM
  3. COUNTIF Multiple Column Criteria
    By OZManager in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2012, 11:12 PM
  4. Trying to COUNTIF when multiple criteria are met on multiple column data set
    By TGCRequiem in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-15-2011, 12:58 AM
  5. Replies: 0
    Last Post: 09-04-2009, 07:58 AM
  6. Countif with multiple criteria:Column A Column B
    By Blardov in forum Excel General
    Replies: 1
    Last Post: 01-22-2009, 03:05 PM
  7. [SOLVED] Using Countif with multiple criteria in the same column.
    By Harley in forum Excel General
    Replies: 2
    Last Post: 12-12-2005, 10:30 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