Need help in finding the right formula

Copper Contributor

Hi,
I am working on shifting scheduling data.
I have created a drop-down for the date and time.

Now, what I need help with is
- Whenever I select the date and time(from the drop-down) the total number of employees available with their name shows up.
Is this possible?

Any suggestions would be helpful.

Thank you in advance!

1 Reply

@Zee996 

=CHOOSE(WEEKDAY($N$5,16),COUNTIF(OFFSET($A$10:$A$31,0,MATCH($N$4,$B$8:$AG$8,0)),"Yes"),COUNTIF(OFFSET($A$36:$A$57,0,MATCH($N$4,$B$34:$AG$34,0)),"Yes"))

 

Above formula counts number of employees that are available either on saturday or sunday according to the date in cell N5. The formula can easily be adapted with further COUNTIF formulas to count available employees for monday to friday.

 

I entered conditional formatting for ranges A10:A31 and A36:A57 in order to highlight available employees according to the data and time selection by dropdown in N4 and N5.