98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Incorrect date formate downloaded from SAP | Excel forum
Incorrect date formate downloaded from SAP | Excel forum
Resolved · High Priority · Version 2007
Leila has attended:
Excel Advanced course
Incorrect date formate downloaded from SAP
I'm trying to sort from oldest to newest on my spreadsheet however because of the format date from SAP it will not allow me to use this function.
Please advise.
Thank you,
Leila
RE: Incorrect date formate downloaded from SAP
Hi Leila
Thanks for getting in touch. You will need to perform a process on the incorrect date to convert it into a more acceptable format. What you need will vary according to how much work is required.
Can you reply with a sample of a few 'broken' dates that you download? I should then be able to advise on the best way to fix them.
Kind regards
Gary Fenn
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: Incorrect date formate downloaded from SAP
Hi Gary,
Please see below Mark Monroe has actually seen the spreadsheet and was going to get back to me on this message.
I hope this information is sufficent.
Thanks,
Leila
PO Doc Date
01.08.2012
01.08.2012
01.09.2012
01.10.2012
01.11.2012
RE: Incorrect date formate downloaded from SAP
Hi Leila
Thanks for the data. For this I would use a combination of the DATE, LEFT, RIGHT and MID functions.
Assuming your data starts in A1, I would put another column adjacent to it and enter the following formula:
=DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))
The DATE function creates a date out of its constituent parts (the day, the month, the year). We extract these parts from the source data using the LEFT, RIGHT and MID functions. In turn each of these looks at the cell and pulls out a certain number of characters.
RIGHT(A1,4) extracts 4 characters from the right of A1.
LEFT(A1,2) extracts the first 2 characters from cell A1.
MID(A1,4,2) counts 4 characters in from the left, then extracts 2 characters.
After you've assembled the date, you can then format the cell using your preferred date format.
I hope this helps.
Kind regards
Gary Fenn
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: Incorrect date formate downloaded from SAP
Hi Gary,
this is what I ran but its not working and populating with #name? in the field next to the date.
=data(RIGHT(A5,4),MID(A5,4,2),LEFT(A5,2))
Thanks,
Leila
RE: Incorrect date formate downloaded from SAP
Hi
Just a small tweak - you've written "data" instead of "date".
Kind regards
Gary Fenn
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Printing spreadsheets without opening them firstHere's a fast way of printing a spreadsheet from Windows Explorer/My Computer. |