Forum

Notifications
Clear all

Count days off from date range

3 Posts
3 Users
0 Reactions
73 Views
(@maride)
Posts: 1
New Member
Topic starter
 

I have a list of time off requests that are listed as date ranges (ie. 6/7/21 - 6/10/21 ) and I need to make a count of how many days off are requested for each date, ideally without having to manually input each date between the date ranges. So i want to be able to input

6/7/21 - 6/10/21
6/8/21 - 6/8/21
6/8/21 - 6/9/21
and be able to get a list

6/7/21 - 1
6/8/21 - 3
6/9/21 - 2
6/10/21 1

 
Posted : 14/07/2021 5:01 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Maride,

Welcome to our forum!

You will have to split the dates into separate columns. Then you can subtract the start date from the end date to calculate the number of days off. You can use Text to Columns to split the dates into their own columns, or if you're familiar with Power Query it can also split text. Here's an introduction to Power Query video

Hope that points you in the right direction.

Myda

 
Posted : 15/07/2021 2:48 am
(@questvba)
Posts: 125
Estimable Member
 

Hi Maride,

Here's a solution.

BR,

Lionel

 
Posted : 15/07/2021 5:45 am
Share: