+ Reply to Thread
Results 1 to 4 of 4

INDEX formula trouble, doesn't show expected result

  1. #1
    Registered User
    Join Date
    05-12-2015
    Location
    EUROPE
    MS-Off Ver
    2013
    Posts
    2

    INDEX formula trouble, doesn't show expected result

    Hello!

    I have a bit trouble with my INDEX formula. So I have in columm A many products and in columm B many company names, I need to see company name for a defined product. The problem is that the products and company names repeats a lot.

    I tried this formula =INDEX($A$5:$B$18,SMALL(IF($A$5:$A$18=$A$2,ROW($A$5:$A$18)),ROW(1:1))-1,2) but it doesn't seems correct.

    Could somebody please advise me how I can solve this?

    I have attached my excel example.


    Any help would be appreciated.Book1.xlsx

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: INDEX formula trouble, doesn't show expected result

    Try it like this

    =INDEX($B$5:$B$18,SMALL(IF($A$5:$A$18=$A$2,ROW($A$5:$A$18)-ROW($A$5)+1),ROWS(A$5:A5)))

    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: INDEX formula trouble, doesn't show expected result

    Perhaps with:

    Please Login or Register  to view this content.
    This will get rid of the repeating names and show only the uniques that match.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    05-12-2015
    Location
    EUROPE
    MS-Off Ver
    2013
    Posts
    2

    Re: INDEX formula trouble, doesn't show expected result

    Thank you so much! This worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula doesn't work as expected????
    By muish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2013, 04:30 AM
  2. Trimmed mean doesn't give expected result
    By Winton in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2012, 06:31 AM
  3. cell doesn't show result of formula
    By nabraham00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2012, 08:43 AM
  4. Recorded macro doesn't seem to provide expected result
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2009, 06:52 AM
  5. First result doesn't show up - drives me crazy
    By floep in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2006, 10:34 AM

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