+ Reply to Thread
Results 1 to 5 of 5

converting 20071231 to 12/31/2007

Hybrid View

InvGrp2 converting 20071231 to... 01-04-2008, 12:46 PM
shg =DATE(LEFT(A1,4),... 01-04-2008, 12:54 PM
InvGrp2 That worked perfectly... 01-04-2008, 01:11 PM
daddylonglegs You could actually convert... 01-04-2008, 01:43 PM
InvGrp2 The paste special worked... 01-04-2008, 07:45 PM
  1. #1
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145

    converting 20071231 to 12/31/2007

    I did a search prior to posting this but to be honest the posts were a bit confusing.

    Any help would be appreciated in converting 20071231 to 12/31/2007.

    Bruce

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    =DATE(LEFT(A1,4), MID(A1,5,2), RIGHT(A1,2))

  3. #3
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145
    That worked perfectly (conversion).

    I now need to get the results (without the formula) into another cell.

    Note: I need to use the 12/31/2007 data (no formula) in another spreadsheet.

    Thanks.

    Bruce

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723
    You could actually convert your "dates" in situ using:

    Data > Text to Columns > Next > Next > at step 3 from "column data format" select "Date" and YMD. You can now copy this data to another sheet

    If you used shg's formula to convert than you can copy the converted data and use Edit > Paste Special > Values to copy just the date value without the formula.

    Note: You could also use this formula to convert

    =TEXT(A1,"0000-00-00")+0

    format as date

  5. #5
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145
    The paste special worked great.

    Thanks again.

    Bruce

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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