Missing Time Stamps add blank row

googs91

New Member
Joined
Oct 13, 2019
Messages
3
I am trying to figure out how to build a macro to spot missing sequence and add in a new row when found.

There should be 1440 data points in column A
The date and time formatting goes as followed

10/10/2019 7:41
10/10/2019 7:42
10/10/2019 7:43
10/10/2019 7:44
10/10/2019 7:45
10/10/2019 7:46
10/10/2019 9:52
10/10/2019 9:53
10/10/2019 9:54
10/10/2019 9:55
10/10/2019 9:56

I would like the macro to find that its missing the data between 7:47 and 9:51 and add in blank rows. The time is also in military time so the format is
10/10/2019 00:00 thru 10/10/2019 23:59
what I have found in the formatting of the date and time is that every entry, which is one min apart, is .0006944444 off of the next.
<strike></strike>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I am trying to figure out how to build a macro to spot missing sequence and add in a new row when found.

There should be 1440 data points in column A
The date and time formatting goes as followed

10/10/2019 7:41
10/10/2019 7:42
10/10/2019 7:43
10/10/2019 7:44
10/10/2019 7:45
10/10/2019 7:46
10/10/2019 9:52
10/10/2019 9:53
10/10/2019 9:54
10/10/2019 9:55
10/10/2019 9:56

I would like the macro to find that its missing the data between 7:47 and 9:51 and add in blank rows. The time is also in military time so the format is
10/10/2019 00:00 thru 10/10/2019 23:59
what I have found in the formatting of the date and time is that every entry, which is one min apart, is .0006944444 off of the next.
<strike></strike>

Cross Posted

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://www.excelforum.com/excel-programming-vba-macros/1292948-sequence-macro-help.html#post5209889[/FONT]
 
Upvote 0
Thanks for informing us that this has been resolved, but for future reference

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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