简体   繁体   English

Excel 2011 for Mac上的DATEVALUE函数

[英]DATEVALUE function on Excel 2011 for Mac

On Excel 2011 for Mac, OsX 10.9 在Excel 2011 for Mac,OsX 10.9上

=DATEVALUE("08/22/2008") returns a #VALUE error on my Mac. =DATEVALUE("08/22/2008")在我的Mac上返回#VALUE错误。 I tried the same command on Excel 2013 on Windows, as well as Office 365, both places work fine. 我在Windows上的Excel 2013以及Office 365上尝试了相同的命令,两个地方都可以正常工作。 Also a different variation =DATEVALUE("22-AUG-2008") works fine on my mac. 另外一个不同的变化=DATEVALUE("22-AUG-2008")在我的Mac上工作正常。

According to the help doc, both are supposed to work. 根据帮助文档,两者都应该有效。 (I have a screen shot, but evidently I am too new to post images) (我有一个屏幕截图,但显然我太新了,无法发布图片)

Any one seen problems like this? 有人看过这样的问题吗? Any work around? 有什么工作吗?

I found a similar complaint at the link below which it was determined that you likely have a setting that makes Excel look at your erroneous function as "DD/MM/YYYY" while you are putting in "MM/DD/YYYY". 我在下面的链接中发现了类似的抱怨,确定您可能有一个设置让Excel在您输入“MM / DD / YYYY”时将您的错误功能看作“DD / MM / YYYY”。

Problem with DATEVALUE() function. DATEVALUE()函数出现问题。

Thankfully, if that is the case then I can understand the "#Value" error message when it's trying to look for month #22. 值得庆幸的是,如果是这种情况,那么当我试图寻找第22个月时,我可以理解“#Value”错误消息。

For the record: I already tried "08-08-2008" (where the Month vs. Date debate is moot.) Still doesn't work. 为了记录:我已经尝试过“08-08-2008”(月份与日期的争论没有实际意义。)仍然无效。

However, I did follow up Ron's response, turns out that the Canadian English format is "YYYY-MM-DD"... If I change it to US English, then the "MM/DD/YYYY" works again. 但是,我确实跟进了Ron的回复,结果说加拿大英语格式是“YYYY-MM-DD”......如果我把它改成美国英语,那么“MM / DD / YYYY”再次起作用。 Mystery solved. 谜团已揭开。

Thanks Ron and Dave. 谢谢罗恩和戴夫。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM