+ Reply to Thread
Results 1 to 4 of 4

mutiple same lookup values

Hybrid View

  1. #1
    R.VENKATARAMAN
    Guest

    mutiple same lookup values

    a trivial example

    a a a s d f d g

    normally in match and othere lookup function it goes to the first lookup
    value
    for example if want to find the ;position of a in the above row by using
    match function
    it will only give as 1
    but I want 2 and 3 also. similarly for d.

    kindly advise me how to go about.
    though I am not an expert I am doing many customised programmes in vba.

    thanks and regards.



  2. #2
    Hari Prasadh
    Guest

    Re: mutiple same lookup values

    Hi RV,

    Probably the arbitrary Lookup's section within
    http://cpearson.com/excel/lookups.htm may offer you some ideas on how to go
    ahead with it.

    I think u can set up one formula to evaluate how many occurrences of -- a --
    is there, then use the above formula (after modifying) to output the row
    number of occurrences

    Thanks a lot,
    Hari
    India

    "R.VENKATARAMAN" <$$$$vram26@vsnl$$$.net$$$> wrote in message
    news:%23p%23EJV3BFHA.3824@TK2MSFTNGP10.phx.gbl...
    >a trivial example
    >
    > a a a s d f d g
    >
    > normally in match and othere lookup function it goes to the first lookup
    > value
    > for example if want to find the ;position of a in the above row by using
    > match function
    > it will only give as 1
    > but I want 2 and 3 also. similarly for d.
    >
    > kindly advise me how to go about.
    > though I am not an expert I am doing many customised programmes in vba.
    >
    > thanks and regards.
    >
    >




  3. #3
    Registered User
    Join Date
    02-28-2004
    Location
    Oregon
    Posts
    35
    Hi there,

    Here is a link to a UDF written by Peter Moran that allows for a vlookup-type formula for duplicates...

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=8

    For more information and some different permutations of this formula, do a board search at MrExcel.com for "VLOOKUPNTH".


    HTH
    Regards,
    Zack Barresse

  4. #4
    Registered User
    Join Date
    05-01-2011
    Location
    Jeddah, KSA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: mutiple same lookup values

    Assume your lookup array is a1:h1 range, result array is a2:h2 and A3 has lookup value.

    Then, write in A4 =COUNTIF($A1:A1,$A3) alternatively, you can use =COUNTIF($A1:A1,"*"&$A3&"*") for wildcard characters.

    And In A5 =INDEX(2:2,MATCH(COLUMNS($A1:A1),4:4,0)) and drag A4 & A5 horizontally.

+ 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