+ Reply to Thread
Results 1 to 4 of 4

Date and Time in Same Column as Text Question

  1. #1
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Date and Time in Same Column as Text Question

    I have database where the date and time are showing as text in same column. Need to separate them into columns showing date and time. See attached. Thanks pick ><>
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Date and Time in Same Column as Text Question

    Please try

    =--(20&MID(A1,5,2)&TEXT(LEFT(A1,4),"-00-00"))

    and
    =--TEXT(RIGHT(A1,4),"00\:00")
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Date and Time in Same Column as Text Question

    You will need to use text manipulation functions to extract the different date/time elements and put them back together using the DATE() and TIME() functions. For the Date, for example, something like =VALUE(LEFT(A1,2)) will get the month value, VALUE(MID(A1,3,2)) will get the day of the month value, and VALUE(MID(A1,5,2)) will get the two digit year (assuming these are 21st century dates, you could add 2000 to the result to get the unambiguous 4 digit year). Put those into the DATE() function to get the correct date serial number =DATE(2000+VALUE(MID(A1,5,2)),LEFT(A1,2),MID(A1,3,2)). The formula for the time of day would be similar.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Date and Time in Same Column as Text Question

    Thank you. The formula worked.

+ 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] Date and time as text sample column
    By pick44 in forum Excel General
    Replies: 2
    Last Post: 01-21-2022, 04:41 PM
  2. Replies: 1
    Last Post: 01-11-2022, 08:05 PM
  3. [SOLVED] Date and Time in column dont convert in Using Text to Columns
    By pick44 in forum Excel General
    Replies: 3
    Last Post: 02-07-2019, 03:56 PM
  4. [SOLVED] Sumproduct. count how many time a month appears (in column filled by date or text). #Value
    By adriendriver in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2013, 08:43 AM
  5. [SOLVED] Formatting a column to display the date and time instead of general text using VBA
    By bean29 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2012, 08:46 AM
  6. Sort column with Date, Time and Text
    By dudedude in forum Excel General
    Replies: 2
    Last Post: 07-12-2010, 08:07 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