How to add random seconds in existing timestamp

nomanalik

New Member
Joined
Feb 26, 2018
Messages
9
Hi Folks
Currently i have a timestamps column in this format.... 2/10/2018 10:43 AM...
Now i want to add random seconds in this existing timestamp column like 2/10/2018 10:43:04 AM, 2/10/2018 10:43:09 AM, 2/10/2018 10:43:18 AM, 2/10/2018 10:43:28 AM and so on like this....

Please suggest me the formula
 
No, actually this data is coming from mobile sensors...And mobile sensors don't provide data like this (say with 1 second increment every time).
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
No, actually this data is coming from mobile sensors...And mobile sensors don't provide data like this (say with 1 second increment every time).
One of us is not understanding the other.
I am not suggesting that the sensors send the data with the 1 second increments. What I am saying is that if you get three rows of data with, say, 10:43:00 and you simply want to differentiate each row, I'm wondering what the difference is between adding random seconds in increasing order ..

10:43:09
10:43:27
10:43:32

.. and adding sequential seconds ..

10:43:01
10:43:02
10:43:03

.. as both allow you to differentiate the rows?


BTW, can you confirm that you will never have more than 60 original timestamps with the same value?
 
Upvote 0
Try this buddy!;)

=TIME(HOUR(D35),MINUTE(D35),SECOND(D35)+RAND()*9+1)

(Here D35 is the first cell where the time starts.)
Let me know if this worked.
Note: this will add random seconds between 1 to 10 if you want more difference here is the formula for RAND function
=Rand ()*Upper Value- lower Value+Lower value
In this case its =Rand ()*10-1+1
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,612
Members
452,660
Latest member
Zatman

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