Dates in excel

NSalzmann

New Member
Joined
Jul 7, 2008
Messages
10
Hello. I have a problem and hope that somebody can help me. I have an excel column which gives me the date since when a product is in the store. Unfortunately the date is given in mm/yy/dd and excel has problems to recognize it. I cannot work with this data as the field gives me a random number any time I want to do something with it. Ex. <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:date Month="8" Day="6" Year="2025">06/08/25</st1:date> becomes 45875. So I have two questions.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
  • how can I convert mm/yy/dd into for example dd/mm/yyyy?
  • How can I get excel to not change it into random numbers?
<o:p> </o:p>
Would be great if anybody knows the answer. Thanks in advance.
<o:p> </o:p>
Nils<o:p></o:p>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
what should 06/08/25 be -- 25th August 2006 or 25th June 2008 (presuming the latter)

is it stored as text or number -- you mention if you work with it becomes number but are you converting the text to number using 0+ ?
 
Upvote 0
Hi

The following will work if these 'dates' are actually being stored as text:

Select the column with these dates and go Data>TextToColumns. When the dialog opens, hit Next twice and on the third screen select a date import format of MYD and click Finish. This should convert your dates to proper dates that you can then format as required via Format>Cells.
 
Upvote 0
Hello. Thanks for the help but I still have the same problem. I have never seen this. When I want to format the cell only the date option shows me a number close to what it is all other options give me a random number (or at least I do not see a relation). I tried the way of RichardSchollar but it does not change. How can I post an excel file? Then I could show you what I mean.

Thanks for the effort
 
Upvote 0
well assuming they are stored as numbers...if entry in A1 then below in B1

=DATE(2000+MONTH(A1),DAY(A1),YEAR(A1)-2000)

should give you a date value which you can format as dd/mm/yyyy
 
Last edited:
Upvote 0
Thanks a lot. Guess it must have been stored as numbers. It work.

Once again. Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,871
Members
449,055
Latest member
excelhelp12345

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