Closed Thread
Results 1 to 2 of 2

Micros code to compare contents in different sheets

  1. #1
    Registered User
    Join Date
    05-25-2021
    Location
    south africa
    MS-Off Ver
    10
    Posts
    24

    Micros code to compare contents in different sheets

    Good day,
    I am trying to create a macros code to look for inconsistency between two sheets. check the examples sheet below for understanding.
    I want the macros code to go to sheet 1 e.g 20M1 , then go to sheet 2 in the tag number column and look for 20M1, if it finds it,
    it much go to the corresponding description and compare it with the 20M1 description in sheet 1, if the description are the same move
    to the next row in sheet 1 (20A3) and repeat the same thing.....if they are not the same , highlight both the description and tag number
    in sheet 1 and sheet 2...Look AT THE OUTPUT FOR UNDERSTANDING


    sheet1
    tag number description
    20M1 engineering
    20A3 building
    45v342 cominissioning

    sheet2
    tag number description
    20A3 engineering
    20M1 building
    45v342 cominissioning

    OUTPUT : Highlight the first two items (both columns) because the description dont match...do nothing to the 3rd item since it is correct
    (same decription in sheet 1 and 2.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    24,996

    Re: Micros code to compare contents in different sheets

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...nt-sheets.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Micros code to compare contents in different sheets
    By livhu in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 05-26-2021, 03:59 AM
  2. Micros code to compare contents in different sheets
    By livhu in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-25-2021, 05:46 AM
  3. I need to code to clear contents the several fixed ranges of several sheets
    By samahhamaad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2016, 05:21 PM
  4. Need VBA code to compare two sheets
    By gokulg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2014, 03:01 AM
  5. compare code in two sheets
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 02:29 PM
  6. [SOLVED] Need a good Micros for splitting data into new sheets.
    By Oszie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2013, 06:43 AM
  7. [SOLVED] VBA Code - Compare Adjacent Cells In two columns and clear contents when a match is found
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-03-2013, 06:22 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