+ Reply to Thread
Results 1 to 6 of 6

Return Multiple Rows based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    06-30-2021
    Location
    Blackburn, England
    MS-Off Ver
    365
    Posts
    2

    Post Return Multiple Rows based on Multiple Criteria

    Hi guys,

    I've racked my head and the internet and i'm coming up blank.

    I've attached an example of my data set, Rows 1 to 15 are my input, and 20 to 29 are the desired output.

    I have a set of data with multiple records under one Identifier (property Code), and need to only return the most recent Landlord and most recent tenant for each property code.

    Any ideas most welcome!

    Thanks,
    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Return Multiple Rows based on Multiple Criteria

    Not sure about this but give a shot and Im using helper columns


    Cheers
    Attached Files Attached Files

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Return Multiple Rows based on Multiple Criteria

    @azumi
    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Return Multiple Rows based on Multiple Criteria

    In J2 then copied to J,M and N columns
    Please Login or Register  to view this content.
    In K2 then copied to K and L columns
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    06-30-2021
    Location
    Blackburn, England
    MS-Off Ver
    365
    Posts
    2

    Re: Return Multiple Rows based on Multiple Criteria

    This worked perfectly!

    Can't say I 100% Understand HOW it works, but it does! Thanks guys

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Return Multiple Rows based on Multiple Criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 8
    Last Post: 09-01-2020, 10:20 PM
  2. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  3. Replies: 2
    Last Post: 08-13-2018, 09:43 PM
  4. [SOLVED] Return multiple rows based on multiple criteria
    By Nils88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2013, 10:34 AM
  5. [SOLVED] Return multiple rows based on 2 criteria
    By greyscale in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2013, 09:26 PM
  6. Count Multiple Entries, Return Multiple Rows, Based On 3 Criteria
    By gtj_global in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2008, 06:40 PM
  7. [SOLVED] return multiple rows of data based on criteria
    By steve_sr2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-28-2006, 12:15 AM

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