Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

date format issue

Posted on 2014-10-08
7
Medium Priority
?
172 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
[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
  • 4
  • 3
7 Comments
 
LVL 98

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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 3

Author Comment

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

Accepted Solution

by:
John Hurst earned 2000 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 98

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

705 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