+ Reply to Thread
Results 1 to 11 of 11

Changing dates around from imported .csv file

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Changing dates around from imported .csv file

    Hi everyone,
    Just wondering if anyone knows how to change the date format around from an imported .csv file.
    I live in Australia and we write our dates as dd/mm/yy but the file i have imported is mm/dd/yy.
    I have tried to change it from the 'Format cells' using the Date and Custom categories but it still doesn't change it. The Sample view box in the 'Format Cells' when I have tried to change it still shows the original format I imported and it wont change.
    I'm sure this has to do with the original document formatting but I'm just wondering if there is a way to swap the formatting around.

    Thank you in advance, your efforts are much appreciated.

    Regards

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Changing dates around from imported .csv file

    You need to change the keyboard regional settings jb. Please see attached.

    Untitled.jpg
    Regards,

    jeversf

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Changing dates around from imported .csv file

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    that formula worked for me paste it in a column outside the csv paste area then format the cell to date. and drag down as needed. this formula works if your date column starts at A1 .

  4. #4
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Changing dates around from imported .csv file

    Hi daveisalwayshere,
    I thought I sent a reply to your solution but I guess you never got it.
    Thanks for your formula but I was a little confused how to use it. Excuse my ignorance.
    Can you please tell how you apply that formula on a step by step basis so its idiot proof. I guess I'm still learning.

    Thanks for understanding.

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Changing dates around from imported .csv file

    thats ok I think i need to adjust the formula as i didnt fully look at how your computer reads the date. mine reads year,month/day when you type in =date( into a cell, what is the your formula looking for?


    and this formula is easy =date(Year,month,day)

    year = right four characters in A1
    month = find the first"/" and return the numbers prior to it
    day= find the middle numbers by eliminating the outer numbers(this one is harder to explain)

  6. #6
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Changing dates around from imported .csv file

    My computer reads =date (day/month/year) (xx/xx/xxxx).

    I need to convert an entire report sent to me as =date(Year,month,day) to my =date (day/month/year)

    Hope that helps Cheers mate

  7. #7
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Changing dates around from imported .csv file

    =DATE(MID(A1,FIND("/",A1,6)+1,2),MID(A1,FIND("/",A1)+1,2),LEFT(A1,4))



    paste this in a column and change the A1 to whatever cell you use. then also format the cell to date. then drag down this should work but i cannot test it because my date format is different.

  8. #8
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Changing dates around from imported .csv file

    I've tried many different things to make this work but I can't get it to work. Not sure what else I can do.

    Thanks for your assistance.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Changing dates around from imported .csv file

    If the dates are text from a CSV file and look like 4/15/2015 and NOT 4-15-2015 you can use Text to columns.
    1. Select the dates
    2. Click on the Data Tab, Text to columns
    3. Click Next, Next, select Date and MDY
    4. Click Finish

    The dates will be converted to your regional settings for dates.

    / are recognized for dates but - are not.

    If the dates are in A1 down and you have - separators, in B1 enter and fill down then copy and PASTE VALUES then do the above procedure.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Changing dates around from imported .csv file

    That's brilliant newdoverman.
    Thanks for the easy to follow instructions, you have opened a new part of excel that I haven't explored as yet. Much appreciated.

    Cheers mate

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Changing dates around from imported .csv file

    Glad to help.

+ 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. Stop Excel from changing numbers to dates in CSV file
    By Curt L. in forum Excel General
    Replies: 3
    Last Post: 11-04-2013, 12:26 PM
  2. Rolling Dates (changing file name)
    By donyc in forum Excel General
    Replies: 0
    Last Post: 02-10-2012, 07:00 PM
  3. add imported text file name above imported data
    By tompie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2009, 08:18 AM
  4. Need help with changing data after it has been imported.
    By notthemacroman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2006, 04:10 PM
  5. Opening a file with changing dates
    By kingkdz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2006, 04:12 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