+ Reply to Thread
Results 1 to 2 of 2

Getting duplicated from two sheets and outputting the difference of their associated costs

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Getting duplicated from two sheets and outputting the difference of their associated costs

    Hello,

    I have an excel file with 2 spreadsheets. Each has two columns. Column A has a name and Column B is a list of costs associated with each name.
    I need to write a macro which finds all duplicates in Column A of both sheets and outputs that onto a third sheet. Then I need the macro to also subtract Sheet2's cost from Sheet1 and output that as well onto the third sheet. It should get the difference for each name. Then rearrange the data alphabetically.

    Example
    Sheet1 Sheet2 Sheet3
    Jane 1 David 5 Alice 1
    Alice 2 Jane 3 David 5
    Mark 4 Alice 1 Jane -2
    David 10 John 4


    Here is my code so far:
    Please Login or Register  to view this content.
    Any help is appreciated!
    Thanks so much!
    Last edited by Cutter; 08-27-2012 at 04:10 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Getting duplicated from two sheets and outputting the difference of their associated c

    @ Jessica007

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ 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