Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bullman
 
Posts: n/a
Default Check if cell entry belongs to a name list-how?

Hello

I have only started to use and realise the power of using named lists
to represent a range of values. I am sure it is a simple thing to do,
but what is the easiest logical formula test that will look at a cell
and return a TRUE value if the entry in the cell belongs to a
pre-defined named list and a FALSE value if it does not.

Thanks in advance

Bullman

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Check if cell entry belongs to a name list-how?

=isnumber(match(a1,sheet2!a:a,0))

My list is in Sheet2, column A (and nothing else is there).

And I'm checking the value in A1 of the activesheet.

Bullman wrote:

Hello

I have only started to use and realise the power of using named lists
to represent a range of values. I am sure it is a simple thing to do,
but what is the easiest logical formula test that will look at a cell
and return a TRUE value if the entry in the cell belongs to a
pre-defined named list and a FALSE value if it does not.

Thanks in advance

Bullman


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Check if cell entry belongs to a name list-how?

Hi!

To check if it's part of a SPECIFIC named range/list:

Test cell A1 to see it its value is contained in a named range called List:

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

=COUNTIF(List,A1)0

Will return either TRUE or FALSE.

To check if it's part of ANY named range/list, I don't think that can be
done with a formula.

Biff

"Bullman" wrote in message
oups.com...
Hello

I have only started to use and realise the power of using named lists
to represent a range of values. I am sure it is a simple thing to do,
but what is the easiest logical formula test that will look at a cell
and return a TRUE value if the entry in the cell belongs to a
pre-defined named list and a FALSE value if it does not.

Thanks in advance

Bullman



  #4   Report Post  
Posted to microsoft.public.excel.misc
Bullman
 
Posts: n/a
Default Check if cell entry belongs to a name list-how?

All great help guys, thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return entry in column above/below cell TheRobsterUK Excel Worksheet Functions 2 November 17th 05 03:34 PM
How to create a List inside a cell? Msantos Excel Discussion (Misc queries) 6 September 13th 05 12:05 AM
Ooh .. Linking a list to a list to an output cell StrawDog Excel Discussion (Misc queries) 4 August 22nd 05 09:51 PM
resolving a numeric cell entry for its meaning vtcrob Excel Worksheet Functions 0 February 4th 05 02:23 AM
Move the last entry in a column to a different cell, when the loc. MicroSoft Excell (?) Excel Worksheet Functions 2 January 7th 05 09:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"