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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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