Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming they are entered in a legitimate format that would be interpreted
as a date, format the column as Date, in and empty cell put in the digit 1 copy that cell (select the cell, then edit=copy) Select you bad dates Do Edit=Paste Special then select Values and Multiply. This will convert them to dates. -- Regards, Tom Ogilvy "KR" wrote in message ... Tom- As always, your advice is greatly appreciated. I had tried the match function before posting, but was unable to get the second argument to work. I think the issue was that I was using CompareArray() and didn't need the parantheses. I still am getting an error, but (after some searching) I figured out that the dates in my source of MyVal apparently were entered as text instead of actual dates <groan. Now my first job will be to write another macro to change them all to dates <sigh. Thanks again for your assistance! Keith "Tom Ogilvy" wrote in message ... res = application.Match(myval,compareArray,1) see the rules for the worksheet function Match (In Excel, not VBA, help) and adjust to suit your scenario. -- Regards, Tom Ogilvy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare two worksheets with "contains" and not "exact" values | Excel Worksheet Functions | |||
"Type mismatch" when I try to fill an Array variable with "+" | Excel Discussion (Misc queries) | |||
Compare to a range of values using "from/to" | Excel Discussion (Misc queries) | |||
Changing "returned" values from "0" to "blank" | Excel Worksheet Functions | |||
compare ranges in different workbooks and copy "not matching values" at bottom of range 1 | Excel Programming |