+ Reply to Thread
Results 1 to 2 of 2

Comparing Lists in Excel 2003

  1. #1
    Registered User
    Join Date
    11-26-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Comparing Lists in Excel 2003

    Hi Guys

    I have a workbook, with sheet 1 and sheet two. They both contain same amount of data and would like to compare the values on each to make sure they are the same.

    For example:

    Sheet1

    A
    -----
    1234
    1243
    3245
    5445

    Sheet2

    A
    -----
    1234
    1243
    3245
    5445

    Is there a formula that can compare these values and return "all match" if they all match and "different" if there is one or more that don't match. Also, is there a way of color coding the one that doesn't match?

    Ideally I would like the result to be displayed in one cell, so its easy to evaluate. (for example, if im comparing 3000 records, I can see that this one cell says "all match" and I dont have to look through the entire sheet)

    Any help would be much appreciated.

    Nish

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Comparing Lists in Excel 2003

    Hi,

    as for the color coding of matching cells, you need to assign the list of values in Sheet2 a range name, then select all cells on Sheet1 and use this formula for conditional formatting:

    =MATCH(A1,Sheet2Range,0)


    The sum of all matches between Sheet1 and Sheet2 can be calculated with

    =SUM(--(NOT(ISNA(MATCH(A1:A4,Sheet2Range,0)))))

    ... confirmed with Ctrl - Shift - Enter

    hth

+ 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