Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Format dates

Posted on 2014-04-25
4
Medium Priority
?
109 Views
Last Modified: 2014-04-28
Can an expert assist with the formatting of the dates in the attached file please.

I need to be able to sort the dates so that they will sort
01/01/2012
02/01/2012
etc etc
01/02/2012
02/02/2012
etc etc
01/03/2013
02/03/2012
etc etc

Thanks
Dates-HELP-please.xlsx
0
Comment
Question by:Jagwarman
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 40021996
In cell B2 enter this formula =Value(A2) formula drop down copy column B and past to column A and sort.
Thanks
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40021997
If your computer is configured for dd/mm/yy system then a normal sort will do just what you are looking for.
0
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 2000 total points
ID: 40022132
some modification -  insert this formula in B2 =TEXT(A2,"DD-MM-YY")
Formula Drop Down.
Copy Column B & past to Column A.
Sort.

Thanks
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 40022187
The raw XML shows the dates are in dd-mm-yyyy format, which shouldn't be an issue in any locale, so we can assume the internal representation is converted correctly into "date".

The question is: how is your system configured? If it is mm/dd/yyyy, which is default for US and many other countries, you need to format them differently for displaying. Sort just works.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

885 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