Counting Occurrences During Date Range
I have a roster of temporary workers that come in on different days and leave on different days. I need to calculate expected hotel nights by counting the number of workers who will be in the city on each day. I'm at a loss on how to do that. I really just need to know how many hotel nights to expect to need each month (1 room/person/night).
Answers
-
Are you able to provide screenshots of your source data for context (sample data will work).
-
Here's an example of the report I'm using. What I'm doing manually is counting how many folks are here on each day. What I want is to spit out how many people are here each day for a month (5 EEs x 10 days = 50 hotel nights, for example). I don't know if I can do this with a sheet summary or some other way. We have an enterprise account with pivot table functionality, but I haven't played with that yet.
-
I would suggest a separate sheet where you list every date you want to display down a single date type column. Then you would use a COUNTIFS with cross sheet references that looks something along the lines of:
=COUNTIFS({Start Date}, @cell<= [Date Column]@row, {End Date}, @cell>= [Date Column]@row)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!