Date formatting

Chris Slater

New Member
Joined
Dec 30, 2003
Messages
19
Dear All
I am copying and pasting data from one sheet to another in the same workbook but try as I may it doesn't seem to format correctly.
What I mean by that is that when I then create a lookup, some rows are contained within year subgroups - as I want it - but some are not.
I have tried formatting the recipient cells with the date format I want and then pasting "values only" but it just doesn't seem to work.
If I go down each cell and open it via 'F2' it then fixes the problem but there are too many to make this a usable solution.

As you can see from the attached image, the 'Autofilter' results show some of the rows correctly in 'Year' and 'Month' sub-filters on the dropdown list but there are also many that, although they look like dates, are not treated as such. I need a quick way of formatting the entire column so that Excel treats them as true dates.
Any ideas please?
 

Attachments

  • Excel Date Issue.png
    Excel Date Issue.png
    34.5 KB · Views: 11
Last edited by a moderator:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
What is the date format at the source and what is the date format for the destination ?
It seems likely from your screenshot that the source format was dd/mm/yyyy and the destinaions default format is mm/dd/yyyy.

If that is the case you should be able to use Text to Columns to convert the dates.

1643890509049.png
 
Upvote 0
Solution
What is the date format at the source and what is the date format for the destination ?
It seems likely from your screenshot that the source format was dd/mm/yyyy and the destinaions default format is mm/dd/yyyy.

If that is the case you should be able to use Text to Columns to convert the dates.

View attachment 56917
Hi Alex, Let me have a play around with that and come back to you if I may.
Talk soon
 
Upvote 0
I appreciate the offer. The closest the forum has to a rating system is the number of likes and marking the post that worked for you as a solution.
Glad I could help.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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