I have an input string because of the addin I use that needs to be in this format YearMonthDay such as 201307 or 20130719. It sometimes does not have the day, but just the month. Any thoughts on how I could convert this into a proper excel format?
I have an input string because of the addin I use that needs to be in this format YearMonthDay such as 201307 or 20130719. It sometimes does not have the day, but just the month. Any thoughts on how I could convert this into a proper excel format?
hi Boo123, something like this perhaps:
=IF(LEN(A1)=6,TEXT(A1&"01","00-00-00"),TEXT(A1,"00-00-00"))+0
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks