+ Reply to Thread
Results 1 to 3 of 3

Trying to match text in a cell to an entire worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    toronto
    MS-Off Ver
    2010
    Posts
    1

    Trying to match text in a cell to an entire worksheet

    I have a list of last names and want to see if the last name appears in a list of other last names. I've tried multiple formulas and can't get anything to work. The issue is that the last name I am searching to see if is on the 2nd worksheet could be in cells A1, B1, or C1

    This is how my spreadsheet is laid out
    Worksheet 1

    A B C D
    A1 Company Name| B1 First Name| C1 Last Name| D1 (This is the cell I want to say Match if the last name is found in the other worksheet)



    Worksheet 2
    A B C
    1 Name Name Name

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

    Re: Trying to match text in a cell to an entire worksheet

    What specifically would be the range to check on sheet2?
    A1:C200 or A1:Z1 or A1:Z200 for example?
    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

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Trying to match text in a cell to an entire worksheet

    Hello
    Try this formula
    D1 =IF(SUMPRODUCT((C1=Sheet2!A1:C100)*TRUE())>0,"Match","")
    and copy down

    If it doesn't work then please attach a sample workbook of your data
    Hope this helps!!
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

+ 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: 3
    Last Post: 10-31-2013, 03:41 PM
  2. [SOLVED] Macro copy entire row if any cell frm col A in sheet1 match any cell frm col A in sheet2
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2013, 03:20 PM
  3. [SOLVED] cut and paste entire row to another worksheet if cell contains a specific text
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-25-2013, 10:16 AM
  4. match items and copy the entire row to a new worksheet
    By Gordonhk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2013, 10:36 AM
  5. Match a cell with text box on worksheet and write data
    By cdy3900 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2013, 01:53 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