How to convert start & end date to a data series possible to use in a Pivot table

Tom_H

New Member
Joined
Feb 9, 2017
Messages
24
Hi.
I want to input the employment of an employee by start date and end date. Store the data in a (access) database. Link a Excel pivot table and use a Time Line (slicer) to view the employee employment.
The key problem(?) is how to convert start & end date to a data series that can be used in pivot table.

Today I calculate all months in the time period and set :
Stored data:
Start = January 1st 2018
End = End of July 2018.
Employment = 100%

And then calculate : Jan-2018 = 100%, Feb-2018 = 100%, Mars = 100% etc…
(100% = fulltime employee)

This works as long as I only use months as “time” in the Pivot table. (COLUMNS = Month)
But I cannot use weeks or days. Even if the input data should make it possible.
( I.e week 03 .. week 12 = 100% or 15 of february to 25 of May = 100%)

Must I calculate the start&end date to a months table and a week table and a day table ?
Or is there a smart way to only use start&end dates?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,216,167
Messages
6,129,263
Members
449,497
Latest member
The Wamp

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