+ Reply to Thread
Results 1 to 3 of 3

Designing a function/macro that compares 2 columns and highlights rows that are missing

  1. #1
    Registered User
    Join Date
    02-05-2014
    Location
    new jersey
    MS-Off Ver
    Excel 2013
    Posts
    1

    Designing a function/macro that compares 2 columns and highlights rows that are missing

    Hi Everyone,

    Here's my situation, I'll try to be as clear as possible. I have two tables of data in my workbook on separate sheets. The first sheet, "Accounts Master" is a master list that is updated monthly. The second sheet "Current Accounts" contains the same info (in a different order), but it is added to as accounts are added into the system. Both lists will be expanding in quantity as the months go by, in case that's relevant.

    Here are the two sheets side by side for reference.

    Excel Help.jpg

    Ideally, what I'd like to do is have the master list "consult" the current list and see if there are any accounts on the master list that are not on the current list. If the account is missing, I would like to highlight that row in a yellow color on the master list.

    Incase it's not clear from the picture, the account #'s begin at E11 on the "Current Accounts" sheet and on the "Accounts Master" sheet the #'s begin at B10

    I have tried to adapt some similar macros from the board to fits my needs but I have been having a lot of trouble because I am very inexperienced with macros.

    I would really appreciate any help you guys could offer. It would make my job 1000x easier!

    Thank you
    Attached Images Attached Images
    Last edited by jfk1991; 02-06-2014 at 12:56 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Designing a function/macro that compares 2 columns and highlights rows that are missin

    Hi and welcome to the forum

    Did you take a look at that jpg you uploaded??

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Designing a function/macro that compares 2 columns and highlights rows that are missin

    Cross posted
    http://www.mrexcel.com/forum/excel-q...s-missing.html
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Need a macro that compares 2 columns in 2 worksheets and can highlight any matches?
    By tomqueens in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2012, 10:50 AM
  2. Need Macro which compares the values between the rows in excel
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2012, 06:48 AM
  3. Error 2042-compares two columns in a sheet.
    By axecel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2010, 06:44 AM
  4. Macro Which Highlights Rows That Contain Identical First Cells
    By luu980 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2006, 09:03 AM
  5. [SOLVED] Is it possible to build macro that compares diff workbook columns
    By AMXAH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2005, 05:10 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