+ Reply to Thread
Results 1 to 10 of 10

Headcount: How to count blank cells with corresponding data in same row?

  1. #1
    Registered User
    Join Date
    04-11-2019
    Location
    Pennsylvania, USA
    MS-Off Ver
    MS Office 365
    Posts
    10

    Headcount: How to count blank cells with corresponding data in same row?

    Hello!

    Say I have a table where I am signing in visiters with a TIME IN and TIME OUT columns. I would like to count those who have been signed in but not yet signed out. I want this to be automatic so my employees can know the active headcount without having to know how to use function or count manually.

    Example:
    Lets just say I would have preset 500 rows on my table and by end of day I signed in 200 people.
    Who out of the 500 rows has been signed in but not signed out yet?
    Last edited by msjesbrown93; 04-16-2019 at 11:40 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Headcount: How to count blank cells with corresponding data in same row?

    Assuming your visitors are in column A, your time in is column B, your time out is column C, try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-11-2019
    Location
    Pennsylvania, USA
    MS-Off Ver
    MS Office 365
    Posts
    10

    Re: Headcount: How to count blank cells with corresponding data in same row?

    Thank you! But this didn't work for me. I will attach a basic draft of what my spreadsheet looks like. I'd like the function to be in C3

    Edit: Uploaded file
    Attached Files Attached Files
    Last edited by msjesbrown93; 04-14-2019 at 01:25 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Headcount: How to count blank cells with corresponding data in same row?

    The columns in the formula just need to be adjusted:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-11-2019
    Location
    Pennsylvania, USA
    MS-Off Ver
    MS Office 365
    Posts
    10

    Re: Headcount: How to count blank cells with corresponding data in same row?

    This seems to work perfectly! Thank you!!

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Headcount: How to count blank cells with corresponding data in same row?

    You're welcome, happy to help.

  7. #7
    Registered User
    Join Date
    04-11-2019
    Location
    Pennsylvania, USA
    MS-Off Ver
    MS Office 365
    Posts
    10

    Re: Headcount: How to count blank cells with corresponding data in same row?

    How would the function look if the table didn't have a preset rows? Just adding rows as I go...

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Headcount: How to count blank cells with corresponding data in same row?

    There are a couple ways to deal with that. If the information is actually in an Excel Table, the table would automatically adjust size as you add rows, and the formula could refer to table columns rather than Excel columns. If the information isn't in a defined table, you could use dynamic named ranges that could adjust as you add rows.

    If you have an example file, you can upload it by clicking Go Advanced, then Manage Attachments (scroll down a bit). Click Browse to find your file, click Open, then click Upload. Finally, click Close this window. Your file will be attached when you submit you reply.

  9. #9
    Registered User
    Join Date
    04-11-2019
    Location
    Pennsylvania, USA
    MS-Off Ver
    MS Office 365
    Posts
    10

    Re: Headcount: How to count blank cells with corresponding data in same row?

    Thank you for you patience. I have uploaded the file. Lets say I am using a table with no defined number of rows - it is forever growing....

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Headcount: How to count blank cells with corresponding data in same row?

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Calculate Count of Text in Blank Cells (Random Data)
    By a1ksingh in forum Excel General
    Replies: 3
    Last Post: 06-09-2016, 11:51 PM
  2. Count blank cells in a range and contiguous blank cells also as single cells! Tricky One!
    By SebastianColombia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 02:32 PM
  3. How to count blank cells in data range
    By puttu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2013, 01:48 PM
  4. Replies: 1
    Last Post: 07-17-2013, 11:34 AM
  5. Need to count Blank cells instead of data cells in Pivot table
    By plb999 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-19-2012, 09:01 PM
  6. [SOLVED] VBA to count cells with data between blank rows
    By Philcater in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2012, 04:40 PM
  7. Counting data in non blank cells and exclude certain data from the count
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2007, 04:08 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