+ Reply to Thread
Results 1 to 4 of 4

Index & Match - fill table with unique values

  1. #1
    Registered User
    Join Date
    09-04-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    6

    Index & Match - fill table with unique values

    Hi everyone, been stretching my formulas (googling) to the limits ...

    I'm trying to fill a table column with unique matching values from another table. At the moment I'm getting the column to fill with the first value from the reference table over and over again, when really I only want unique matching values until the INDEX & MATCH has looped through every item in the reference table I've INDEXed.

    So far I have this:

    =INDEX(TABLE_CONTRACTORS,MATCH($B$1,TABLE_CONTRACTORS[Project],0),MATCH("First Name",TABLE_CONTRACTORS[[#Headers],0))

    ---> ( $B$1 contains a reference to the project name, so it varies on every worksheet. )

    How would I change this so it only returns unique values, and those values populate downwards in the column?

    EDIT: I've attached a file with an example of the data, and what it should look like on the second tab, along with the result my code produces.

    Any pointers on how to get this in to some kind of loop through the whole table, and then to end gracefully, would be great, thanks!
    Attached Files Attached Files
    Last edited by Confuselocated; 01-15-2020 at 05:06 PM. Reason: Added example file

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Index & Match - fill table with unique values

    Use a normal index match to get the 1st instance and then use this array formula for the rest.
    {=IFERROR(INDEX(Lookup Range,SMALL(IF(Match Range=Match too Cell,ROW(Match Range)-ROW(INDEX(Match Range,1,1))+1),Lookup Instance Cell#2)),"-")}
    Attached Files Attached Files
    Uploading an attachment will assist Forum Members in finding the correct Solution for you. Create a dummy worksheet if necessary, add your start data and show where / what your expected results should be. TO ADD A FILE:

    Go to 'Advanced. click on 'Manage Attachments. Select 'Browse & Choose your file, Select 'Upload and then close the Attachment window.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index & Match - fill table with unique values

    using your sample

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the remainder can be standard INDEX/MATCH using Contract ID #

    if nec, wrap above within IFERROR to address limited no. of returns (i.e. less than rows in table object)

  4. #4
    Registered User
    Join Date
    09-04-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    6

    Re: Index & Match - fill table with unique values

    Massive thanks, this solved the problem and has made all of the difference to my forecasting and day-to-day life with Excel!

+ 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. INDEX/MATCH with multiple criteria and dynamic worksheet reference
    By dutchcourage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2019, 06:41 PM
  2. [SOLVED] INDEX MATCH with dynamic reference using INDIRECT
    By Avaritia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2019, 11:09 PM
  3. Replies: 5
    Last Post: 11-27-2017, 09:08 AM
  4. [SOLVED] Index Match with dynamic external reference (closed file)
    By doq7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-29-2017, 10:52 AM
  5. [SOLVED] Dynamic reference in Index-Match function
    By GIS2013 in forum Excel General
    Replies: 3
    Last Post: 12-29-2016, 06:08 PM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 7
    Last Post: 08-10-2010, 04:05 PM

Tags for this Thread

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