Results 1 to 2 of 2

Comparing rows in two sheets

Threaded View

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Udevalla, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    85

    Comparing rows in two sheets

    Hi.

    I have two sheets with alot of entries that I want to compare and get the results in a third sheet. So what I need is a macro that can do this.
    Its a little bit complicated but I'll try my best to explain.

    I have two sheets:
    Sheet A contains the list of entries that I want to compare with.
    Sheet B contains the master list or database if you will.

    What I want to do is to take the first row in Sheet A, copy it to a third sheet named C. Then compare the value in column B in that row with all column B values in Sheet B (the database). If a match is found, the row that contains the cell which matched is copied and pasted under the original row from Sheet A.

    So in Sheet C it would look something like this:

    Row 1, Sheet A: Type LAA
    match 1 in sheet B
    match 2 in sheet B
    match 3 in sheet B
    etc..

    Row 2, Sheet A, Type LA2
    match 1 in sheet B
    match 2 in sheet B
    etc.


    Thanks for any help on this. Its been driving me crazy

    EDIT: I have now made a test xl file that hopefully is of help! See attachment.
    Attached Files Attached Files
    Last edited by Carlsbergen; 09-04-2009 at 03:38 AM. Reason: Added attachment

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