Date Format Issue

shapenote

Board Regular
Joined
Jun 29, 2006
Messages
131
I am trying to change the date format in a spreadsheet and nothing seems to work.

The dates are coming in as 'dd.mm.yyyy ... I have tried removing the ', but when I delete it, excel puts it back. I tried doing a alt edit replace, but excel says it can't find the ' in the cells.

I have tried using =Value and =DATEVALUE to see if I can get a number that way and then format that to a date, but that doesn't work either.

So I am not sure what is up with the formatting of these dates and why it won't let me change them.

I need to change them to just be dd-MON-yy so I can filter on them. As they are now, the filter won't clump them together by Months.

Thoughts, suggestions?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Ok, so that formula worked to convert it to a DD-MM-YY format, but the wrong date. :-|

For example, my A1 has the text '01.03.2018. When I put in the =Date formula, my return is 1-Dec-17.

So i get the format I want, just the wrong date.
 
Upvote 0
Ah! Yes I was referring to you previous post.

I tried this formula and it worked! Thanks!

one follow up question, not sure I follow the logic of the formula though. Why using Mid and what's the difference between 7,4 or 4,2, etc?
 
Upvote 0
another alternative to try


Excel 2010
AB
101.03.20181-Mar-18
226.01.201926-Jan-19
2a
Cell Formulas
RangeFormula
B1=--SUBSTITUTE(A1,".","-")
 
Upvote 0
As another alternative just doing a simple Find/Replace of . with / then formatting the cells as dd-mm-yyyy works for me in the UK.
 
Last edited:
Upvote 0
Ah! Yes I was referring to you previous post.

I tried this formula and it worked! Thanks!

one follow up question, not sure I follow the logic of the formula though. Why using Mid and what's the difference between 7,4 or 4,2, etc?
There are other ways to do this. I just happened to choose the MID function which uses the following syntax:

MID(text, start_num, num_chars)

where text is the text you want to convert to a date, start_num is the character position of the first character you want MID to return, and num_chars is the number of characters, including the start character you want MID to return. Note that your text format ('dd.mm.yyyy) has 11 characters including the leading apostrophe, but the apostrophe is ignored by Excel b/c by default it is used to convert whatever follows it to text.
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,550
Members
449,237
Latest member
Chase S

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