Dates behaving erratically in Excel

cdfjdk

New Member
Joined
Sep 3, 2014
Messages
31
Hi,

I have used Text to Columns to convert the column to DMY and have a custom cell format
Code:
[$-809]dd mmm yyyy
so, for example, the pre-entered value 01/03/2018 displays correctly as 01 Mar 2018.

However, if I try to change the date, e.g. change 01/03/2018 to 03/03/2018, it inserts the change as a second value, e.g. the cell now contains "01/03/2018, 03/03/2018" (i.e. it becomes a text string, not a date). The second value cannot be deleted - the entire field must be deleted.

Also, even though [$-809] specifies UK date format and the PC's regional date setting is dd/MM/yyyy, if I re-enter 01/03/2018, which should be 1 Mar, the date is converted to US date format 03/01/2018, which is 3 Jan.

I'm really confused:confused: - any suggestions welcome!

Excel 2010 by the way.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Sounds like you have some code in the worksheet's change event (or the workbook_sheetchange event).
 
Upvote 0
Sounds like you have some code in the worksheet's change event (or the workbook_sheetchange event).

Thanks, Rory - I do have a workbook_sheetchange event, but it is column-specific and doesn't apply to the date columns.
 
Upvote 0
I can't think of anything else that would cause what you describe. If you disable macros, does the same thing happen?
 
Upvote 0
Thanks, Rory, they're really useful tips - yeah, it's somewhere in the macros or the workbook_sheetchange, all of which have been working perfectly up until the other day. Sigh! I have some housekeeping to do!
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

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