+ Reply to Thread
Results 1 to 3 of 3

Search dataset rows for multiple criteria and combine rows if multiple criteria is met

  1. #1
    Registered User
    Join Date
    08-08-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    1

    Question Search dataset rows for multiple criteria and combine rows if multiple criteria is met

    Hello,

    I have two large data sets in separate sheets. The datasets contains multiple rows with data that I need to combine. There is additional information, except my criteria, that I need to bring over.

    4 columns on each sheet have the same type of data so I want to use that information to bring over the corresponding row. The data that I want to match is on this format:

    Date +- one day - data set 1 is a date range of 3 dates (3 columns, min date-date-max date) and needs to be matched to a day within that range on data set 2
    Length+-200 - data set 1 is a length range like the date range above but the length is +-200
    E2=E2
    F2=F2

    I need to bring the rows over to the other data set sheet and combine it to the row that contains the matching 4 criteria.

    All 4 criteria must be met for the row to "match". I tried to formulate it but I'm not able, with my knowledge, to formulate it to search through and match the 4 criteria per row, and if not met, continue searching next row and so on... When a match is found, I want to go to the next 4 criteria (row below on dataset 1) and redo the search (on dataset 2) until all rows on dataset 1 has been matched to dataset 2.

    Any ideas are much appreciated!!

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search dataset rows for multiple criteria and combine rows if multiple criteria is met

    Welcome to the excel forum.

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,948

    Re: Search dataset rows for multiple criteria and combine rows if multiple criteria is met

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...s-met.1212630/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Combine multiple rows in a specific column based on matching criteria? VBA solution?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2015, 07:11 PM
  2. [SOLVED] Combine rows of data based on multiple criteria?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2015, 12:54 PM
  3. [SOLVED] Combine multiple rows with a certain criteria into one row
    By mhf89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2015, 03:40 PM
  4. [SOLVED] Search for multiple rows from multiple sheets by criteria & show result in userform
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2014, 11:29 AM
  5. Search data to see if any rows match multiple criteria
    By lafountain2209 in forum Excel General
    Replies: 1
    Last Post: 03-21-2013, 01:52 PM
  6. Search for Multiple Criteria and Return all Rows that Match.
    By Kimston in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2013, 11:46 AM
  7. [SOLVED] Search multiple sheets for criteria and paste all matched rows in new sheet
    By BertLady56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2012, 01:09 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