Extend One Row to Multiple Rows by a Specific Rule

chuxin huo
Dec 14, 2020

--

The Excel worksheet below consists of two columns of start time and end time:

Task: Extend each row of start time & end time to multiple rows according to the number of consecutive dates it includes and calculate the number of hours each date covers. The following is part of the expected result (where the first row is extended into 4 rows):

Directions:

1. Start esProc (Download esProc installation package and free DSK edition license HERE. You will be prompted to load the license file when you run esProc for the first time).

2. Write and execute script in esProc.

In this esProc script, periods()function generates a continuous time sequence at a specific interval apart. @s option enables generating the time sequence in seconds; parameter 3600 means on hour apart. groups() function performs grouping and summarization.

--

--

No responses yet