+ Reply to Thread
Results 1 to 4 of 4

Sum Difference products in difference tables

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    12

    Sum Difference products in difference tables

    Dear All..
    Thanks for your view in advance.

    I got 2 table of products:
    For example:
    Table 1:
    Product No. Quantity
    101 10
    102 20
    103 30
    Table 2: (Its the movement of products)
    101 -1
    101 -2
    101 5
    102 1
    102 4
    104 35

    My purpose is to sum the balance of products 101,102,103,104
    My question is:
    (1). I think I should sum up table 2 first,, so the result should be:
    Table 2:
    101 2
    102 5
    104 3
    How should I do it?

    Then sum up table 1 and 2, so the result should be:
    101 12
    102 25
    103 30
    104 35

    This can be done by vlookup, but as product 103 does appear in table 2, and product 104 does not appear in table 1.
    Again how should I do it?

    Thanks so much~~

  2. #2
    Registered User
    Join Date
    08-18-2017
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    12

    Re: Sum Difference products in difference tables

    I have solved the first part.
    So now the problem is, I got 2 table
    1 is 2 is
    Product No. Quantity Product No. Quantity
    101 10 101 2
    102 5 102 20
    104 3 103 30

    How do I set a formula so that the result would be:
    101 12
    102 25
    103 30
    104 5

  3. #3
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Sum Difference products in difference tables

    Hi, molittlemo!

    Next time you should upload a sample Excel workbook showing us what you have and what you want to obtain.

    As per your post #2, If you have the first table in A1:D4, and second table in F2:G5 (putting you manually the Product No. 101 - 102 - 103 - 104), try this formula in G2:
    =SUMIF(A$2:C$4,F2,B$2:D$4)

    And drag it down. Blessings!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Sum Difference products in difference tables

    The results agree with your first post ... not your second. I believe the first one is correct.


    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Table1
    Table2
    101
    12
    =SUMIF(A:A,G1,B:B)+SUMIF(D:D,G1,E:E)
    2
    ProductNo.
    Quantity
    ProductNo.
    Quantity
    102
    25
    3
    101
    10
    101
    -1
    103
    30
    4
    102
    20
    101
    -2
    104
    35
    5
    103
    30
    101
    5
    6
    102
    1
    7
    102
    4
    8
    104
    35
    Dave

+ 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. Difference between 2 pivot tables
    By max_max in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-19-2017, 04:54 AM
  2. Replies: 8
    Last Post: 11-06-2013, 08:01 PM
  3. Difference between two pivot tables
    By slraik in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-23-2013, 02:21 AM
  4. Replies: 0
    Last Post: 10-07-2008, 10:45 PM
  5. Excel difference between 2 tables
    By quinnd6 in forum Excel General
    Replies: 1
    Last Post: 07-15-2007, 12:07 PM
  6. find difference between tables
    By Nadir Jaffan in forum Excel General
    Replies: 3
    Last Post: 02-20-2007, 06:16 AM
  7. Replies: 4
    Last Post: 07-26-2005, 10:05 PM

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