+ Reply to Thread
Results 1 to 2 of 2

Align and compare two list

  1. #1
    Registered User
    Join Date
    05-06-2013
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    7

    Align and compare two list

    I have an excel spreadsheet which (using macros) compares two lists and determines the difference in two of the columns.

    Specifically, the lists are of expenditures and appropriations on two different days. The practical reason for this is to see what has been adjusted from one day to the next in each account's expenses/appropriations.

    The macros work incredibly well, except when I add or delete an account.

    How it works now:
    1. The data is pasted into a tab (named for the month-day).
    2. Then the compare macro on the Compare tab is initiated using the Compare button.
    3. The Compare button initiates a prompt for the first day's tab name which is entered in the dialogue box, OK is clicked and then the second days tab name is entered and OK is clicked.
    4. This two lists are brought into the Compare tab and formulas calculate the difference between the amounts in the Expense and the Encumbrance columns of the two days.


    The Problem:

    In the attached file, on 2-13, there is no Account named "Fire insurance", but one has been added on 2-14. So when the macro pulls the data from the tabs and puts it in the Compare tab, it is mis-aligned because a new item has been added.

    I've looked at options for creating a "master list" based on the two Accounts columns and then using that to determine how to paste the two lists on the Compare tab, but I can't seem to get that to work.

    Any ideas or suggestions?

    Thank you,

    Tom
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-06-2013
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Align and compare two list

    I need to add a qualifications or maybe it is just a strong preference. The account lists are sorted in a particular way and it would be helpful if they could keep that arrangement. If this cannot be done, then I can work around it. Mainly the accunts are broken up into sections and have a subtotal with a line space between the sections.

    Thanks for any suggestions - even if they resort the lists.

    Tom

+ 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. Align and Compare stats help please
    By neo999 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-03-2013, 12:27 PM
  2. Need to compare 2 columns and align them next to the match
    By naenightlucky213 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-09-2013, 06:14 AM
  3. complex compare and align data help.
    By scriblesvurt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2007, 10:24 AM
  4. compare and align data
    By scriblesvurt in forum Excel General
    Replies: 1
    Last Post: 03-19-2007, 01:27 PM
  5. [SOLVED] Compare and align columns of data
    By JGouger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2005, 12:30 PM

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