Listing Dates Between Two Dates

AlphaBax

New Member
Joined
Jul 13, 2018
Messages
2
Administration wants to list the actual dates each employee took off during the year. However, the recording system lists only the first date and the number of total vacation hours.

So I need to get from

[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]Joe Blow[/TD]
[TD]9/6/17 [/TD]
[TD] 75[/TD]
[/TR]
</tbody>[/TABLE]



to

[TABLE="class: grid, align: left"]
<tbody>[TR]
[TD]Joe Blow[/TD]
[TD]9/6/17[/TD]
[TD]9/7/17[/TD]
[TD]9/8/17 (skip the weekend)[/TD]
[TD]9/10/17[/TD]
[TD]etc[/TD]
[/TR]
</tbody>[/TABLE]



I can convert hours to days and use WORKDAY to tell me the end date, but can I make it list for me all the dates in between?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi,

Try this:

D1=B1
E1 =IFERROR(IF(WEEKDAY(D$1+1)<>7,IF(D$1+COLUMN(A$1)>WORKDAY($B$1,QUOTIENT($C$1/24,1)),"",D$1+1),IF(WORKDAY($B$1,QUOTIENT($C$1/24,1))<D$1+COUNT($D$1:D$1),"",D$1+2)),"")



<d$1+count($d$1:d$1),"",d$1+2)),"")
[TABLE="width: 560"]
<tbody>[TR]
[TD="class: xl63, width: 70"][/TD]
[TD="class: xl63, width: 70"]A[/TD]
[TD="class: xl63, width: 70"]B[/TD]
[TD="class: xl63, width: 70"]C[/TD]
[TD="class: xl63, width: 70"]D[/TD]
[TD="class: xl63, width: 70"]E[/TD]
[TD="class: xl63, width: 70"]F[/TD]
[TD="class: xl63, width: 70"]G[/TD]
[/TR]
[TR]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]Joe Blow[/TD]
[TD="class: xl64"]06/09/17[/TD]
[TD="class: xl63"]75[/TD]
[TD="class: xl64"]06/09/17[/TD]
[TD="class: xl64"]07/09/17[/TD]
[TD="class: xl64"]08/09/17[/TD]
[TD="class: xl64"]10/09/17[/TD]
[/TR]
</tbody>[/TABLE]
<d$1+count($d$1:d$1),"",d$1+2)),"")< html=""></d$1+count($d$1:d$1),"",d$1+2)),"")<></d$1+count($d$1:d$1),"",d$1+2)),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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