+ Reply to Thread
Results 1 to 2 of 2

Find value in a range of cells

  1. #1
    Registered User
    Join Date
    05-02-2004
    Posts
    3

    Find value in a range of cells

    How can I find a value in a range of cells?

    For example:

    A1 = "dog"


    B C D E D
    1 kiwi fruit cat lemon blue
    2 logo ant dog red weak
    3 word man wet cot mule

    if I use vlookup:
    =vlookup(A1,B1:D3,3,false)

    that would find the value but this is not helpful.

    Suppose the value "dog" appeared randomly anywhere in the B1:D3 range. How can I find that value when I dont know what column or row the value may appear on, just the range to be searched in?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    To find if dog is anywhere in a table use =COUNTIF(B1:F3,A1)
    To extend the formula: =IF(COUNTIF(B1:F3,A1)=0,"",A1) this will return dog if more then one entry of dog is found in the table.

    Hope this helps

    Ola Sandström

+ 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