PC Review


Reply
Thread Tools Rate Thread

Lookup a cell in a list to see if it is in the list

 
 
quimrider
Guest
Posts: n/a
 
      9th Dec 2005

is there a way to check if a certain cell value is in a list of values?
I need to return a logical TRUE/FALSE. Ie. TRUE if it is in the list
and FALSE if it is not. I could use a rather large OR function but
would prefer a simpler method. I was trying to use MATCH but I
couldnt figure out how to change the #NA to a FALSE value. Any
suggestions would be appreciated.


--
quimrider
------------------------------------------------------------------------
quimrider's Profile: http://www.excelforum.com/member.php...o&userid=29009
View this thread: http://www.excelforum.com/showthread...hreadid=492149

 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      9th Dec 2005
=IF(ISNA(MATCH(B1,A1:A100,0)),FALSE(),TRUE())

--
Kind regards,

Niek Otten

"quimrider" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> is there a way to check if a certain cell value is in a list of values?
> I need to return a logical TRUE/FALSE. Ie. TRUE if it is in the list
> and FALSE if it is not. I could use a rather large OR function but
> would prefer a simpler method. I was trying to use MATCH but I
> couldnt figure out how to change the #NA to a FALSE value. Any
> suggestions would be appreciated.
>
>
> --
> quimrider
> ------------------------------------------------------------------------
> quimrider's Profile:
> http://www.excelforum.com/member.php...o&userid=29009
> View this thread: http://www.excelforum.com/showthread...hreadid=492149
>



 
Reply With Quote
 
Ron Coderre
Guest
Posts: n/a
 
      9th Dec 2005

Try this:

=ISNUMBER(MATCH(A1,your_list,0))

Is that what you're looking for?

Regards,
Ro

--
Ron Coderr
-----------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...fo&userid=2141
View this thread: http://www.excelforum.com/showthread.php?threadid=49214

 
Reply With Quote
 
quimrider
Guest
Posts: n/a
 
      9th Dec 2005

That's exactly what I was looking for... Why didn't I think of
that...LOL
here's my formula:
=IF(ISNUMBER(MATCH(AB16,$AB$1:$AB$12,0)),0,$AA598)
checks if AB16 is in the list and returns 0 if it's not or AA598 if it
is.


--
quimrider
------------------------------------------------------------------------
quimrider's Profile: http://www.excelforum.com/member.php...o&userid=29009
View this thread: http://www.excelforum.com/showthread...hreadid=492149

 
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
Lookup list from different worksheet & auto-populate multiple cell tomhelle Microsoft Excel Misc 0 5th Nov 2008 06:37 PM
setting number of lines in List-box -->LookUp-->Table/Query drop-down list aa Microsoft Access 2 21st Jan 2007 02:22 PM
change a vertical list of numbers to horizontal list from 1 cell =?Utf-8?B?Y2F6?= Microsoft Excel Misc 3 27th Sep 2006 01:11 PM
Lookup cell value using list of worksheet names amaranth Microsoft Excel Worksheet Functions 5 8th Aug 2005 05:59 PM
populating an asp list box from a simple access lookup list (single column not a table) gerry Microsoft ASP .NET 0 24th Apr 2004 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 AM.