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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

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
 

Watch MrExcel Video

Forum statistics

Threads
1,102,711
Messages
5,488,450
Members
407,638
Latest member
brandynl

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top