Solved

convert text to date

Posted on 2011-09-22
3
177 Views
Last Modified: 2012-05-12
I have text "September" in cell A1 and "2011" in A2. How do I convert these text values into a date format Sep-2011?
0
Comment
Question by:teaone
3 Comments
 
LVL 2

Accepted Solution

by:
sanofi-aventis earned 250 total points
ID: 36582842
Use the Function DateValue()

=DateValue( A1& " " & B1) And format the Cell with the date format as  you like. Or rap it in a Text function
=Text(DateValue(A1&" "&B1), "Mmm-YYYY")
0
 

Expert Comment

by:nscoh
ID: 36582857
Assuming you want this converted and placed into A3.  In cell A3 enter:

=DATEVALUE(A1 & "1, " & A2)

0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36582891
If you use this formula in A3 it'll give you a date (1st of that month)

=A1&A2

You can then format any way you want.

or if you want text

=TEXT(A1&A2,"mmm-yyyy")

regards, barry
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

786 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