Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert excel file to flat text file | Excel Discussion (Misc queries) | |||
convert text & multiply | Excel Discussion (Misc queries) | |||
convert text & multiply | Excel Worksheet Functions | |||
How to convert columns of data to one column of text | Excel Worksheet Functions | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) |