Date is driving me nuts

built4thekill

New Member
Joined
Oct 26, 2020
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi All. I'm having an issue which is driving me crazy!! I'm sure the solution is easy but I cant find it. Basically I have a cell in which I'm supposed to type in a date then a corresponding cell will give me a DoB. Now whenever I type in the date in UK format it keeps changing it to US! I've tried changing the format to Date - English UK and also Custom - dd/mm/yyyy but it still changes it to US each time. E.g. 03/04/1980 (3rd April) would auto change to 04/03/1980 (4th March). Any help would be really appreciated!!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Have a look at your computers regional settings to check that they are dd/mm/yyyy
 
Upvote 0
Try selecting the column, click Data - Text to Columns - Delimited - Next - check that nothing is checked and the Other box is empty - Next - check the Date checkbox - choose MDY and click finish.

Can you format the cells correctly now?
 
Upvote 0
Try selecting the column, click Data - Text to Columns - Delimited - Next - check that nothing is checked and the Other box is empty - Next - check the Date checkbox - choose MDY and click finish.

Can you format the cells correctly now?
no :(. for a millisecond it shows correctly then it changes to US date - as if its showing me the middle finger
 
Upvote 0
Can you post any code that you have on the sheet (right click the sheet tab and click view code).
Can you also format the cell as a number and post the number it returns please.
 
Upvote 0
Can you post any code that you have on the sheet (right click the sheet tab and click view code).
Can you also format the cell as a number and post the number it returns please.
VBA Code:
Sub Worksheet_SelectionChange(ByVal Target As Range) 'single click version
 
    If Intersect(Target, Range("D27,D31,D28,D35,G27,G28,G31,G34,G38:G53,D38:D53")) Is Nothing Then
        Application.CutCopyMode = False   'clears clipboard and stops cell flashing - like pushing escape key
        Exit Sub
    Else
        ActiveCell.Copy
    End If
 
End Sub

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.HasFormula Then Exit Sub
        Application.EnableEvents = False
        Target = UCase(Target.Cells(1))
    Application.EnableEvents = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,073
Members
449,205
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top