+ Reply to Thread
Results 1 to 3 of 3

Checking whether a value is one of the items in a list

  1. #1
    Registered User
    Join Date
    11-04-2011
    Location
    Chittagong
    MS-Off Ver
    Excel 2003
    Posts
    6

    Smile Checking whether a value is one of the items in a list

    I Have a list of items in a worksheet, such as:

    A1: Apple
    A2: Banana
    A3: Mango
    A4: Grape

    Now I need to perform a check (using IF) in another worksheet whether the value of C7 is one of the items mentioned earlier.

    I want to do it such way that when I include another item in the list, it will automatically be included in the check.

    Is there any way of doing so in Excel? If so, please help.

    Thanks in advance.

    Sharful
    Last edited by sharful; 11-04-2011 at 11:47 AM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Checking whether a value is one of the items in a list

    =if(COUNTIF(A:A,C7)>0,"YES","NO")

  3. #3
    Registered User
    Join Date
    11-04-2011
    Location
    Chittagong
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Checking whether a value is one of the items in a list

    Spot On.

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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