+ Reply to Thread
Results 1 to 7 of 7

Counting the number of Guests to be In House on a certain day.

  1. #1
    Registered User
    Join Date
    02-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Counting the number of Guests to be In House on a certain day.

    Hey Everyone - hope someone can help.

    I am trying to count the number of workers that will be checked in on a given day.
    I have a spreadsheet with two sheets that shows the check in and out dates and I need to know how many will be in on each day.

    SHEET 1
    A1 A2 A3
    1 WORKER CHECK IN CHECK OUT
    2 NAME JAN 13-2013 FEB 13-2013
    _________________________________________
    SHEET 2
    A1 A2
    1 DATE #CHECKED IN
    2 JAN 18-2013 ?????

    So I have to count how many workers are checked in on any given day; such as Jan 18-2013 I want to know how many workers will be checked in.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting the number of Guests to be In House on a certain day.

    You can do that with pivot table.

    If you add an excel file without confidentional information and the desired (expected) result, i will add the pivot table in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Counting the number of Guests to be In House on a certain day.

    you could use something like this:
    =COUNTIFS('Sheet 1'!$B$2:$B$1000,"<="&A2,'Sheet 1'!$C$2:$C$1000,">="&A2)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    02-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Counting the number of Guests to be In House on a certain day.

    Copy of Tracking.xlsx

    Here is the spreadsheet. I want to find out the TOTAL # Workers In House on Sheet 'Head Count' from the table 'Tracking'

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Counting the number of Guests to be In House on a certain day.

    The solution of dredwolf is better for this question than an pivot table. (i suppose).

    So I added his (dredwolf) formula in your sheet.

    See the attached file.
    Attached Files Attached Files

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Counting the number of Guests to be In House on a certain day.

    In B2 of Head Count:

    =COUNTIFS(Tracking!$D$2:$D$21,"<="&A2,Tracking!$E$2:$E$21,">="&A2)

    Drag down

    Hope this helps

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Counting the number of Guests to be In House on a certain day.

    @ oeldere, Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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