+ Reply to Thread
Results 1 to 3 of 3

Convert date and time to a text string

  1. #1
    Registered User
    Join Date
    09-20-2008
    Location
    walsall england
    Posts
    1

    Convert date and time to a text string

    I want to take the data from a cell that is in the format dd/mm/yyyy hh:mm:ss and extract just the time element so that I can sort on time alone. Any ideas

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =TEXT(A1,"HH:MM")
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    An alternative

    =A1-INT(A1) format cell to TIME
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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. Extracting Hours from a date time 'string'
    By rachew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2007, 07:03 AM
  2. Convert text to date dd/mm/yyyy hh:mm:ss
    By Scottish2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2007, 07:59 AM
  3. Date and Time Graphs
    By sach0025 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-10-2007, 01:07 AM
  4. Assignment overDUE PLEASE PLEASE HELP!!
    By undergrad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2006, 12:34 AM
  5. String converts to date - text doesn't help!
    By KathyC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2006, 10:48 AM

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