milliseconds

  1. A

    Extract time from DateTime format

    Having trouble isolating the time component from some .csv data I'm importing. The datetime comes in as dd-mmm-yyyy hh:mm:ss:000 format, I ran a replace to repair the colon separator between seconds and milliseconds. Now I just want the hh:mm:ss.000 component. I tried to simply reformat with a...
  2. R

    Convert Excel DateTime Value from Double to mm/dd/yyyy hh:mm:ss.000

    Hello Excel Gurus! How can I format an Excel TimeDate from a double to mm/dd/yyyy hh:mm:ss.000 Thank you! Please call this sub to demonstrate my question: Public Sub TimeWithMS() Dim Timestamp As Variant Timestamp = Evaluate("Now()") Debug.Print Tab(0); "Timestamp:"; Tab(15); Timestamp...
  3. O

    excel number formatting to show time in milliseconds

    Hey everyone, How can excel number formatting format the =Now() function to show the time in milliseconds, this means that the date and time will be shown as milliseconds in a cell. Wed Mar 6 2019 20:16:17 equals 1551885377803 milliseconds Will appreciate and thank you.
  4. L

    Explanation of miliseconds conversion

    Hello, I have quick question please. in function below, if I use 2000 for miliseconds byval, what exactly does the calculation / 24 / 60 / 60 / 1000? What 2000 means in this moment for vba? Is it number of days, hours? Function waitTime(ByVal milliSeconds As Double) Application.Wait...
  5. S

    wait less than one second

    it is my understanding that using application. Wait will only work for durations of 1 second or more I need a way of waiting either 3 milliseconds or more up to about 50 milliseconds for one function I need to perform and up to as much as 500 millisecons (i.e. half a second) for another...
  6. E

    Averaging values that are a function of milliseconds of time to seconds of time

    I have data that was created every 100 or so milliseconds over 5 minutes (about 3k data points). I want to average all data within a length of a second into a single data point. Here is an example of the raw data vs the desired data. There isn't a consistent amount of data points for each...
  7. W

    Time function - Add seconds and milliseconds to a time in another cell

    I have a cell formatted as hh:mm:ss.000 In the next cell I want to use the TIME function to increase the cell by a set number of seconds and milliseconds. Example 00:00:01.288 in cell A1 Add 00:00:02.500 to the entry in cell A1 and display it in cell B1 I can only seem to get it work with...
  8. T

    How do you create columns that increase by milliseconds?

    I need to create columns that increase in intervals of 33 milliseconds. So, the first column is 00:00:00. 2nd column is 00:00:33. 3rd column is 00:00:66. And so on until I reach 2 minutes. Is there an easy way to do this in Excel?
  9. B

    New User - Could use some help with Time Formatting

    I want this time (09:31:09.880) to show as (09:31:09). I need to exclude the milliseconds. The cell is currently formatted as hh:mm:ss.000 If I try to format the cell using the time function (hh:mm:ss), Excel will round to the nearest second, this is a problem. I've also tried converting the...
  10. R

    How to summarise data recorded in milliseconds into other time periods?

    Hi, I would greatly appreciate any suggestions about how to transform a large data file containing values recorded in milliseconds (custom time format: d.mm.yyyy hh:mm:ss.000), to a separate data table showing the average of these values for other longer time periods (eg. seconds, minutes...
  11. M

    Application.OnTime.... Calculate every 200 milliseconds. Is there a way?

    Hello The function Application.OnTime could be use to refresh or recalculate a cell with the minimal interval of 1 second. Is there a way to have the function using a 200 milliseconds interval? Martin
  12. F

    Importing timestamps with milliseconds

    I try to import an instrument log with timestamps in format YYYY-MM-DD hh:mm:ss.sss into Excel. Whenever the first digit after the decimal separator is a zero, Excel doesn't recognise the value as valid date time, but import it as text. E.g. "2014-11-27 03:38:34.853" is imported as time, but...
  13. L

    Transforming seconds to milliseconds

    Hi there! I've got a data set with seconds (example: A1=1.2) and then I transformed it to time using =TIME(0,0,A1) and the format [h]:mm:ss.000 but it's showing 00:00:01.000 instead of 00:00:01.200. I don't know how to get the milliseconds!!! Can anyone there help me? Thanks!
  14. R

    Excel MVP's - VBA Code Optimization Request

    I was helping out another forum member with a solution to the following problem: http://www.mrexcel.com/forum/showthread.php?t=596276 I created a working code solution, but it has to be optimized. Can one of the VBA experts out there make some suggestions to significantly speed up this code...
  15. A

    Rounding milliseconds

    Hi, I'm using time with millisecond precision. I have some values such as hh:mm:02.345 (2 seconds, 345 milliseconds). Using second() function in excel seems to round this up/down to the nearest second depending on if millisecond part is greater/less than 0.5. I would like to always round down...

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