+ Reply to Thread
Results 1 to 8 of 8

Finding matches from different sheets and gathering them in one sheet

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Question Finding matches from different sheets and gathering them in one sheet

    Hi there,
    I have the following case. Example sample file attached.

    I have 3 sheets - "Full list" , "Training1" and "Training2".

    In the 1st sheet Full list I need to fill data for different employees, based on their training attendance.
    Training1 and Training 2 sheets contain report exported data for attendees, who have attended the trainings already, however each export for each training is different = there's no consistency here, except the "E-mail" column which is always the same.

    Now, is there a formula that I can use in the Full list sheet, Column L (L2:L5) that is checking for matches based on the emails (Column B2:B6) in the other sheet Training1 and if such match is found, to return a value for the respective Group (Column L , Sheet Training1) ?

    Also for the other column M2:M5 on Sheet Full list I need a similar thing - once again to check for emails in sheet "Training2" and when a match is found to return result in Column M, Sheet Full list.

    As a remark - on Column L and Column M in sheet Full list are showing the desired/expected result, just to illustrate what I want to achieve as end result.
    Attached Files Attached Files
    Last edited by Air^Canada; 03-12-2024 at 09:37 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Finding matches from different sheets and gathering them in one sheet

    no sample attached
    Also which version of excel will this be used in ? as you have 365 and 2016 - a vast difference in functions available between those versions

    Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet.

    A sample sheet would help here, and possibly will enable a quicker and more accurate solution for you.


    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    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.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Finding matches from different sheets and gathering them in one sheet

    Just added the attachment. Excel 365 is the version
    Last edited by Air^Canada; 03-12-2024 at 09:37 AM. Reason: solved

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Finding matches from different sheets and gathering them in one sheet

    yes, you could use vstack and filter()
    but
    just a xlookup / index/match / IF will work , if i have understood

    =INDEX(Training1!$L$2:$L$100,MATCH('Full list'!E2,Training1!$B$3:$B$100,0))
    But some of the emails do not match up
    and then
    =IFERROR(INDEX(Training2!$B$2:$B$100,MATCH('Full list'!E2,Training2!$A$3:$A$100,0)),"")
    will give the date - BUT
    you could use an IF
    =IF(ISERROR(INDEX(Training2!$B$2:$B$100,MATCH('Full list'!E2,Training2!$A$3:$A$100,0))),"","completed")

    see column O and P
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,059

    Re: Finding matches from different sheets and gathering them in one sheet

    Dynamic array, since you have O365:

    Training 1:
    =BYROW(E2:E5,LAMBDA(x,IFERROR(FILTER(Training1!L2:L20,Training1!B2:B20=x),"")))

    Training 2:
    =BYROW(E2:E5,LAMBDA(x,IF(ISNUMBER(MATCH(x,Training2!A2:A20,0)),"Completed","")))

    No formula dragging needed.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Finding matches from different sheets and gathering them in one sheet

    Quote Originally Posted by Glenn Kennedy View Post
    Dynamic array, since you have O365:

    Training 1:
    =BYROW(E2:E5,LAMBDA(x,IFERROR(FILTER(Training1!L2:L20,Training1!B2:B20=x),"")))

    Training 2:
    =BYROW(E2:E5,LAMBDA(x,IF(ISNUMBER(MATCH(x,Training2!A2:A20,0)),"Completed","")))

    No formula dragging needed.
    Perfect! This will do the thing, I believe! Many thanks!

    Just one more thing = when there's no match, it returns '0' in my original file. How can I hide the zeroes, so that the cell looks just empty?

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,059

    Re: Finding matches from different sheets and gathering them in one sheet

    It doesn't do that for me... I see blanks instead... Please post a file showing zeros.

  8. #8
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Finding matches from different sheets and gathering them in one sheet

    Quote Originally Posted by Glenn Kennedy View Post
    It doesn't do that for me... I see blanks instead... Please post a file showing zeros.
    I found the reason for this on my side. In the respective column there were duplicate entries causing this error. Once I removed them, everything looks good.

    Thanks again.

+ 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: 11-28-2022, 10:46 PM
  2. [SOLVED] extract Data for each sheets where Sheet name matches item on sheet "Divisions
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2019, 04:30 AM
  3. Vlookup 2 sheets finding data that matches both
    By McCaughley7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2015, 04:19 PM
  4. Replies: 2
    Last Post: 09-16-2015, 07:59 AM
  5. Replies: 2
    Last Post: 09-02-2015, 05:47 AM
  6. Replies: 18
    Last Post: 04-26-2012, 10:38 AM
  7. Finding sheet that matches a cell value
    By oakman in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-12-2008, 01:01 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