Sickness Calendar

Krash7000

New Member
Joined
Mar 10, 2015
Messages
19
Hi All,

I'm after a bit of help if possible.

I have a list of employees absence's with start date of absence in column A, and end date of absence in column B.

What I want to do is have a list of dates for the year and work off how many employees were off each day.

E.g - Employee A was off from 01/01/20 until 05/01/20, and employee B was off on 04/01/20 - 04/01/20. Data should show as below:
01/01/20 - 1
02/01/20 - 1
03/01/20 - 1
04/01/20 - 2
05/01/20 - 1
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
This is fairly easily solved with
Excel Formula:
COUNTIFS
. Assuming the data for FROM is in column A and TO is in column B, you can put the dates for the year in e.g. column D and use a formula like:

Excel Formula:
=COUNTIFS($A$1:$A$2;"<="&$D1;$B$1:$B$2;">="&$D1)

The result should be something like what you see in the screenshot below:
1606988811348.png
 
Upvote 0
Thanks for such a quick response! I tried to copy and paste that formula as you had it, but it weirdly doesn't seem to like it when I do it. I am clearly missing something. Sorry!


1606989376442.png
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top