Hi Robert, assuming your dates are in the format YYYY-MM-DD, you can use =DATE(LEFT(A1,4),MID(A1,6,2),RIGHT(A1,2)) (assuming the date is in cell A1) to return the number used by Excel as the corresponding date. To get around the question marks, you might complete the formula as such: =IF(AND(ISNUMBER(VALUE(LEFT(A1,4))),ISNUMBER(VALUE(MID(A1,6,2)));ISNUMBER(VALUE(RIGHT(A1,2)))),DATE(LEFT(A1,4),MID(A1,6,2),RIGHT(A1,2)),0) which will return the date if Year, Month and Day are numeric and return zero if any of them are not. Wilson At 17:55 20/7/2004, Robert Carneal wrote: >---COPY--- >I assume Robert is using Excel, since most of his recent questions have >been about Excel. >---End--- > >You are correct, I am using Excel. It took me all of 30 seconds to fall >in love with DATEDIF. I wish I had known about this earlier. Thank you! > >A query for you please. Suppose E1 is text, and contains 1922-10-10 as a >person's birthdate. The death date is also text. Is there an easy way to >convert that to a "real" date? LOL, I spent NINE hours trying to get >Datedif to work, only to discover the numbers were not even date format! > >I do see a problem with the dates which explains why the original person >made it text. The original person used the question mark symbol to >denote unknown. 1905-??-17 for example, means the month is unknown. > >Am I going to need to do something about the question marks one at a >time? ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************