+ Reply to Thread
Results 1 to 6 of 6

Compare 2 columns and highlight the new value,

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    buenos aires
    MS-Off Ver
    2010
    Posts
    3

    Compare 2 columns and highlight the new value,

    Hello,
    This is my first post on the forum, so i want to Say Hello!
    Nice Forum!
    I need some help since i get lost searching for a solution.
    I need to work with 2 xls files i will call them xls1 and xls2. Xls is a master list that has one column with unique names, and the xls has another column inside that can have the same values and new values. I need to highligth these new values. on the 2nd xls.
    Can someone help me with this? :-S

    Thanks in advance!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare 2 columns and highlight the new value,

    Welcome to the forum.

    Sure, we can help you out. How about attaching 2 sample files - 1 each for both your .xls files?

    To Attach a File:

    1. Click on Go Advanced.
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    buenos aires
    MS-Off Ver
    2010
    Posts
    3

    Re: Compare 2 columns and highlight the new value,

    Hi,
    I just attached 2 files as example, xls1 is my master, and xls2 is a report i have to run monthly, so then i need to compare with the master and on the xls2 highlight the new entries (the ones that are not present on xls1)

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare 2 columns and highlight the new value,

    Which columns in both the files need to be compared to highlight the new values?

  5. #5
    Registered User
    Join Date
    05-07-2012
    Location
    buenos aires
    MS-Off Ver
    2010
    Posts
    3

    Re: Compare 2 columns and highlight the new value,

    column b from xls1 and column c on xls2, highlight the new values on the column c

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare 2 columns and highlight the new value,

    Try this code. Copy this code to workbook xls2. It will copy the contents of xls1 to a temp worksheet. Then it will copy the contents of xls2 to the temp worksheet and compare both. The result will be provided in the temp worksheet.
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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