+ Reply to Thread
Results 1 to 4 of 4

Check if cell entry belongs to a name list-how?

  1. #1
    Bullman
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: 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. #3
    Biff
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #4
    Bullman
    Guest

    Re: Check if cell entry belongs to a name list-how?

    All great help guys, thanks!


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1