+ Reply to Thread
Results 1 to 8 of 8

Index array to return me a list of values

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

    Index array to return me a list of values

    Hi everyone,

    i have a sheet called "Dump"
    On column A there's a list of names.

    I have another sheet called "Data"

    On that sheet on column A, i want to return all the names in column A of the "dump" file, but only ONCE.

    Like, once they get a hit, it goes to the next row and look for another name, until all the name come up on top of each other.

    Is that doable?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Index array to return me a list of values

    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Index array to return me a list of values

    Does this help?

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    2
    Bob Bob
    3
    Bill Bill
    4
    James James
    5
    Bob Sarah
    6
    Bob
    7
    Sarah
    8
    Bill
    Sheet: Sheet2

    Excel 2016 (Windows) 32 bit
    B
    2
    =IFERROR(INDEX($A$2:$A$8,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$8),0,0),0)),"")
    Sheet: Sheet2
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Index array to return me a list of values

    That doesnt make it :/

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Index array to return me a list of values

    That doesnt make it
    Does that mean it doesn't meet your needs? it doesn't work? it gives an error? it gives the wrong results? I can assure you that if set up properly, AliGW's formula does work.

    Did you place the formula in row 2 (at least)? In Ali's example, it's in B2 and it refers to the cell above it (B1) so you can't start it in row 1.
    Did you modify the range A2:A18 to match your data?
    Did you properly place the anchors ($ signs) so that range $B$1:$B1 expands as you copy the formula down?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: Index array to return me a list of values

    I just don't understand what's in the formula or what it refers to, so trying to adapt to my document might be what is creating the issue.. let me just try again

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Index array to return me a list of values

    Try

    in A2 of "Data" (A1 is blank)

    =IFERROR(INDEX(Dump!$A$2:$A$100,MATCH(0,INDEX(COUNTIF($A$1:A1,Dump!$A$2:$A$100),0,0),0)),"")

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Index array to return me a list of values

    Quote Originally Posted by xatomicx View Post
    I just don't understand what's in the formula or what it refers to, so trying to adapt to my document might be what is creating the issue.. let me just try again
    If you attached a workbook, as requested, it would be much easier for everyone.

+ 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. Replies: 2
    Last Post: 03-15-2017, 08:22 AM
  2. Replies: 5
    Last Post: 12-02-2015, 05:23 AM
  3. [SOLVED] Use index/match to return a list of values
    By mustangsally in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2014, 04:00 PM
  4. Replies: 7
    Last Post: 10-10-2014, 05:40 PM
  5. Use Index/Match Function to Return Values from an Array
    By 00pumpkin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 02:22 PM
  6. Replies: 2
    Last Post: 02-02-2013, 05:24 PM
  7. Return list of values index/match
    By spivieguy1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2009, 02:49 PM

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