Text Function in Excel do not recognize YYYY as Date

galliena

New Member
Joined
Mar 1, 2014
Messages
8
Hello All,

I have a problem with my Text function in excel.

When I type Text(02/12/2014,"ddmmyyyy") the function show me 1202yyyy.

I know that there are other posts about this problem here and on google, however none of them seem to solve my problem.

Solutions that I already tried:

When I go to Control Panel-Regional and Language-Location, my current location is United States

In exce-file-Options-language my editing language is English(U.S.) <default> / My display Language is English <default> / Help Language English<default>.

None of these seems to work, does any one have any other idea to solve this isssue?

Other details:

Excel 2010
Windos 7</default></default></default>
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello All,

I have a problem with my Text function in excel.

When I type Text("02/12/2014","ddmmyyyy") the function show me 1202yyyy.
Because you are providing a "date" constant rather than a reference to a cell containing a date, try putting quote marks around your date value.
 
Upvote 0
Sorry, this was just a typo.

Actually it does not matter if I write Text("02/12/2014","ddmmyyyy") or Text(A1,"ddmmyyyy") with A1=02/12/2014 or text(41682,"ddmmyyy"), all of them generates the same problem 1202yyyy.

Any other advice?
 
Upvote 0
Have you tried selecting the column and using data-text to column-click next twice- then under date select dmy
 
Upvote 0
This is so odd. When I copy and paste all your examples - I get I get 2014 - not yyyy. But I have HAD a this problem in historical spreadsheets. Try this instead:

=Text(A1,"ddmm")&year(a1)

Not sure why - but this usually works. And I betcha if you try your original solution in the future at some point - it will magically work.

(Also - are you truly wanting day,month, then year - or is that a typo and you really need month, day year - without dashes because if so - thats =Text(A1,"mmdd")&year(a1)

Hope this helps.
 
Upvote 0
I am gonna go for your solution dabrisbon at least until it magically work(it always happens).

Thank you,

If any one has any permanent solution please tell me.
 
Upvote 0
Sorry, this was just a typo.

Actually it does not matter if I write Text("02/12/2014","ddmmyyyy") or Text(A1,"ddmmyyyy") with A1=02/12/2014 or text(41682,"ddmmyyy"), all of them generates the same problem 1202yyyy.

Any other advice?


it's Text("02/12/2014","dd-mm-yyyy")

just tried myself and it worked
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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