PC Review


Reply
Thread Tools Rate Thread

Convert text date to mmddyyy date

 
 
wx4usa
Guest
Posts: n/a
 
      7th Jan 2010
I have 3 columns containing the date. A=Month (Text-January) B=Day
(Numeric 1-31) C=Year. I need to combine these 3 columns into one
column in the date format mm/dd/yyyy.

Thanks for your help!
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th Jan 2010
Try this in D1:
=--(B1&A1&C1)
and drag down
Format the range as a date.

that concatenation results in a string that looks like:
12January2008

The first minus coerces the date into a number (but a negative number). The
other minus changes it to a positive number.

And since dates are just plain old numbers (formatted nicely) in excel, it may
even work!

wx4usa wrote:
>
> I have 3 columns containing the date. A=Month (Text-January) B=Day
> (Numeric 1-31) C=Year. I need to combine these 3 columns into one
> column in the date format mm/dd/yyyy.
>
> Thanks for your help!


--

Dave Peterson
 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      7th Jan 2010
This can be tricky depending on your international location because there
are so many international date formats.

I think this one will work everywhere that uses the date names Jan, Feb,
Mar, etc.

Create this defined name...

Insert>Name>Define
Name: Months
Refers to: ="JanFebMarAprMayJunJulAugSepOctNovDec"
OK

Then use this formula:

=DATE(C1,CEILING(SEARCH(LEFT(A1,3),Months)/3,1),B1)

--
Biff
Microsoft Excel MVP


"wx4usa" <(E-Mail Removed)> wrote in message
news:74dea746-1ad0-468c-a225-(E-Mail Removed)...
>I have 3 columns containing the date. A=Month (Text-January) B=Day
> (Numeric 1-31) C=Year. I need to combine these 3 columns into one
> column in the date format mm/dd/yyyy.
>
> Thanks for your help!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert date (m/dd/yyyy) in text format into an excel recognised date Rob P Microsoft Excel Programming 3 30th Apr 2010 12:40 AM
VBA convert day and date from text string to Excel date Max Bialystock Microsoft Excel Programming 5 14th May 2007 04:54 AM
Help: How do I convert a text date into a real date format japorms Microsoft Excel Worksheet Functions 4 2nd Aug 2006 06:36 PM
How to Convert Days(Text field) into Date By giving the start date FA Microsoft Access Forms 3 2nd Dec 2005 08:26 PM
Date value, convert from text to date type Serg Microsoft Access Queries 3 2nd Sep 2004 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 AM.