Consulting

Results 1 to 7 of 7

Thread: Solved: convert time

  1. #1
    VBAX Regular
    Joined
    Mar 2008
    Posts
    90
    Location

    Solved: convert time

    hy!!

    I want to transfom 00:02:17 in seconds -- can u guys help me pls!?

    thanks!!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =N(M1*24*60*60)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Mar 2008
    Posts
    90
    Location
    If I do : 00:02:17*24*60*60= #VALUE!# and I don't know what is N

    (I thimk M1=00:02:17 -cell)

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you want to convert a constant, use

    ="00:02:17"*24*60*60
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Mar 2008
    Posts
    90
    Location
    my english sucks :P

    so I have in A1 cell this time expresion 00:02:17 and I want to convert it in seconds ...
    I know to transform seconds in hh:mm:ss format .. and i knew that if I want to transform HH:mm:ss time format in seconds I must multiply with 24*60*60 ... but 00:02:10 * 24*60*60 = #value!#

    so can u say me what means N in ur formula ... or use the attach

    thanks !

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You have spaces in the A1 in front of the time value, that is what is causing the problem.

    Try

    =N(TRIM(A1)*24*60*60)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Mar 2008
    Posts
    90
    Location
    thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •