+ Reply to Thread
Results 1 to 4 of 4

Sum the difference in amounts if items are in two tables

  1. #1
    Registered User
    Join Date
    12-02-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    21

    Sum the difference in amounts if items are in two tables

    I have two tables that have data. One has estimated amounts and one has actual amounts. So, suppose I have a person (Steve) that we anticipate will buy oranges for $4 (Worksheet 1), but he actually buys the oranges for $5 (worksheet 2). The difference is $1. What I want to do is to add up all of the differences between worksheet 1 and worksheet 2, but only when the person on worksheet 2 matches worksheet 1. By that I mean, if we have Oscar on worksheet 1, but not on worksheet 2, we don't need to worry about him. To add to this, I also only want to add the difference if the currency is a certain currency (USD). I'm attaching a file so you can see.

    Can someone help me with the right formula? I'm thinking sumproduct will work, but I don't understand that formula enough to make it work.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-25-2012
    Location
    France
    MS-Off Ver
    O365
    Posts
    1

    Re: Sum the difference in amounts if items are in two tables

    Hello steinfm,

    A try within the joined file.
    The formula in cell I2 (to drag down) is:
    Please Login or Register  to view this content.
    The formula in cell I1 is:
    Please Login or Register  to view this content.
    The custom cell format for the cells I2 to I15 is:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by myapple; 10-25-2012 at 10:11 PM.

  3. #3
    Registered User
    Join Date
    12-02-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Sum the difference in amounts if items are in two tables

    Thank you for the input, but your solution requires that I record the formula in each row. The file is quite large and what I really want is not the individual line difference, but rather the total difference. How can I do it to just get the total? Will a sumifs work?
    Last edited by steinfm; 10-26-2012 at 03:29 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Sum the difference in amounts if items are in two tables

    Try in E2 cell of Estimate sheet

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it down.

    Refer the attachment file for details.

    Hope that helps!
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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