• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to convert a TEXT to a DATE?

ko1

New Member
I need to bank account reconciliation. Unfortunately the file I exported out of my bank account shows "'02/05" (note the single apostrophe mark).

I tried doing a RIGHT function to get "02/05" and then I used DATEVALUE to convert it to a DATE - which however automatically shows as Feb 5 - when in fact, it should be May 2 (as I am using Asian calendar).

What is the easiest way to convert this "'02/05" to "May 2"?

Thanks!
 

Attachments

  • date.xlsx
    32 KB · Views: 8
You may also use TextToColumns like as below.

Code:
    Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, Space:=False, Other:=True, OtherChar:="'", FieldInfo:=Array(Array(1, 9), Array(2, 4))

Backup ur data before doing so..
 
you can also try =SUBSTITUTE(A2,"'","")+0 and than format it by going in to format cell-Custom- and than type mmm-dd in "TYPE heading
 

Attachments

  • date.xlsx
    11.5 KB · Views: 2
Back
Top