Ask Experts Questions for FREE Help !
Ask
    jakester's Avatar
    jakester Posts: 582, Reputation: 165
    Senior Member
     
    #1

    Sep 10, 2009, 12:26 PM
    How do I convert non-date string to a Date?
    Hi -

    Okay, so here's my issue. I have a non-date string that I'd like to convert to a date format. This is what my non-date string looks like: 2009-01 and 2009-02, etc.

    I'd like to convert that to Jan-2009 or 01/09 under the date format.

    Can I do this?
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #2

    Sep 10, 2009, 09:24 PM

    1) Highlight all the dates
    2) Click on Data > Text to Columns
    3) Select Delimited > Next
    4) Select Next
    5) In Column Data format select Date: YMD
    6) Click Finish

    You've just converted the text strings into ACTUAL Excel date values. You will most likely see:
    Jan-09
    Feb-09

    7) Press Ctrl-1 to open the Format Cells window
    8) Select Number tab
    9) Choose Category: Custom and enter mmm-yyy in the Type: box

    You will now see your date values as:
    Jan-2009
    Feb-2009

    NOTE: Since your original text strings had no "day values, they will all be the first day of the month. Click on any one of these new cells and look in the formula bar, you'll see what I mean.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search


Check out some similar questions!

Excel: Convert numbers to date [ 4 Answers ]

I'm using excel 07 and I have a cell containing the number 11291997 which represents 11/29/1997. How can I convert this to a date format. The 11291197 is number formatted. Any suggestions would help, thanks!

Call I have my court date canceled and do it on a later date [ 1 Answers ]

I have a court date for Oct 20 for a scheduling conference for a credit card debt. I was served a summons to file an answer and I did in a timely manner then I received a Notice of Hearing that says the case is scheduled for Scheduling Conference. Can I do anything at this point. I had previously...

To-date total based on current date [ 1 Answers ]

:confused: I am trying to create a forumula that will give a cumulative or "to-date" total that will exclude future months from the total. i.e. ithe point in time is August and I need to show a to-date number Through August only even though September and October are included in The...

F-1 to H-1, what's the start date of H-1? Should be approval date or visa issue day? [ 3 Answers ]

As I mention before, I changed from F-1 to H-1 last year. I got my H-1 status in Feb 2004, but I went to my home country to get the H-1 visa stamp in August 2004. So I would like to know for counting my H-1 status, is it the date that USCIS (the Immigration) approved (which is Feb 1st), or the...


View more questions Search