Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Match Date/Time to Date list
I have a Date/Time in A1 (mm/dd/yy hh:mm) and a list of dates (mm/dd/yy) in
D1:D10. I would like a formula to compare the date/time to the date list and return "yes" if it is in the list and "no" if not. Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Match Date/Time to Date list
=IF(ISNA(MATCH(INT(A1),D1:D10,0)),"no","yes")
Bob Umlas Excel MVP "Sandy" wrote: I have a Date/Time in A1 (mm/dd/yy hh:mm) and a list of dates (mm/dd/yy) in D1:D10. I would like a formula to compare the date/time to the date list and return "yes" if it is in the list and "no" if not. Thanks |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Match Date/Time to Date list
Give this a try... put this formula in, say, B1 and copy down...
=IF(ISERROR(VLOOKUP(INT(A1),B1:B23,1,FALSE)),"No", "Yes") Rick "Sandy" wrote in message ... I have a Date/Time in A1 (mm/dd/yy hh:mm) and a list of dates (mm/dd/yy) in D1:D10. I would like a formula to compare the date/time to the date list and return "yes" if it is in the list and "no" if not. Thanks |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Match Date/Time to Date list
Another one:
=IF(COUNTIF(D1:D10,INT(A1)),"Yes","No") -- Biff Microsoft Excel MVP "Sandy" wrote in message ... I have a Date/Time in A1 (mm/dd/yy hh:mm) and a list of dates (mm/dd/yy) in D1:D10. I would like a formula to compare the date/time to the date list and return "yes" if it is in the list and "no" if not. Thanks |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Match Date/Time to Date list
Thanks to all!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Compare/Find Exact Date match with varying time | Excel Worksheet Functions | |||
How can I match a calculated date to closest date from a list? | Excel Worksheet Functions | |||
finding a date/time in a list that is closest to an existing date/ | Excel Discussion (Misc queries) | |||
Calculating days & time left from start date/time to end date/time | Excel Worksheet Functions | |||
Combined date time cell to separate date & time components | Excel Worksheet Functions |