Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to search a column that has dates in it like 1/31/2009, 2/28/2009,
3/31/2009, etc. If the date matches a date somewhere else on a sheet I want it to do something if true and something else if false. I will tell the sheet what date in B1 and if it finds it I came up with: =IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0") but thiis seems too complicated for what I am asking for. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this =if(countif(A1:A12,B1)0,"do this","do that") -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Joe" wrote in message ... I want to search a column that has dates in it like 1/31/2009, 2/28/2009, 3/31/2009, etc. If the date matches a date somewhere else on a sheet I want it to do something if true and something else if false. I will tell the sheet what date in B1 and if it finds it I came up with: =IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0") but thiis seems too complicated for what I am asking for. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This is simpler. Thank you.
"Ashish Mathur" wrote: Hi, Try this =if(countif(A1:A12,B1)0,"do this","do that") -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Joe" wrote in message ... I want to search a column that has dates in it like 1/31/2009, 2/28/2009, 3/31/2009, etc. If the date matches a date somewhere else on a sheet I want it to do something if true and something else if false. I will tell the sheet what date in B1 and if it finds it I came up with: =IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0") but thiis seems too complicated for what I am asking for. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are welcome.
-- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Joe" wrote in message ... This is simpler. Thank you. "Ashish Mathur" wrote: Hi, Try this =if(countif(A1:A12,B1)0,"do this","do that") -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Joe" wrote in message ... I want to search a column that has dates in it like 1/31/2009, 2/28/2009, 3/31/2009, etc. If the date matches a date somewhere else on a sheet I want it to do something if true and something else if false. I will tell the sheet what date in B1 and if it finds it I came up with: =IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0") but thiis seems too complicated for what I am asking for. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
return a date from range, date is between dates in two other cells | Excel Discussion (Misc queries) | |||
Return a value for a range of dates | Excel Worksheet Functions | |||
return based on range of dates | Excel Worksheet Functions | |||
formula to look up and return smallest date from a range of dates | Excel Worksheet Functions | |||
Return range of values on an "IF" statement | Excel Worksheet Functions |