+ Reply to Thread
Results 1 to 7 of 7

Display Multiple Results for Same Matching Key

  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    Enterprise, Alabama
    MS-Off Ver
    2007
    Posts
    5

    Display Multiple Results for Same Matching Key

    I currently have a table that contains identification numbers of people in the first column, their position title in the second, name in the third, and some other admninistrative data in following columns.

    Most identification numbers are unique, but some match each other (they aren't technically ID numbers but more like specific job/role ID numbers).

    What I need is a function that will look at the first column for any one of a specific set of four different ID numbers, and then return the first matching ID number in the first cell, the corresponding position title in the second cell, corresponding name in the third, etc. Then in the following row, do the same thing again but skip the reference that it just found in the row above it. Keep in mind that this is likely to be second occurance of that same reference ID number. The reference table data will change from time to time and this output must be robust enough to change with it.

    Using Excel 2007.

    Thanks for any help!
    Last edited by AndromedusO; 07-28-2014 at 12:12 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Display Multiple Results for Same Matching Key

    Hi,
    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 use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    07-28-2014
    Location
    Enterprise, Alabama
    MS-Off Ver
    2007
    Posts
    5

    Re: Display Multiple Results for Same Matching Key

    In the sample I have attached, the left side is the data and the right side is the output. As you can see, there are a couple of ID's "SEQPOS" that I want to gather and filter all the other unique ID's out. I have made the workbook much smaller than reality.

    Edit: I made a mistake and did not format the cells "general," please do so when you open them so they display correctly.
    Attached Files Attached Files
    Last edited by AndromedusO; 07-28-2014 at 12:52 PM.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Display Multiple Results for Same Matching Key

    I think you can find the solution here

  5. #5
    Registered User
    Join Date
    07-28-2014
    Location
    Enterprise, Alabama
    MS-Off Ver
    2007
    Posts
    5

    Re: Display Multiple Results for Same Matching Key

    The problem is that the data isn't necessarily duplicate. Sometimes it will be the first and only time that the key I am searching for, such as 9991, occurs.

  6. #6
    Registered User
    Join Date
    07-28-2014
    Location
    Enterprise, Alabama
    MS-Off Ver
    2007
    Posts
    5

    Re: Display Multiple Results for Same Matching Key

    I found a solution. Using the countif function in a column for each key, and then summing the countif columns in a new column, created a unique number each time one of those keys occured. I then was able to use this column as a reference for vlookup. Thanks for the help! I wish there was a better function for this but if there is then it's beyond me.

  7. #7
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Display Multiple Results for Same Matching Key

    Hi

    Try this Cell L6
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    Cell M6
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is array formula!! Press same time Ctrl+Shift+Enter, NOT ENTER?? Then copy down and cross.

    Regard
    micope21
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

+ 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. [SOLVED] Search Multiple columns for string, display matching results on different sheet.
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 06:53 AM
  2. [SOLVED] start typing in a cell with a drop down box and have it display matching results
    By gnagystrap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2013, 03:21 PM
  3. Lookup multiple & non duplicated results for multiple matching criteria
    By melvil007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2012, 01:22 AM
  4. Matching named ranges to display results in userform
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2009, 09:08 AM
  5. Matching multiple columns, summing multiple results
    By DamienC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2008, 09:36 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