Displaying date in correct International format

Bowdlerb

New Member
Joined
Mar 6, 2002
Messages
11
I am using Excel 2002 - I have received a worksheet with various dates keyed in by a colleague in USA. For example one of the dates is shown as "12/10/02" which should be viewed at "December 10th, 2002". However when I format the date cell to view the full month it shows as "October 12th, 2002".
Can anyone tell me a way to make the full date format show as its original intented date?

Barrie Bowdler :confused:
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

gjadcock

New Member
Joined
Sep 17, 2002
Messages
27
I had a similar problem dealing with the US and came to the conclusion that the Regional Settings dictate how the dates are shown, however this does mean that if you enter a date in the UK the date is "converted" over to US format when opened there and visa versa, so the date you refer to should have represented October 12th and not Dec 10th
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
If you format the date as General what does it show. 12th October 2002 is 37541, 10th December 2002 is 37600. Dates are only numbers, so there can be no ambiguity - except in VBA which does have problems with US/UK dates.
 

rwilding

Board Regular
Joined
Jul 17, 2003
Messages
103
I have the same problem as gjadcock. I have entered 10/12/02, which converts to 37600, ie. the US format. This happens even though I have set the regional settings to UK.
Has anyone got any suggestions for solving this strange problem?


Thanks,
Richard
 

WillR

Well-known Member
Joined
Feb 18, 2002
Messages
1,143
If you have entered 10/12/02 in your cell and it converts (when viewed as general) to 37600 then Excel is interpreting the date as dd/mm/yy (i.e. 10 Dec 2002), which is UK format.

Did you want it to be 12 October 2002 ?
 

rwilding

Board Regular
Joined
Jul 17, 2003
Messages
103
Sorry I am getting myself confused. I entered 12/10/02, and it converted to 37600.
I have identified what has caused the problem though, but don't know how to solve it. I added the following code to capitalise the data in my workbook, and removing it leads to 12/10/02 becoming 37541, ie. UK format. How can I continue to have this format, and use the following code:


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As

Excel.Range)
Dim c As Range

Application.EnableEvents = False
For Each c In Target.Cells
c = UCase(c.Text)
Next
Application.EnableEvents = True
End Sub


If possible is there a date format function I can add to the code?


Thanks a lot,
Richard
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,542
Messages
5,511,938
Members
408,869
Latest member
MM005

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top