+ Reply to Thread
Results 1 to 3 of 3

Timestamp

  1. #1
    Forum Contributor
    Join Date
    09-27-2004
    Posts
    133

    Question Timestamp

    I imported a .csv file that has a column of timestamps in the following form:

    15/04/20_01:13:46

    In an adjacent column I extracted the "time" portion with the RIGHT function, 01:13:46.

    I wanted to convert the "time" to a fraction by using Format, Cells, Number, but nothing happens.

    If I actually type in the "time", 01:13:46, then the format is successful, and the cell value is 0.0512.

    Is there a way of avoiding actually entering every "time" value in order to convert it to a fraction?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Timestamp

    Hi there. try this:

    =TEXT(RIGHT(A1,8),"?.????")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Timestamp

    The RIGHT function returns a TEXT value even though it may look like a number (or time).

    Try it like this...

    A1: 15/04/20_01:13:46

    =--RIGHT(A1,8)

    The -- double unary minus will coerce the TEXT value into a NUMERIC value.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Timestamp changes
    By Benkei in forum Excel General
    Replies: 3
    Last Post: 03-13-2014, 04:42 AM
  2. Replies: 18
    Last Post: 02-24-2014, 06:13 PM
  3. Timestamp
    By puffyboy in forum Excel General
    Replies: 1
    Last Post: 12-18-2013, 11:09 PM
  4. [SOLVED] timestamp
    By wjk221 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2013, 09:29 AM
  5. When a timestamp doesn't behave as a timestamp
    By mredekopp in forum Excel General
    Replies: 3
    Last Post: 03-07-2011, 03:39 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1