+ Reply to Thread
Results 1 to 10 of 10

Index lookup + multiple entrys + wildcard

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    munich
    MS-Off Ver
    Excel 2003
    Posts
    7

    Index lookup + multiple entrys + wildcard

    Hi everybody

    if i have a tabel with

    a : b
    Apple : 1
    Apple pie : 2
    Tomato : 4

    I want to make a table which returns me 1 & 2 below in seperate cells

    to do that i have the following
    =INDEX($C$2:$C$6, SMALL(IF(COUNTIF($B$8,"*"&$B$2:$B$6&"*"), ROW($B$2:$B$6)-MIN(ROW($B$2:$B$6))+1, ""), ROW(A1)))

    Where B8 is the refence cell Apple

    i wanted to include a wild card ( *Apple)
    However that did not work

    would anybody have an ide how to solve this ?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index lookup + multiple entrys + wildcard

    With youe dat in range A1:B3, use this ARRAY formula

    =INDEX(B1:B3;SMALL(IF(A1:A3="*Apple*";ROW(A1:A3));ROW(A1)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Index lookup + multiple entrys + wildcard

    Why don't you use vlookup instead? Have a look at the attachment and a thread I have devoted to using advanced vlookup.

    Hope this helps.

    abousetta
    Attached Files Attached Files
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    munich
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Index lookup + multiple entrys + wildcard

    I want to pull the formular until no values containg apple are left. '

    also wehen i try your formular it returns that there is an error and excel selcts B3

    did the formualr work with you ?

  5. #5
    Registered User
    Join Date
    01-25-2013
    Location
    munich
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Index lookup + multiple entrys + wildcard

    Quote Originally Posted by Fotis1991 View Post
    With youe dat in range A1:B3, use this ARRAY formula

    =INDEX(B1:B3;SMALL(IF(A1:A3="*Apple*";ROW(A1:A3));ROW(A1)))

    I want to pull the formular until no values containg apple are left. '

    also wehen i try your formular it returns that there is an error and excel selcts B3

    did the formualr work with you ?

  6. #6
    Registered User
    Join Date
    01-25-2013
    Location
    munich
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Index lookup + multiple entrys + wildcard

    Quote Originally Posted by abousetta View Post
    Why don't you use vlookup instead? Have a look at the attachment and a thread I have devoted to using advanced vlookup.

    Hope this helps.

    abousetta
    hm that would work but the actual list has 2000 entrys and i want to retrive the all data for a specific firms (apple) in a seperate sheet


    ps. how do i deleat a post ( posted the same thing twice)

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index lookup + multiple entrys + wildcard

    Do you really use Excel 2003? If yes change my IFERROR formula with if(iserror...
    Attached Files Attached Files

  8. #8
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Index lookup + multiple entrys + wildcard

    Hi 20juls

    How about:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Assuming your data is in A1:B3.
    Enter as CTRL + SHIFT + ENTER and copy down.
    Last edited by Kevin UK; 01-25-2013 at 09:12 AM.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  9. #9
    Registered User
    Join Date
    01-25-2013
    Location
    munich
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Index lookup + multiple entrys + wildcard

    Quote Originally Posted by Fotis1991 View Post
    Do you really use Excel 2003? If yes change my IFERROR formula with if(iserror...
    Thanks that was a strocke of genius and worked perfectly

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index lookup + multiple entrys + wildcard

    You are welcome. Thanks for your kind feedback and also for reb*

+ 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