Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Read milliseconds from "uu.mm.ss.000" in Excel

1,400 views
Skip to first unread message

Stephan

unread,
Jul 15, 2004, 4:34:56 AM7/15/04
to
In Excel I have a cell (A1) with the next value:
9-7-2004 9:08:32
As you can see is a time. I have configured the format to 'custom':
'uu.mm.ss.000'. Now it looks like this:
09:08:32.315

Now I want to calculate the total time in milliseconds.
I can read the hours: =HOUR(A1)
I can read the minutes: = MINUTES(A1)
I can read the seconds: = SECONDS(A1)
But I can't get the milliseconds.

Does someone know how to do that?
Thanx!!

Stephan


PS. Calculation becomes something like this:
=(HOUR(A1)*60*60*1000) + (MINUTE(A1) * 60 * 1000 ) + (SECOND(A1) *
1000) + ...

Ingrid Baplue

unread,
Jul 15, 2004, 4:55:39 AM7/15/04
to
=REST(A1;1)*24*60*60*1000
of
=REST(A1;1)*86400000
en de cel opmaken als Standaard

of in het Engels:
=MOD(A1;1)*86400000

In Excel worden datums en tijden als seriële getallen bewaard. Het geheel
gedeelte is de datum en het decimaal gedeelte is de tijd.

Vermits 1 gelijk is aan 1 dag of 24 uur wordt de tijdwaarde met 24
vermenigvuld om de tijd in uren in decimale notatie te verkrijgen.
Vervolgens nog eens met 60 vermenigvuldigen om naar minuten om te zetten,
nog eens maal 60 geeft seconden en tot slot maal 1000 om milliseconden te
verkrijgen.

Met REST(A1;1) wordt eerst de datum van de waarde afgetrokken zodat enkel de
tijd nog overblijft.

--
Ingrid Baplue
Excel MVP
http://users.telenet.be/ingrid/excel/

Dit bericht is geplaatst in een nieuwsgroep. Post je evt antwoord of
vervolgvraag graag in de nieuwsgroep a.u.b.

Stephan schreef in 80aea17d.04071...@posting.google.com

Amedee Van Gasse

unread,
Jul 16, 2004, 3:32:20 AM7/16/04
to
Stephan schreef in <news:80aea17d.0407150034.26b5a7e5
@posting.google.com>:

> In Excel I have a cell (A1) with the next value:
> 9-7-2004 9:08:32
> As you can see is a time. I have configured the format to 'custom':
> 'uu.mm.ss.000'. Now it looks like this:
> 09:08:32.315
>
> Now I want to calculate the total time in milliseconds.
> I can read the hours: =HOUR(A1)
> I can read the minutes: = MINUTES(A1)
> I can read the seconds: = SECONDS(A1)
> But I can't get the milliseconds.
>
> Does someone know how to do that?
> Thanx!!
>
> Stephan

Stephan,

This is an nl-group so the following will be in Dutch.

Excel heeft geen aparte ingebouwde functie voor milliseconden.
Daarom dat je de oplossing moet gebruiken die Ingrid voorstelt.

Let op: de nauwkeurigheid van de functie =NU() is (bij mij toch) in
honderdsten en niet in duizendsten. Ik weet niet of dit weerslag heeft op
andere tijdfuncties maar het kan handig zijn om weten...


--
Amedee Van Gasse

To top-post is human, to bottom-post and snip is sublime.

Dit bericht is geplaatst in een nieuwsgroep. Post je evt antwoord of

vervolgvraag graag in dezelfde thread in de nieuwsgroep a.u.b.

Stephan

unread,
Jul 16, 2004, 4:02:01 AM7/16/04
to
Ingrid Bedankt!!!
Het is gelukt en ik had al een vaag vermoeden dat jij me daarbij zou helpen!

Groeten,
Stephan

"Ingrid Baplue" <ingrid_bap...@hotmail.com> wrote in message news:<O7eT$lkaEH...@TK2MSFTNGP12.phx.gbl>...


> =REST(A1;1)*24*60*60*1000
> of
> =REST(A1;1)*86400000
> en de cel opmaken als Standaard
>
> of in het Engels:
> =MOD(A1;1)*86400000
>

> In Excel worden datums en tijden als seriėle getallen bewaard. Het geheel

0 new messages