DATEVALUE() Different Behavior in Excel 365 Online and Local

microsoft excelmicrosoft-excel-365sharepoint-onlineworksheet-function

I noticed that =DATEVALUE() behaves different in the online version of Excel 365 (i.e. it does not work) than in the local version of Excel 365 on my PC. Below are two screenshots of the two Excel Versions.

=DATEVALUE() in Excel 365 online

=DATEVALUE() in Excel 365 on my local PC

Any idea on how I can get the formula to work in both Excel versions? I cannot use VBA, unfortunately.

(I used "TT.MM.JJ" as the text_format parameter, as my local Excel is set to German)

Best Answer

You are getting the error due to the regional settings being different. As your pictures show values on B3, online uses "MM/DD/YYYY" settings while your local Excel uses "DD.MM.YYYY" ("TT.MM.JJJJ").

When you set on B4 the text format to "DD.MM.YY" in Excel online, that text is not recognize as date when you use DATEVALUE. That's why you are getting #VALUE.

Related Question