+ Reply to Thread
Results 1 to 5 of 5

CountA or countblank with IF

  1. #1
    Registered User
    Join Date
    10-01-2006
    Posts
    14

    CountA or countblank with IF

    I have a sheet with Name, Shift, and four columns for four classes. The four classes just have dates entered for the date each person completed the class. Shifts are "Days", "Swings", "Graves". In my example I have 5 people, 2 on days, 1 on swings, 2 on graves. (see pic). I want to COUNTA or COUNTBLANK the entire range of classes and dates only column(Shift) equals say "Days". So for this example I have to people on Days. One has 2 of 4 classes completed, one has 1 of four classes completed. I'm looking for a total of 3. I'm looking to count from the range of all the classes for all the staff in case someone sorts by name or shift, so I don't want a static range. I started out with
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    I either get a "False" or the total number of the range E10:H14 when I only want to count the rows that have a specific Shift name.

  2. #2
    Registered User
    Join Date
    10-01-2006
    Posts
    14

    Re: CountA or countblank with IF

    Sheet1.jpg the attached example

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: CountA or countblank with IF

    Try this formula

    =SUMPRODUCT((D10:D100="Days")*ISNUMBER(E10:H100))
    Audere est facere

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: CountA or countblank with IF

    Hi rcarlson67, I'll probably use SUMPRODUCT for a start.
    Could you upload a sample spreadsheet instead?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    10-01-2006
    Posts
    14

    Re: CountA or countblank with IF

    Thank you Daddylonglegs that is exactly what I was looking for! In case anyone is interested I also need the empty cells, changing "ISNUMBER" with "ISBLANK" counted the empty cells.

+ 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. Countblank - Need code to update countblank numbers as data is updated
    By agregory12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2013, 01:49 AM
  2. Countblank
    By JBurlison in forum Excel General
    Replies: 12
    Last Post: 12-04-2009, 04:57 PM
  3. Help with CountBlank
    By tkaye in forum Excel General
    Replies: 2
    Last Post: 11-03-2008, 12:50 PM
  4. CountBlank
    By chris.leng in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-05-2008, 03:18 AM
  5. Countblank
    By baz0912 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2008, 04:33 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