【发布时间】:2018-03-12 12:36:56
【问题描述】:
我有一个如下的 Excel 表格:
Booking #, Arrival Passed Berthing Date UnBerthing Date Departure Passed
94260 13/05/2017 15:30 13/05/2017 16:00 31/05/2017 20:44 31/05/2017 20:58
94708 15/05/2017 16:56 15/05/2017 17:15 16/05/2017 00:00 16/05/2017 00:04
94709 20/05/2017 09:54 20/05/2017 10:26 20/05/2017 18:07 20/05/2017 18:17
94710 24/05/2017 16:09 24/05/2017 16:35 25/05/2017 01:03 25/05/2017 01:08
94711 29/05/2017 10:30 29/05/2017 10:45 29/05/2017 17:33 29/05/2017 17:38
94716 17/05/2017 18:10 17/05/2017 18:25 18/05/2017 01:08 18/05/2017 01:14
94717 22/05/2017 17:31 22/05/2017 17:50 23/05/2017 00:55 23/05/2017 01:03
94718 27/05/2017 10:52 27/05/2017 11:07 27/05/2017 18:54 27/05/2017 19:00
94719 31/05/2017 19:04 31/05/2017 19:18 01/06/2017 01:45 01/06/2017 01:52
我需要以下格式:
Booking # Event Time
94260 Arrival Passed 13/05/2017 15:30
94260 Berthing Date 13/05/2017 16:00
94260 UnBerthing Date 31/05/2017 20:44
94260 Departure Passed 31/05/2017 20:58
94708 Arrival Passed 15/05/2017 16:56
94708 Berthing Date 15/05/2017 17:15
94708 UnBerthing Date 16/05/2017 00:00
94708 Departure Passed 16/05/2017 00:04
等
非常感谢您的帮助。
谢谢。
注意:有 628 行,我需要对其进行转换。
【问题讨论】:
-
一句话,unpivot。
-
谢谢 Jeeped,我刚刚看了一个关于它的视频,我认为它会起作用,我现在就试试。谢谢。
-
您的示例并不完全清楚 - 例如,94711 会出现在 94710 之前还是之后?
标签: vba excel excel-formula