#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default millisecond

can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default millisecond

=NOW()

format to ss.000


"Dan" wrote:

can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default millisecond

All time is considered a fraction of a day in Excel:
1 = one day, 24 hours
..5 = 12 hours
etc. down to 10 decimal places.
I haven't done the math, but is shouldn't be difficult.

On Jan 21, 11:15 am, Dan wrote:
can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default millisecond

Excel treats time as a fraction of a day. I haven't done the math, but
it should be simple:
1 = 24 hours
..5 = 12 hours
etc down to 10 decimal places.

On Jan 21, 11:15 am, Dan wrote:
can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default millisecond

Hi,

Try this:

=MOD(60*MOD(24*MOD(NOW(),1),1),1)*60

And format to numbers. Be aware that the fractional part of now tracks the
part of a day. There are only 10 digits available for this because the first
5 digits are on the left of the decimal and they track the date.

Since the are 60*60*24 =86400 seconds in a day so Excel is limited to the
number of decimals it tracks accurately.

--
Cheers,
Shane Devenshire


"Dan" wrote:

can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default millisecond

Which version of Excel you are using?

In mine (Excel 2003) the Excel Help for the SECONDS function says "Returns
the seconds of a time value. The second is given as an integer in the range
0 (zero) to 59.", so I wouldn't have expected to see milliseconds that way.
I don't think that function has changed significantly between versions, but
your Help should tell you.
--
David Biddulph

"Dan" wrote in message
...
can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default millisecond

Hi,

The only problem with this idea is the SS.000 still only display to SS.00.
That is, the last decimal, milliseconds, always displays 0.

--
Cheers,
Shane Devenshire


"Teethless mama" wrote:

=NOW()

format to ss.000


"Dan" wrote:

can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default millisecond

Yes, the resolution of the NOW() function is one-hundredth of a second.
That's still a lot better than Control colon which works to one minute.
--
David Biddulph

"ShaneDevenshire" wrote in
message ...
Hi,

The only problem with this idea is the SS.000 still only display to SS.00.
That is, the last decimal, milliseconds, always displays 0.

--
Cheers,
Shane Devenshire


"Teethless mama" wrote:

=NOW()

format to ss.000


"Dan" wrote:

can I display millisecond in Excel.
I tried =SECOND(NOW()) and changing the format to ss.000
but still did not work.
Any idea?
Dan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the time in millisecond jaizovic Excel Discussion (Misc queries) 1 August 4th 06 02:46 AM
how to find time difference between timestamps to a millisecond? sp New Users to Excel 2 June 16th 06 06:10 PM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"