Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to write a formula or macro that returns a result if a value is
in a range. I can write the lookup fine, but i am getting data errors if there is no value. What i want to do is put an IF statement in that states IF(date,is in range,then,0) Can anyone help |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Something like this:
=if(and(a1date(2009,1,1),a1<date(2009,2,1)),"in range","out of range") ? Regards, Fred. "Kirsty" wrote in message ... I am trying to write a formula or macro that returns a result if a value is in a range. I can write the lookup fine, but i am getting data errors if there is no value. What i want to do is put an IF statement in that states IF(date,is in range,then,0) Can anyone help |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hmmm....
returns a result if a value is in a range. Returns what result? Try something like this: =IF(COUNTIF(A1:A10,X1),"Yes, it's there","No, it's not there") -- Biff Microsoft Excel MVP "Kirsty" wrote in message ... I am trying to write a formula or macro that returns a result if a value is in a range. I can write the lookup fine, but i am getting data errors if there is no value. What i want to do is put an IF statement in that states IF(date,is in range,then,0) Can anyone help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cond. Format Data Bars of range based on values of another range | Excel Worksheet Functions | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
formula to sort a range so that it matches the exact rows of a column that is outside that range? | Excel Discussion (Misc queries) | |||
How to count dates within a certain range in a column with mutiple date range entries | Excel Worksheet Functions |