Time intervals

endri81

New Member
Joined
Aug 9, 2011
Messages
16
I want to create 10 minutes intervals in a 24h day automatically.
Intervals should begin at 06:00 AM and seem like :
06:00-06:10
06:10-06-20
..
07:00-07:10
...

23:50-24:00

Is it possible?

Best Regards
 

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.
Try:
<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> exa7()<br><SPAN style="color:#00007F">Dim</SPAN> dbl <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> dtm <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Date</SPAN><br><SPAN style="color:#00007F">Dim</SPAN> i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>    <br>    dbl = 1 / 86400 * 600 * 35<br>    <br>    <SPAN style="color:#00007F">Do</SPAN> <SPAN style="color:#00007F">While</SPAN> dbl < 0.99<br>        i = i + 1<br>        dbl = dbl + 1 / 86400 * 600<br>        dtm = <SPAN style="color:#00007F">CDate</SPAN>(dbl)<br>        Cells(i, 1).Value = Format(dbl, "hh:mm") & "-" & Format(dbl + 1 / 86400 * 600, "hh:mm")<br>    <SPAN style="color:#00007F">Loop</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
I want to create 10 minutes intervals in a 24h day automatically.
Intervals should begin at 06:00 AM and seem like :
06:00-06:10
06:10-06-20
..
07:00-07:10
...

23:50-24:00

Is it possible?

Best Regards
Using a formula...

Manually type in the first interval in cell A1:

6:00-6:10

Enter this formula in A2:

=TEXT(LEFT(A1,FIND("-",A1)-1)+"0:10","h:mm")&"-"&TEXT(LEFT(A1,FIND("-",A1)-1)+"0:20","[h]:mm")

Copy down to A108
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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