#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default date formattin

I have a date imported from another program. It shows up as 22.08.2008 for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it? I
have used the "replace" function and it works well. But I would like it to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default date formattin

To update in place (without a helper column), select the cells you want to
convert and run this macro:

Sub formater()
For Each cell In Selection
s = Split(cell.Value, ".")
cell.Value = DateValue(s(1) & "/" & s(0) & "/" & s(2))
Next
End Sub

--
Gary''s Student - gsnu200807


"Duane" wrote:

I have a date imported from another program. It shows up as 22.08.2008 for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it? I
have used the "replace" function and it works well. But I would like it to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default date formattin

Assuming the imported date is always formated with two-digit month and day
and 4-digit year, the following would work:

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

"Duane" wrote:

I have a date imported from another program. It shows up as 22.08.2008 for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it? I
have used the "replace" function and it works well. But I would like it to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default date formattin

Select the Colum, goto DataText To Columns, Next through the first two
screens, then pick Date from the Column data format and Finish

--
__________________________________
HTH

Bob

"Duane" wrote in message
...
I have a date imported from another program. It shows up as 22.08.2008 for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it?
I
have used the "replace" function and it works well. But I would like it
to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default date formattin

Hi Bob

The OP isn't giving all the facts here.
From his posting in .misc
"Duane" wrote in message
...
I have a date and time. I need it to show up as a date and it is not. I
have it imported from another program as:
22.08.2008 00:25:00


DataText to columns wouldn't work for this.
I suggested

In an adjoining column
=--SUBSTITUTE(A1,".","/")
copy down as far as required.

To "fix" the data, copy your new columnPaste SpecialValues
Format the column to whatever date format you prefer.
You can then delete the original imported column.
--
Regards
Roger Govier



--
Regards
Roger Govier

"Bob Phillips" wrote in message
...
Select the Colum, goto DataText To Columns, Next through the first two
screens, then pick Date from the Column data format and Finish

--
__________________________________
HTH

Bob

"Duane" wrote in message
...
I have a date imported from another program. It shows up as 22.08.2008
for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert
it? I
have used the "replace" function and it works well. But I would like it
to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default date formattin

Remember, please do not double post. You had responses on your other post.
--
John C


"Duane" wrote:

I have a date imported from another program. It shows up as 22.08.2008 for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it? I
have used the "replace" function and it works well. But I would like it to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default date formattin

Hi Duane

You have replies in the posting you made in another group.

--
Regards
Roger Govier

"Duane" wrote in message
...
I have a date imported from another program. It shows up as 22.08.2008
for
Aug 22, 2008. It is not recognised as a date in excel. Can I convert it?
I
have used the "replace" function and it works well. But I would like it
to
be more automatic as the months change depending on when the data is
imported. There are also several of them (1400+).

How can I change 22.08.2008 to 22/08/2008? My computer is set to
English(US). Not sure if that is it?


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
Linking Texts from on sheet to another while maintaining formattin merritaf Excel Worksheet Functions 2 May 28th 08 07:55 PM
SUMPRODUCT trouble with number formattin Kristin Excel Worksheet Functions 6 May 22nd 08 10:19 PM
Columns and Conditional Formattin Brent Excel Worksheet Functions 2 November 13th 07 12:52 PM
IS THERE A FAST WAY TO CHANGE THE ORDERS OF CONDITIONAL FORMATTIN. Mark_A_Cook Excel Discussion (Misc queries) 1 April 1st 05 06:43 AM
Text Box formattin Drew Lockard Excel Discussion (Misc queries) 1 January 26th 05 11:45 PM


All times are GMT +1. The time now is 06:55 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"