+ Reply to Thread
Results 1 to 9 of 9

INDEX to return multiple value

  1. #1
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    INDEX to return multiple value

    Hi,

    I've been able to do this before using a Index function ... but i lost how to do it, and what i find online is not really what i need.

    what i want is;

    if column A = Sondages , then return me the value in column B. There will be multiple results.. (wich is why i need to use index instead of a simple vlookup) so i need to stack the result on top of each other in column G1 down.

    i know it's a combination of index, match & stuff.

    Thanks for helping

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: INDEX to return multiple value

    Does this help in C2?
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: INDEX to return multiple value

    PArtially works, sometimes it returns me twice or more the same value, sometimes it doesnt.

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: INDEX to return multiple value

    Can you upload a sample of your spreadsheet without any sensitive data? Click on "Go Advanced" and then use the paperclip icon to attach the file.

    The first countif is looking at all of the results already given in the unique list. You shouldn't be able to get more than one unique value returned. But if you attach an example file we can look and see what is going on.

  5. #5
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: INDEX to return multiple value

    Was able to complete with an array formula .. thanks !

  6. #6
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: INDEX to return multiple value

    Good. I'm glad you found a way to do what you needed.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: INDEX to return multiple value

    @xatomicx

    can you post the array formula, for the benefit of other members?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: INDEX to return multiple value

    Sure

    Please Login or Register  to view this content.
    Then i just drag down the cell until its done.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDEX to return multiple value

    Try this...

    Data Range
    A
    B
    C
    D
    1
    2
    Apples
    Data1
    Sondages
    Data2
    3
    Sondages
    Data2
    Data4
    4
    Grapes
    Data3
    Data7
    5
    Sondages
    Data4
    Data8
    6
    Fish
    Data5
    7
    Sponges
    Data6
    8
    Sondages
    Data7
    9
    Sondages
    Data8
    10
    Tulips
    Data9
    11


    This array formula** entered in D2:

    =IFERROR(INDEX(B:B,SMALL(IF(A$2:A$10=C$2,ROW(A$2:A$10)),ROWS(D$2:D2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Using Index formula to return multiple values
    By pblake10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2013, 02:57 PM
  2. [SOLVED] index return multiple values
    By antho27 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-20-2013, 12:52 AM
  3. Index look-up and return multiple columns
    By Jenigizmo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2009, 04:24 AM
  4. Can Index or Match return multiple results?
    By waverider in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2007, 10:06 PM
  5. [SOLVED] return multiple corresponding values using INDEX
    By BubbleGum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2006, 01:45 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