Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
supersonicf111
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06


I need some help with this one. Tried everything I can think of.

Thanks,

Brett


--
supersonicf111
------------------------------------------------------------------------
supersonicf111's Profile: http://www.excelforum.com/member.php...fo&userid=4330
View this thread: http://www.excelforum.com/showthread...hreadid=497274

  #2   Report Post  
Posted to microsoft.public.excel.misc
JoAnn Paules [MVP]
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06

Do you mean 010106? If so, Format - Cells - Date - under Type scroll down to
the appropriate format.

--

JoAnn Paules
MVP Microsoft [Publisher]



"supersonicf111"
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote in
message news:supersonicf111.20z9ky_1136155500.7119@excelfo rum-nospam.com...

I need some help with this one. Tried everything I can think of.

Thanks,

Brett


--
supersonicf111
------------------------------------------------------------------------
supersonicf111's Profile:
http://www.excelforum.com/member.php...fo&userid=4330
View this thread: http://www.excelforum.com/showthread...hreadid=497274



  #3   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06


One way:

=DATE(RIGHT(A1,2),MID(A1,3,2),LEFT(A1,2))

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=497274

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06

On Sun, 1 Jan 2006 16:44:21 -0600, supersonicf111
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote:


I need some help with this one. Tried everything I can think of.

Thanks,

Brett


with 010105 in K1:

=DATE(1+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))

will add a year to that date. It'll work whether the contents of K1 is a
number or text.

Format it as mm/dd/yy

If the date in K1 is 29 Feb (e.g: 022904), the result of the formula will be 1
Mar of the following year. If you want something different, psot back.


--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06

If you had a typo and want 01/01/05 you can use

=--TEXT(A1,"00\-00\-00")

if not a typo and you want to add one year

=DATE(YEAR(TEXT(A1,"00\-00\-00"))+1,MONTH(TEXT(A1,"00\-00\-00")),DAY(TEXT(A1,"00\-00\-00")))

--
Regards,

Peo Sjoblom

(No private emails please)


"supersonicf111"
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote in
message news:supersonicf111.20z9ky_1136155500.7119@excelfo rum-nospam.com...

I need some help with this one. Tried everything I can think of.

Thanks,

Brett


--
supersonicf111
------------------------------------------------------------------------
supersonicf111's Profile:
http://www.excelforum.com/member.php...fo&userid=4330
View this thread: http://www.excelforum.com/showthread...hreadid=497274




  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06




"Ron Rosenfeld" wrote in message
...
On Sun, 1 Jan 2006 16:44:21 -0600, supersonicf111
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote:


I need some help with this one. Tried everything I can think of.

Thanks,

Brett


with 010105 in K1:

=DATE(1+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


That gives 1906. I guess you mean something like

=DATE(100*(MOD(K1,100)<70)+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


  #7   Report Post  
Posted to microsoft.public.excel.misc
supersonicf111
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06


Pinmaster's formula gave me 1900's dates, so I just modified it to
=DATE(RIGHT(A2222,2)+2000,LEFT(A2222,2),MID(A2222, 3,2)), and it worked
great. Thanks JG!

JoAnn, I had tried your idea before and got wierd dates like 8/20/2054
for 093005.

Thanks everyone else. I will give yours a try also!


--
supersonicf111
------------------------------------------------------------------------
supersonicf111's Profile: http://www.excelforum.com/member.php...fo&userid=4330
View this thread: http://www.excelforum.com/showthread...hreadid=497274

  #8   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06


This should give you an acurate date:

=ABS(LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2))
format cell as date.

Regards
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=497274

  #9   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06


Ooops....should be:

=ABS(MID(A1,3,2)&"/"&LEFT(A1,2)&"/"&RIGHT(A1,2))

sorry about that.

Regards
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=497274

  #10   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06

On Sun, 1 Jan 2006 23:25:46 -0000, "Bob Phillips"
wrote:




"Ron Rosenfeld" wrote in message
.. .
On Sun, 1 Jan 2006 16:44:21 -0600, supersonicf111
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote:


I need some help with this one. Tried everything I can think of.

Thanks,

Brett


with 010105 in K1:

=DATE(1+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


That gives 1906. I guess you mean something like

=DATE(100*(MOD(K1,100)<70)+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


That's probably more in keeping with what the OP really wants. :-))


--ron


  #11   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Convert 010105 mmddyy text to 01/01/06

On Sun, 1 Jan 2006 23:25:46 -0000, "Bob Phillips"
wrote:




"Ron Rosenfeld" wrote in message
.. .
On Sun, 1 Jan 2006 16:44:21 -0600, supersonicf111
<supersonicf111.20z9ky_1136155500.7119@excelforu m-nospam.com wrote:


I need some help with this one. Tried everything I can think of.

Thanks,

Brett


with 010105 in K1:

=DATE(1+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


That gives 1906. I guess you mean something like

=DATE(100*(MOD(K1,100)<70)+MOD(K1,100),INT(K1/10^4),MOD(INT(K1/100),100))


Oops, don't forget to add 1 to the year.

He wanted to convert 010105 -- 01/01/06

=DATE(100*(MOD(K1,100)<70)+MOD(K1,100)+1,INT(K1/10^4),MOD(INT(K1/100),100))


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert excel file to flat text file Gary's Student Excel Discussion (Misc queries) 0 June 1st 05 12:17 AM
convert text & multiply Boenerge Excel Discussion (Misc queries) 2 May 7th 05 08:47 PM
convert text & multiply Boenerge Excel Worksheet Functions 1 May 7th 05 08:20 PM
How to convert columns of data to one column of text devlkat Excel Worksheet Functions 3 April 6th 05 04:08 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"