PC Review


Reply
Thread Tools Rate Thread

Can i use If to check if a cell is equal to any value in a particular range

 
 
manan
Guest
Posts: n/a
 
      25th May 2006

Hi

Lets say i have a cell having a nameof a animal. Now i want to check if
that cell's value is equal to a range of cell having more than 20 animal
names.

Column a column b column c
Cat dog True
Pig elephant False
cat
tiger

In the above example which i have simplified there is a range of only
four animals. now in a2 we have a cell have content "PIG" which is
not there in the range. So c2 returns false.

Hope i have made myself clear.

Thanks in adavnce

Manan


--
manan
------------------------------------------------------------------------
manan's Profile: http://www.excelforum.com/member.php...o&userid=34216
View this thread: http://www.excelforum.com/showthread...hreadid=545410

 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      25th May 2006
Hi
Try entering the following in B1 and copying down.
=IF(B1="","",COUNTIF($A$1:$A$4,B1)>0)
Change the range A1:A4 to cover your entire list.

--
Regards

Roger Govier


"manan" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Hi
>
> Lets say i have a cell having a nameof a animal. Now i want to check
> if
> that cell's value is equal to a range of cell having more than 20
> animal
> names.
>
> Column a column b column c
> Cat dog True
> Pig elephant False
> cat
> tiger
>
> In the above example which i have simplified there is a range of only
> four animals. now in a2 we have a cell have content "PIG" which is
> not there in the range. So c2 returns false.
>
> Hope i have made myself clear.
>
> Thanks in adavnce
>
> Manan
>
>
> --
> manan
> ------------------------------------------------------------------------
> manan's Profile:
> http://www.excelforum.com/member.php...o&userid=34216
> View this thread:
> http://www.excelforum.com/showthread...hreadid=545410
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update a range of cells if cell value is equal to... Jen_T Microsoft Excel Programming 6 18th Sep 2009 07:53 PM
How to check for a date range match in one column and then count thevalues equal to in another Jon Microsoft Excel Worksheet Functions 5 18th Jan 2008 11:54 AM
How do I make a range of cells equal to one cell jggsfl Microsoft Excel Misc 2 20th Dec 2007 10:01 PM
Equal to previous cell and named range KnappH Microsoft Excel Worksheet Functions 0 13th Mar 2007 02:28 PM
Check if any value in a range is equal to 0 Daz Microsoft Excel Programming 4 10th Nov 2006 02:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.