+ Reply to Thread
Results 1 to 5 of 5

Comparing the contents of two tables and "marks" them when they contain the same text

  1. #1
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Comparing the contents of two tables and "marks" them when they contain the same text

    Hi all, so I have a problem...

    I have two spreadsheets, Spreadsheet 1 contains like 3000+ text data while Spreadsheet 2 contains 300 text data. Spreadsheet 2 is a part of Spreadsheet 1, and I have the task to highlight the 300 from Spreadsheet 2 in Spreadsheet 1, like creating a new column called "Status" in the right side. The contents in Spreadsheet 1 which are in Spreadsheet 2 will be marked as "Done" in the "Status" column.

    The thing is, I don't really know how to do this. I used VLOOKUP and it fails. I also tried IFNA and MATCH but it doesn't show what I wanted...

    Please help me.

    Thank you. I hope you all have a great day!

  2. #2
    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,647

    Re: Comparing the contents of two tables and "marks" them when they contain the same text

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Re: Comparing the contents of two tables and "marks" them when they contain the same text

    This is the sample table.

    Thank you
    Attached Files Attached Files

  4. #4
    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,647

    Re: Comparing the contents of two tables and "marks" them when they contain the same text

    In B1 copied down:

    =IF(ISNA(MATCH(A1,'Spreadsheet 2'!A:A,0)),"","Done")

  5. #5
    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,647

    Re: Comparing the contents of two tables and "marks" them when they contain the same text

    Looked, but no response ...

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) 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 all those who offered help.

+ 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 Updates Pivot Table by cell contents, i want to show "blank" instead of "all"
    By mattinwpg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2017, 10:58 PM
  2. Replies: 4
    Last Post: 06-11-2017, 02:03 PM
  3. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  4. Replies: 1
    Last Post: 06-06-2013, 06:28 PM
  5. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  6. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  7. Replies: 1
    Last Post: 03-09-2007, 05:34 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