Hi Excel Gurus.
I'd like to remove duplicate timestamps in a subtitle file. In the show, the subtitle text will display the first timestamped text and ignore any other with the same timestamp. I'd like to "replace" the second time stamp along with 2 rows above it (a blank space and line number).
I figure the solution includes a search function for an anchor, like the number (although, the risk is there's a subtitle number that might be mistakenly ID'ed), or something unique, like the "-->". From there, it's just a brain twister for me.
It might be possible to use a row number counting function, such as: find X > check 2 rows up > delete X rows. As far as I can tell, these subtitles have duplicate timestamps because they split up multiple lines. However, I don't know for a fact that all the subtitles across the entire show follow this one-line-per-timestamp rule.
1) Yes, I know there are subtitle tools out there. They do not fix this.
2) No, I don't want to do this manually, considering would be hundreds of these to go through.
3) While I'm usually not a fan of VBA solutions, I'd be open to it in this case.
4) Yes, this is pretty trivial. But you'll be saving me from hours of headaches!
Here's a sample of the data:
I'd like to remove duplicate timestamps in a subtitle file. In the show, the subtitle text will display the first timestamped text and ignore any other with the same timestamp. I'd like to "replace" the second time stamp along with 2 rows above it (a blank space and line number).
I figure the solution includes a search function for an anchor, like the number (although, the risk is there's a subtitle number that might be mistakenly ID'ed), or something unique, like the "-->". From there, it's just a brain twister for me.
It might be possible to use a row number counting function, such as: find X > check 2 rows up > delete X rows. As far as I can tell, these subtitles have duplicate timestamps because they split up multiple lines. However, I don't know for a fact that all the subtitles across the entire show follow this one-line-per-timestamp rule.
1) Yes, I know there are subtitle tools out there. They do not fix this.
2) No, I don't want to do this manually, considering would be hundreds of these to go through.
3) While I'm usually not a fan of VBA solutions, I'd be open to it in this case.
4) Yes, this is pretty trivial. But you'll be saving me from hours of headaches!
Here's a sample of the data:
1368 |
00:31:44,820 --> 00:31:47,573 |
SO YOU DON'T SEE ME WALK |
|
1369 |
00:31:44,820 --> 00:31:47,573 |
INTO THE KITCHEN WITH THEM. |
|
1370 |
00:31:47,614 --> 00:31:49,616 |
DID YOUR MOTHER MENTION |
|
1371 |
00:31:47,614 --> 00:31:49,616 |
IF THEY WERE COMING? |
|
1372 |
00:31:49,658 --> 00:31:51,201 |
SHE NEVER GOT BACK TO ME. |
|
1373 |
00:31:51,243 --> 00:31:53,078 |
UH, NO, |
|
1374 |
00:31:51,243 --> 00:31:53,078 |
SHE'S GOT A THING TONIGHT. |
|
1375 |
00:31:53,119 --> 00:31:55,997 |
TOO BAD. HEY, WE CAN |
|
1376 |
00:31:53,119 --> 00:31:55,997 |
SAVE HER A PIECE OF CAKE. |
|
1377 |
00:31:56,039 --> 00:31:57,999 |
THAT WOULD BE NICE. |
|
1378 |
00:31:58,041 --> 00:32:03,463 |
♪ ****, THIS BAR IS THUMPING, |
|
1379 |
00:31:58,041 --> 00:32:03,463 |
THIS BRAIN RELEASED NOW ♪ |
|
1380 |
00:32:03,505 --> 00:32:06,132 |
♪ MY LITTLE FOOTPRINTS |
|
1381 |
00:32:03,505 --> 00:32:06,132 |
HANGING... ♪ |
|
1382 |
00:32:06,174 --> 00:32:10,470 |
ATTENTION, GUESTS, THE BUFFET |