ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   =DATEVALUE("7/1/20"&MID(C3,13,2)) creates error (https://www.excelbanter.com/excel-worksheet-functions/68513-%3Ddatevalue-7-1-20-mid-c3-13-2-creates-error.html)

Gary

=DATEVALUE("7/1/20"&MID(C3,13,2)) creates error
 
=DATEVALUE("7/1/20"&MID(C3,13,2)) creates error.

Automatic Error Checking reports this as a "Text date with 2 digit Years".
Formula otherwise works.

BTW - c3="School Year 06-07"

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

Dave Peterson

=DATEVALUE("7/1/20"&MID(C3,13,2)) creates error
 
This didn't get flagged:

=DATE("20"&MID(C3,13,2),7,1)





Gary wrote:

=DATEVALUE("7/1/20"&MID(C3,13,2)) creates error.

Automatic Error Checking reports this as a "Text date with 2 digit Years".
Formula otherwise works.

BTW - c3="School Year 06-07"

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions


--

Dave Peterson


All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com