Good morning,
I have a spreadsheet where each row is a person. The columns reflect the organization they work for, the date they arrived to our location, and the date they're planning to depart.
I am trying to calculate a total number of people based on what organization they're assigned to, and when they're departing--so we can plan schedules accordingly.
I believe this is best done as a a multi-part COUNTIFS. The first part checks the organization they're with (so I can have a separate total for each org). And the 2nd part calculates based on when they're leaving.
The easy part was calculating those leaving TODAY() and tomorrow -- TODAY()+1. I used the following and it worked as expected:
=COUNTIFS('Master Check-In'!$D$3:$D$80,"=ORG1",'Master Check-In'!$K$3:$K$80,TODAY())
=COUNTIFS('Master Check-In'!$D$3:$D$80,"=ORG1",'Master Check-In'!$K$3:$K$80,(TODAY()+1))
But for my totals of who's leaving anytime in the next week (7 days), it's not working as expected. What I have is this formula:
=COUNTIFS('Master Check-In'!$D$3:$D$80,"=ORG1",'Master Check-In'!$K$3:$K$80,(TODAY()+7))
As written, I know it's only calculating those leaving exactly 7 days from today -- not what I want, which is anybody leaving today, tomorrow, or any time between today and 1 week from now. But my relatively moderate Excel skills aren't figuring out successfully total up within a range.
This is driving me nuts and I have to get it fixed this afternoon. Any help would surely be appreciated.
Dan
Bookmarks