I am attempting to import a date column from Excel into Access. The problem is that over the years, users of the Excel spreadsheet sporadically inserted text notes into this date column a few thousand times. It would be impossible to delete all of the text manually. I was able to import this date column into Access by converting the format to Text at the time of import. The problem is that I still need to find a way to convert the new Access Text field containing my dates back into a Date field, so that I can perform basic arithmetic functions on it (adding days for various different projected project lead times). Unfortunately, Access won't allow me to convert the entries with text in them back to Dates, any more than it let me import them as Dates.
My first question would be, is there a way to override this? If not, then I was thinking about some kind of conditional UPDATE statement that would let me eliminate only the text in these cells, while leaving the numeric values untouched (i.e.- “IF any text is found, UPDATE this field to delete the text only”). I'm not sure if this would be possible though.
If neither of these are possible, then does anyone have any other ideas? Thanks in advance!
=IF(ISTEXT(A1),"",A1)
(this assumes columnA
is the one you want to import). The new column will contain only the dates and you can import from there without fear of including the text or spending hours removing it.