?
Solved

convert text to date

Posted on 2011-09-22
3
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
sanofi-aventis earned 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

771 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