+ Reply to Thread
Results 1 to 5 of 5

Formatting column as DATE instead of CSV EXPORT format

  1. #1
    Registered User
    Join Date
    08-02-2016
    Location
    Ruskin, FL
    MS-Off Ver
    2013
    Posts
    2

    Formatting column as DATE instead of CSV EXPORT format

    I have a few columns that are dates YYYYMMDD (text from WooCommerce export). I need to format them as any kind of excel date. Preferable YYYY-MM-DD. My years go back at least 50 and I am dealing with a little over 20k line items. Below is a snippet of my CSV file.

    TIA,
    Jon

    Date
    20160708
    20160708
    20091007
    20100907
    20100511
    20110705
    20090806
    20120215
    20100326

  2. #2
    Registered User
    Join Date
    08-13-2015
    Location
    Brussels
    MS-Off Ver
    2010
    Posts
    7

    Re: Formatting column as DATE instead of CSV EXPORT format

    =+DATE(LEFT(A1,4),MID(A1,5,2),CLEAN(RIGHT(A1,2)))

    the format of your date can be changed by clicking right Format Cells

  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: Formatting column as DATE instead of CSV EXPORT format

    This worked for me.

    Select the range of dates
    Goto the Data tab>Text to columns
    Click Next twice
    In step 3 of the userform under Data column format select Date
    From the drop down list select YMD
    Click Finish

    Format in the date style of your choice.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-02-2016
    Location
    Ruskin, FL
    MS-Off Ver
    2013
    Posts
    2

    Re: Formatting column as DATE instead of CSV EXPORT format

    Thanks @Tony Valco

    The only thing I needed to do in addition to your perfect suggestions was to format them as UK English YYYY-MM-DD

    Thanks again all
    jon

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

    Re: Formatting column as DATE instead of CSV EXPORT format

    You're welcome. Thanks for the feedback!

+ 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. Export from Access to Excel, fields with date format
    By Pkeja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2015, 10:38 PM
  2. Date format problem on export to CSV
    By Nijk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2014, 12:14 PM
  3. [SOLVED] Format align text in column when export to excel with VBA
    By Cuong Pham in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2013, 12:11 AM
  4. Export date to unicode format, lost seconds
    By ptw in forum Excel General
    Replies: 0
    Last Post: 10-28-2009, 09:09 AM
  5. Replies: 3
    Last Post: 07-11-2009, 12:39 AM
  6. Export Date Format
    By Mr. C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2006, 05:10 PM
  7. [SOLVED] export cell value - Date Format
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2005, 03:05 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