Date Format Issue

Ritzl

New Member
Joined
May 16, 2015
Messages
16
Dear all,
I have a stupid but very strange thing. I entered dates in an excel sheet (formated all as date). When I look at the formula (Show Formula) it shows me the date once as "Date" and in other lines as "Number". Any idea how I can convert this? It gives me an error message when I want to make further operations. I copy pasted at an other place and back, changed format to text, back to date....nothing happens....Any Iea? Thanks in advance for any help Rgds Marc
01.06.2014=DATEVALUE(AF88)
01.05.2000=DATEVALUE(AF89)
32994#Value!
07.11.2011
01.04.2005

<colgroup><col width="186" style="width:140pt" span="2"> </colgroup><tbody>
</tbody>

<colgroup><col width="186" style="width:140pt" span="2"> </colgroup><tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This will turn values like 01.04.2004 to European date format 01/04/2004
All Excel dates, e.g. 32994, will remain the same.

With dates in column A

in B1
=IF(ISNUMBER(SEARCH(".",A1)),SUBSTITUTE(A1,".","/")+0,A1)
and copy down the column

Copy column B
Paste Values into column A overwriting the original data
Delete column B

The values in column A should now all be dates
 
Last edited:
Upvote 0
Ohh, just realized I need it the other way around. When I take the formula --> show formulas view, all dates should be shown as a number like 32994. Now I have also dates like 7.11.2011 but I can not show them as number. E.g also the filters do not recognise those as dates even if optically it is correctly displayed as a date. If I overwrite eg. a date shown and formated in the date format (7.1.2011) then it is shown as number. But I have hundreds of dates an can not overwrite them all manually. Never seen such a thing.....
 
Upvote 0
Lets get this straight so I dont waste too much time on what should be a simple task.

So your dates

01.06.2014 you want as 06/01/2014 ?

Then you need this:
=IF(LEN(A1)<>5,(MID(A1,4,2)&"/"&LEFT(A1,2)&"/"&RIGHT(A1,4))+0,A1)
and copy down the column
then format them in whatever date format you want
 
Upvote 0

Forum statistics

Threads
1,216,228
Messages
6,129,614
Members
449,520
Latest member
TBFrieds

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