+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : How to Lookup in range & revert with list?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-19-2011
    Location
    India, Uttar Pradesh, Faizabad
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question How to Lookup in range & revert with list?

    A have a data record in a sheet contaning various information i.e. Stockist name, address, contact no, Dl No. company name (contaning 20 companies), if severals stockist have same compnies, how to find the list of stockist who have that companies

    Name | Add | No. | DL No. | Comp. 1 | Comp 2 | Comp 3 | Comp 4 |
    Abc 12 12 l45 A1 B1 C1 D1
    Def 14 25 j785 D1 A1 H1 E1


    Reqquired help....

  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 Lookup in range & revert with list?

    Assuming your table is in A1:H3 and the company names start in E2.

    Make a list of unique company names, e.g in K2 down, list A1, B1, C1, D1, etc...

    Then in L2 use formula:

    =LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX($A$2:$A$3,SMALL(IF(ISNUMBER(SEARCH(" "&$K2&" "," "&$E$2:$H$3&" ")),ROW($A$2:$A$3)-ROW($A$2)+1),COLUMNS($K$1:K1)))))
    this formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down the list and across as many columns as necessary to retrieve all names.

    Note: Adjust ranges to match your database without going over by much... and re-confirm with CTRL+SHIFT+ENTER before copying down and across.
    Attached Files Attached Files
    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