+ Reply to Thread
Results 1 to 2 of 2

How to search for a block of two adjacent cells from a table

  1. #1
    Registered User
    Join Date
    03-03-2010
    Location
    cali
    MS-Off Ver
    Excel 2007
    Posts
    4

    How to search for a block of two adjacent cells from a table

    hi,
    I have a table like this

    jane....kaser...highschool......A
    jack....Anderson....college.....B
    Jill....Lovin.....college.......C

    I want to check if both jack and Anderson in a same row two adjacent cells.
    If both jack+anderson in a same row adjacent cells
    as per in my table it should return column 4 value (A).
    can I use VLOOKUP?
    is there another way ?
    please note I want to search for a block of two adjacent cells in a table and return its forth column value.

    thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to search for a block of two adjacent cells from a table

    you can introduce a column before the names which concatenates the first and last names, then you can use Vlookup and look for the concatenated names...

    or you can use a formula like this:

    =INDEX($D$1:$D$10,MATCH(1,INDEX(($A$1:$A$10=X1)*($B$1:$B$10=Y1),0),0))

    where X1 and Y1 contain the respective search items fro columns A and B....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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