Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Emece
 
Posts: n/a
Default Problem with dates

I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to mm/dd/yy.
Is there a function to do this?

This is because I import dates from Visual Basic thta come in the format
mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
if the dates are stored as real Excel dates you only have to change the
format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-



  #3   Report Post  
Emece
 
Posts: n/a
Default

Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only have to change the
format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-




  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try the following formula in a helper column
=DATE("20"&RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))
and copy down

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only have to change
the format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-



  #5   Report Post  
Emece
 
Posts: n/a
Default

I tried it but look here is what I obtained:

A1: 12/20/2004

Applied the formula and obtained: 07/06/2004

Don't get it...

"Frank Kabel" wrote:

Hi
try the following formula in a helper column
=DATE("20"&RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))
and copy down

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only have to change
the format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-






  #6   Report Post  
Dan
 
Posts: n/a
Default

If your import is 11/22/04 in text, (mm/dd/yy), try to put
the formula =VALUE(D12) in the next cell and set the
format in what ever you need. You can customize the
format to your needs.

Go to Format Cell, Custom Category, and type the format
you need, whether it is mm/dd/yy, or dd/mm/yy.

I usually put it in the next column, inserting if need be.

If it works, copy it down for all the cells. Then copy
all the formulas and paste value over the cells to get rid
of the formulas.

-----Original Message-----
Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only

have to change the
format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format:

dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta

come in the
format mm/dd/yy and as my Excel XP is in Spanish I

have dd/mm/yy.

Thks in advance!

Regards.
Emece.-




.

  #7   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
then use:
=DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,4,2))

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I tried it but look here is what I obtained:

A1: 12/20/2004

Applied the formula and obtained: 07/06/2004

Don't get it...

"Frank Kabel" wrote:

Hi
try the following formula in a helper column
=DATE("20"&RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))
and copy down

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only have to change
the format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-



  #8   Report Post  
Gord Dibben
 
Posts: n/a
Default

Emece

Try DataText to ColumnsNextNextColumn Data FormatDate MDY or DMY
depending upon what you want.

Gord Dibben Excel MVP

On Wed, 22 Dec 2004 07:09:02 -0800, "Emece"
wrote:

Thks Frank, but the dates are stored as text.

"Frank Kabel" wrote:

Hi
if the dates are stored as real Excel dates you only have to change the
format ('format - Cells')

--
Regards
Frank Kabel
Frankfurt, Germany

Emece wrote:
I have the following problem in Excel XP:

I need to automatically convert dates in this format: dd/mm/yy to
mm/dd/yy. Is there a function to do this?

This is because I import dates from Visual Basic thta come in the
format mm/dd/yy and as my Excel XP is in Spanish I have dd/mm/yy.

Thks in advance!

Regards.
Emece.-





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
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
I get wrong dates when i paste from a different sheet into a new s mmollat Excel Discussion (Misc queries) 2 January 6th 05 07:35 PM
Problem with date base units for x axis Peter Carr Charts and Charting in Excel 1 December 15th 04 09:11 AM


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