Find and transpose ranges as blocks.... I think?

picklefactory

Well-known Member
Joined
Jan 28, 2005
Messages
506
Office Version
  1. 365
Platform
  1. Windows
Hi folks
Trying to help our finance lady out with simplifying pay calcs. We have our company ERP systems collecting employee clockings but the format it outputs is not very amenable for manipulating the data, at least not for my meagre talents. The sample below shows the format of the report that's exported from the ERP, you can see that the number of entry rows can vary by employee, and some will include absences/holiday where applicable. I can't change the format of the export.
What I'm trying to do is grab each 'block' of data for each employee from the columnar format and transpose them so I have horizontal 'blocks' of data. In my head I then have short columns of data for each employee that I can add formulae to underneath and jiggle about with the data as I wish, I'm struggling to do that now as each employee block of data can vary and I'm not smart enough to find/index and manipulate where the position of entries is constantly varying. What I'd like to achieve is shown in the 2nd sample but I can't see a way to define each block, and then move it to a dynamically adjacent position to previous blocks.
Am I barking up the wrong tree, or is that doable?
Thanks



CLOCK ON OFF2.xls
ABCDEF
1530100A NOTHER
15402/03/2020 09:15:06 02/03/2020 16:05:47 6.83
15503/03/2020 06:28:08 03/03/2020 16:02:58 9.57
15604/03/2020 06:29:53 04/03/2020 16:05:42 9.60
15705/03/2020 06:27:53 05/03/2020 16:04:08 9.62
15806/03/2020 06:30:15 06/03/2020 15:33:58 9.05
15944.67
160Employee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_S
161
162
163
164
1650101B NOTHER
16602/03/2020 10:16:48 02/03/2020 16:03:48 5.78
16703/03/2020 06:55:10 03/03/2020 16:03:20 9.13
16804/03/2020 07:00:17 04/03/2020 16:03:03 9.05
16905/03/2020 07:00:28 05/03/2020 16:02:41 9.03
17006/03/2020 06:58:46 06/03/2020 15:32:11 8.57
17141.57
172Employee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_S
173
174
175
176
1771002C NOTHER
17804/03/2020 06:56:29 04/03/2020 16:02:09 9.10
17905/03/2020 06:56:24 05/03/2020 16:03:20 9.12
18006/03/2020 06:56:14 06/03/2020 15:32:45 8.60
18126.82
182Employee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_S
1831002
1841002 03/03/2020F070000163000H
185
186
Sheet1



CLOCK ON OFF2.xls
ABCDEFGHIJKLMNOPQRST
1530100A NOTHER0101B NOTHER1002C NOTHER
15402/03/2020 09:15:06 02/03/2020 16:05:47 6.8302/03/2020 10:16:48 02/03/2020 16:03:48 5.7804/03/2020 06:56:29 04/03/2020 16:02:09 9.10
15503/03/2020 06:28:08 03/03/2020 16:02:58 9.5703/03/2020 06:55:10 03/03/2020 16:03:20 9.1305/03/2020 06:56:24 05/03/2020 16:03:20 9.12
15604/03/2020 06:29:53 04/03/2020 16:05:42 9.6004/03/2020 07:00:17 04/03/2020 16:03:03 9.0506/03/2020 06:56:14 06/03/2020 15:32:45 8.60
15705/03/2020 06:27:53 05/03/2020 16:04:08 9.6205/03/2020 07:00:28 05/03/2020 16:02:41 9.0326.82
15806/03/2020 06:30:15 06/03/2020 15:33:58 9.0506/03/2020 06:58:46 06/03/2020 15:32:11 8.57Employee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_S
15944.6741.571002
160Employee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_SEmployee_Clock_NoDateFull_or_Half_DayFrom_TimeTo_TimeCode_H_or_S1002 03/03/2020F070000163000H
Sheet1
 
Glad we could help & thanks for the feedback
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,520
Messages
6,120,011
Members
448,935
Latest member
ijat

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