Forum Discussion
DateValue function
JoeUser2004 Here are the cells' contents. The formulae worked for years, but today they no longer do.
B3 'Jul. 16
C3 '18H14 (I use a 24 Hr. clock)
E3 =DATEVALUE(CONCATENATE(RIGHT(B3,2),"/","1","/",ThisYear))+TIMEVALUE(CONCATENATE(LEFT(C3,2),":",RIGHT(C3,2),":","00"))
The objective is to get an Excel date function for the exact time of day on a particular day.
Joe User suggests there may be a change in the date function causing this. I'll be looking at that.
Thanks again.
- JoeUser2004Sep 23, 2022Bronze Contributor
ChetInSanJose wrote: `` I seem to have wasted everybody's time. Problem solved, but I don't know how.``
Maybe not. As I wrote: ``That [date configuration] might have changed, unbeknownst to you, especially if you use Office 365 (based on other users' experience)``.
I do not use Office 365 myself, for the very reason that MSFT seems to "update" it frequently with apparently poorly tested changes.
Again, I base that conclusion on other users' questions/complaints that are posted here and in other Excel forums. The conclusion might be wrong, based on biased and unknowledgeable comments.
(I also object to paying a periodic "subscription" fee for something that I used to pay a one-time purchase price.)
PS.... I confirm that when the system date configuration is d/M/yyyy, the DATEVALUE formula in E3 works with the text data in C3 and D3 and with 2022 in a cell named ThisYear.
OTOH, I also confirm that the formula returns #VALUE if the system date configuration is M/d/yyyy, which is the default for San Jose, CA, USA.