+ Reply to Thread
Results 1 to 6 of 6

Lookup to return multiple results

  1. #1
    Forum Contributor
    Join Date
    03-28-2019
    Location
    Costa Rica
    MS-Off Ver
    2016
    Posts
    117

    Lookup to return multiple results

    Hello everyone.

    Looking for some assistance here.

    I have a list of customers with a failed purchase (column A) and I also have a list of all failed purchases in a given date range. We would like to extract all failed reasons, (code) method (type) and the amount per customer.

    The expected result should list the account with failed purchases and the multiple decline reasons(code) and type he/she went through.

    I have attached a sample. Your help will be much appreciated.

    Regards

    M
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Lookup to return multiple results

    May be you need PivoteTable
    Attached Files Attached Files

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

    Re: Lookup to return multiple results

    I would suggest using a Pivot Table. With a Pivot Table, it's easy to move things in and out to get different views of your data.
    For your example, I used Account, Type and Code for the rows and then in the "Values" field, I put both "Amount" twice, once as a SUM and once as a Count.
    So, at a glance, you can see that IB18490 had 4 issues with Cash totaling 200 and 1 issue with crypto for 0 amount.
    Does this fit your criteria?
    Attached Files Attached Files
    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

  4. #4
    Forum Contributor
    Join Date
    03-28-2019
    Location
    Costa Rica
    MS-Off Ver
    2016
    Posts
    117

    Re: Lookup to return multiple results

    Hello Guys. Thank you for your answers, perhaps I didn't express myself correctly.

    We need to list only the accounts in column A that appear in the all failed purchases. Columns (C:M)

    In other words if the account in column A appears in (C:M)list the Code, type and amount of all their purchase attempts.

    let me know if that is clear.

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

    Re: Lookup to return multiple results

    Okay, I assumed Col A was a list of all accounts but I see now there are accounts in your table that are not in Col A. In your original data, I added (Col G but you could do it in B or O) a test to see if it's in Col A. I used this formula
    =COUNTIF(A:A,F3)>0
    Then in the pivot table, I added Col G (which I called "Col A") to a filter and Filtered only on TRUE. This gives you results only that are Column A
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-28-2019
    Location
    Costa Rica
    MS-Off Ver
    2016
    Posts
    117

    Re: Lookup to return multiple results

    Hello ChemistB

    Thank you for your help.

    This one does meet my criteria. I really appreciate it.

    M

+ 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. Lookup and return multiple results
    By dw_22801 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2019, 12:07 PM
  2. [SOLVED] Lookup to match multiple criteria and return multiple results excluding duplicates.
    By kris3012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-13-2018, 11:06 AM
  3. Lookup a Value and Return Multiple Results
    By tigeravatar in forum Tips and Tutorials
    Replies: 13
    Last Post: 04-08-2016, 04:44 PM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. Lookup a Value and Return Multiple Results
    By sgtkikass in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-06-2014, 10:06 PM
  6. Lookup & return Multiple Results
    By benishiryo in forum Excel Tips
    Replies: 2
    Last Post: 07-11-2012, 10:11 AM
  7. Return Multiple Results with Lookup
    By Josh O. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-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