Solved

Excel convert date to new layout from existing date entry

Posted on 2014-10-06
4
147 Views
Last Modified: 2014-10-06
I download a weekly spreadsheet that has the date format at 09/01/2000, I need to change that date format to 2000-9-1.  I have not found many articles that I can follow that will show how to change an existing date, everything so far is about formatting the today date.

Can anyone offer any help on how I would take the date format I am given and change to a new non standard format in Excel?

Current date format is 09/01/2000
Wanted format is 2000-9-1
0
Comment
Question by:chrispre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
dsacker earned 500 total points
ID: 40363766
There are a few ways you can do this. Perhaps the easiest way would be to format the entire column.

Click on the column header of your date column, then select Format Cells.

Click Custom.

In the "Type:" box, type yyyy-m-d.
0
 
LVL 20

Expert Comment

by:dsacker
ID: 40363776
If you prefer to completely change the actual data in that date column to that format:

Select an extra column to the right of all your columns. For example, say your date column is Column A, row 2. Column Z, row 2 (cell Z2), enter: =TEXT(A2, "yyyy-m-d")

Copy that cell all the way down to your last row.

Then, if you wish, simply copy those values back into your original date column.

A lot more steps, but that actually replaces the data with the format you're looking for. Still, the option in my previous post is easier, I would think.
0
 
LVL 12

Expert Comment

by:James Elliott
ID: 40363824
dascker has provided the only two solutions that I know of, but a consequence of the second option is that it will no longer be considered a 'date' by excel.

This may or may not impact your future use of the data.
0
 

Author Closing Comment

by:chrispre
ID: 40364099
This was just what I needed.  Thank you!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question