Solved

date format issue

Posted on 2014-10-08
7
166 Views
Last Modified: 2014-10-08
I have received some data from an external source. The current format of the data is shown as dd-mmm-yy, however, when you highlight a cell , in the formula bar - it shows dd/mm/yyyy (i.e. includes the century!).

The problem is the centuries are wrong for some cells of data. I want a separate column to copy the data - and only store dd/mm/yy - whereby yy represents only the last 2 year, i.e. for 2014 it should only store 14. I only want this data and I presume it would be better as text as opposed general/dates which may actually store the century information.

Any pointers of a formula?
0
Comment
Question by:pma111
  • 4
  • 3
7 Comments
 
LVL 93

Expert Comment

by:John Hurst
ID: 40368272
If the century is wrong, then the data is wrong. Formatting won't help this (although you can easily format d-mmm-yy in Excel.

The easiest approach would be to correct the source of the data. Otherwise you would have to change the number to alter the century.
0
 
LVL 3

Author Comment

by:pma111
ID: 40368283
I think its how excel handles dates before 2029 as opposed the source system but i need to export a list to csv in ddmmyy format
0
 
LVL 3

Author Comment

by:pma111
ID: 40368286
Wont formatting it sending it off retain the century thus not solving the problem
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 3

Author Comment

by:pma111
ID: 40368288
I just want to extract the relevant segments as text
0
 
LVL 93

Accepted Solution

by:
John Hurst earned 500 total points
ID: 40368302
I exported a number of test dates into csv and the text looked like the format. However I don't know how CSV might work in this case.

So try a test:  Select a range or a sheet and format the date as you wish. Then export to CSV, close Excel and open just the CSV. My test says it might work.
0
 
LVL 3

Author Comment

by:pma111
ID: 40368321
thanks john - I had the same result
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40368331
@pma111  - You are very welcome and I was happy to help. I am glad this worked for you.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Outlook Free & Paid Tools
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

827 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