Millisecond Date Filling

C_Rules

New Member
Joined
Feb 21, 2025
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi All if I have a date range expressed as yyyy-mm-dd-hh.mm.ss.000 and I want to increase the value by one millisecond for each new row and then have the time reset back to 0 for each new day For example:
2024-01-02-00.00.00.000
2024-01-02-00.00.00.000
2024-01-02-00.00.00.000
2024-01-02-00.00.00.000
2024-01-03-00.00.00.000
2024-01-03-00.00.00.000
2024-01-03-00.00.00.000

I need a formula to change those dates in a new column to be

2024-01-02-00.00.00.000
2024-01-02-00.00.00.001
2024-01-02-00.00.00.002
2024-01-02-00.00.00.003
2024-01-03-00.00.00.000
2024-01-03-00.00.00.001
2024-01-03-00.00.00.002

How can i accomplish this?
 
Upvote 0
Solution
This is what I am getting.

2025-02-012025-02-01-00.00.00.000000
2025-02-012025-02-01-00.00.00.000001
2025-02-012025-02-01-00.00.00.000002
2025-02-022025-02-02-00.00.00.000000
2025-02-022025-02-02-00.00.00.000001
2025-02-022025-02-02-00.00.00.000002
2025-02-022025-02-02-00.00.00.000003
 
Upvote 0
Hmm, are we getting any closer?

Cell Formulas
RangeFormula
B2:B8B2=TEXT(A2,"0000-00-00")&"-00.00.00."&TEXT(COUNTIF($A$2:A2,A2)-1,"000000")
This is exactly what I needed, thank you so much.

Also, thank you to all who chimed in with possible solutions.
 
Upvote 0
Upvote 0

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