Forum Discussion

JoseLara277's avatar
JoseLara277
Copper Contributor
May 08, 2023

Time off from List to Timeline

Dear Community, here is the case:

I just inherited a team of 15 people who are used to input their time off in an excel sheet with 3 columns: Name, Start Date, End Date. My idea is to create a Timeline from that. The issue I'm having is that a user can have more than one record for time offs.

I've found a couple of formulas online for the timeline. The problem I'm having is that names repeat multiple times in the time off sheet. For example someone can have a couple of day offs in June and some more in July.

So, my idea is to have a timeline with unique names and all days off for that person.

I've attached what I have so far.

8 Replies

  • JoseLara277 

    "I've attached what I have so far.". Unfortunately nothing is attached. It's better to discuss an issue based on your sample data.

    • JoseLara277's avatar
      JoseLara277
      Copper Contributor
      Sorry, I just noticed I need to figure out how to attach my excel file.
      • HansVogelaar's avatar
        HansVogelaar
        MVP

        JoseLara277 

        If you cannot attach a file here, you can make it available through OneDrive, Google Drive, Dropbox or similar. Obtain a link to the uploaded and shared file and paste that link into a reply.

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    JoseLara277 

    One solution to create a timeline with unique names and all days off for each person would be to use a PivotTable.

    Here are the steps:

    1. Select the range of cells that contain the time off data, including the headers.
    2. Go to the Insert tab and select "PivotTable".
    3. In the Create PivotTable dialog box, make sure the range is correct, and choose to create the PivotTable in a new worksheet or existing worksheet.
    4. In the PivotTable Fields pane, drag the "Name" column to the Rows section and the "Start Date" column to the Columns section.
    5. Drag the "End Date" column to the Values section.
    6. Click on the arrow next to the "End Date" field in the Values section, select "Value Field Settings", and choose "Count" as the summarization function.
    7. Now you have a PivotTable that shows each person's name and the number of days they took off in each month.
    8. To create the timeline, select the PivotTable and go to the Insert tab. Select "Timeline" and choose the "Start Date" field.
    9. In the Timeline dialog box, choose the date range for your timeline and click OK.
    10. Now you have a timeline that shows each person's name and all the days they took off during the selected time period.

    Note: You may need to adjust the PivotTable and timeline settings to fit your specific needs, but this should give you a good starting point.

     

Resources