Solved

date format issue

Posted on 2014-10-08
7
160 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 90

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 3

Author Comment

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

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 90

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now