+ Reply to Thread
Results 1 to 6 of 6

Automated comparison between two columns

  1. #1
    Registered User
    Join Date
    06-22-2010
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    6

    Automated comparison between two columns

    Hello all,

    I'm very new to using macros in Excel and as wondering if anyone might be able to give some advice.

    Basically, it's a matter of security - I have two spreadsheets, each of which contains a list of usernames and a list of accesses to systems associated with that username. I need to compare the accesses for each user and come up with a list of differences between the spreadsheets. For example, the first spreadsheet says Suzy has access to A, B, and C. The second says she has access to B, C, and D. That needs to be picked up and documented.

    Part of the issue is also that the spreadsheets are formatted slightly differently. I'm not sure if that matters or not...

    Any help would be greatly appreciated.

    Thanks!
    Laura
    Last edited by Laura C; 06-22-2010 at 03:27 PM.

  2. #2
    Registered User
    Join Date
    06-22-2010
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    6

    Re: Automated comparison between two columns

    Ok, so I actually found a snippet of code that does comparisons and points out the differences (here's the link: http://www.exceltip.com/show_tip/Cel...Excel/477.html)

    My question now is how can I apply it to my spreadsheet? Any suggestions? I can post an example of the spreadsheet if that would be helpful to look at..

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Automated comparison between two columns

    Welcome to the forum, Laura.

    People are going to be hard pressed to help wihout seeing the layout. Post a workbook with sanitized data and an example of desired results.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    06-22-2010
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    6

    Re: Automated comparison between two columns

    Thanks, shg.

    Does this help?Example.xls

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Automated comparison between two columns

    In the attachment, I inserted the two columns labeled Formula, and added and copied down the formulas shown. Then I selected the two cells labeled Formula and entered "keys" (sans quote) in the Names box, left of the formula bar, then pressed the button to run the macro AlignKeys, which is installed in the workbook. The result is what you see: like items are aligned.

    You can paste your data from your other workbooks, copy the formulas in cols A and D down to the end of each dataset, and push the button.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-22-2010
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    6

    Re: Automated comparison between two columns

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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