+ Reply to Thread
Results 1 to 4 of 4

Trying to match name in 2 different sheets and then mark a Y value based on specific text

  1. #1
    Registered User
    Join Date
    09-07-2021
    Location
    Phoenix, US
    MS-Off Ver
    MSOffice 15
    Posts
    2

    Trying to match name in 2 different sheets and then mark a Y value based on specific text

    Hello:

    I am working with skillsets downloaded from a phone system (Sheet2). The goal is to:
    1. Match the name from Sheet1 and Sheet2
    2. Then look at the columns B and C in Sheet2 for data that contains "TG1"
    3. Then put a Y in column B of Sheet1 if if the person has TG1 skill.

    Sheet2 can contain the engineers out of order and more names than Sheet1.


    Any assistance here would be greatly appreciated as I've been wracking my brain against multiple formulas for days.

    Sample workbook is attached.
    Sample2sheetmatch.xlsx

    Sincerely,

    Patrick
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,370

    Re: Trying to match name in 2 different sheets and then mark a Y value based on specific t

    In B2

    =IF(SUMPRODUCT((Sheet2!$B$2:$C$7=Sheet1!B$1)*(Sheet2!$A$2:$A$7=Sheet1!$A2)),"Y","")

    Copy across and down

  3. #3
    Registered User
    Join Date
    09-07-2021
    Location
    Phoenix, US
    MS-Off Ver
    MSOffice 15
    Posts
    2

    Re: Trying to match name in 2 different sheets and then mark a Y value based on specific t

    Hi John:

    Thank you for the reply. That worked but, to complicate things a little more...

    Is there any way for it not to look at the B1 text of Sheet1 to see if it matches B or C in Sheet2?

    For example, the column name in Sheet1 will be unabbreviated and shown as Tech Grade 1. So anything that matches TG1 in Sheet2 gets marked as Y in column B of Sheet1.

    I tried modifying the formula to contain text instead of the B1 header reference, but it errors out.
    =IF(SUMPRODUCT((Sheet2!$B$2:$C$7='TG1')*(Sheet2!$A$2:$A$7=Sheet1!$A2)),"Y","")

    Again, thank you for your help here.

    Sincerely,

    Patrick

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,863

    Re: Trying to match name in 2 different sheets and then mark a Y value based on specific t

    You would have to have a different formula in each column then. You aren't using quotation marks in your formula. Try this in B2 and copy down, and then in C2 you'll have to change the text to "TG2", etc.)

    =IF(SUMPRODUCT((Sheet2!$B$2:$C$7="TG1")*(Sheet2!$A$2:$A$7=Sheet1!$A2)),"Y","")

+ 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. VBA match specific text and copy row each sheets together
    By missbb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2020, 05:02 PM
  2. [SOLVED] Search specific text from multiple sheets based on condition
    By sreeks in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-23-2017, 08:37 PM
  3. Replies: 0
    Last Post: 08-21-2017, 12:26 AM
  4. [SOLVED] VBA code to match and mark data from multiple sheets into a master sheet.
    By spikedemike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2015, 07:52 AM
  5. Replies: 3
    Last Post: 04-29-2012, 01:07 PM
  6. Replies: 2
    Last Post: 04-20-2011, 08:50 AM
  7. Mark if cells match on 2 sheets
    By Optitron in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-03-2006, 09:49 AM

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