+ Reply to Thread
Results 1 to 5 of 5

ARRAY/PIVOT + duplicates - need to return multiple match values

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    6

    ARRAY/PIVOT + duplicates - need to return multiple match values

    Attempting to achieve the following. Best that i show you!

    multiple-matches.png

    I'm most confused about the yellow cell, as there is no data validation applied. You just type the animal, and
    it gives you the matches. Neither is there any formula, or it's hidden?

    My table looks like this:

    data1.PNG

    I created a pivot table, since i had duplicate values in the "EXPENSES" column,
    and i didn't want to have duplicates showing up in the data validation list ("Expense" column).

    data2.PNG

    If there's a better way to do it - PLEASE, let me know.

    Now the problem is, that when i choose a certain expense, for example cleaning,
    i want the Code column (w/ three question marks) to generate all the codes associated with cleaning.

    VLOOKUP or INDEX only gives the first result. I need them all, so i have to use ARRAY FORMULA?

    data3.PNG

    This is where it gets tricky. I'm a beginner so this is all new to me. I'd be thankful for any kind of help!

    Download my table:
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: ARRAY/PIVOT + duplicates - need to return multiple match values

    Hello
    Have you considered using a Pivot table with a slicer to select the Expenses and its related codes? This would be one easy solution to give you the unique list of Expenses from which to select.

    DBY

    *Added example:
    Attached Files Attached Files
    Last edited by DBY; 01-05-2016 at 01:00 PM. Reason: Added attachment

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: ARRAY/PIVOT + duplicates - need to return multiple match values

    Quote Originally Posted by DBY View Post
    Hello
    Have you considered using a Pivot table with a slicer to select the Expenses and its related codes? This would be one easy solution to give you the unique list of Expenses from which to select.

    DBY
    Hello!
    No-no, i actually haven't even considered this option!!
    See, as a beginner, i'm still SLICING my way through the thick forest called Excel (that pun),
    and i'm not really familiar with all the formulas.
    I checked what you did, and it works perfectly, however, i have a requirement,
    that the first "Expense" cell HAS TO BE completed with data validation and the cell next must return code values using a formula.

    This is how the example (as shown in the first picture) is completed:
    http://thinketg.com/how-to-return-mu...ch-or-vlookup/

    Perhaps you, Mr. DBY, or someone else, can replicate this formula into my table?

  4. #4
    Registered User
    Join Date
    01-04-2016
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: ARRAY/PIVOT + duplicates - need to return multiple match values

    EDIT:

    SOLVED.

    http://thinketg.com/how-to-return-mu...ch-or-vlookup/

    Use the formula given here.
    Last edited by swinksel; 01-05-2016 at 03:50 PM.

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: ARRAY/PIVOT + duplicates - need to return multiple match values

    Glad you found a solution. Thanks for the feedback.

+ 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] Array Match and Return value upon multiple array match criteria
    By VegetaOSX in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2015, 05:50 AM
  2. 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
  3. [SOLVED] Complex Match return array of values
    By sfluegge in forum Excel General
    Replies: 4
    Last Post: 05-01-2012, 10:55 AM
  4. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  5. Replies: 5
    Last Post: 04-04-2005, 05:06 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