+ Reply to Thread
Results 1 to 11 of 11

How to sum comparing two lists and return differences?

  1. #1
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    How to sum comparing two lists and return differences?

    Hi All,

    I have two lists which need to compare the total units in each package to ensure those packages have the correct total units. If the total units in each package is tally, then it will return to "Match", if not, will turn to "Not Match"

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: How to sum comparing two lists and return differences?

    I am not understanding why some of the matches you have declared as not match.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to sum comparing two lists and return differences?

    Hello Sir,
    Thank you for ur response

    U will see in the total package of two data lists as belows:
    Data 1:
    Package 1 = 3
    Package 2 = 4
    Package 3 = 7
    Package 4 = 4
    Package 5 = 7

    Data 2:
    Package 1 = 4
    Package 2 = 4
    Package 3 = 7
    Package 4 = 5
    Package 5 = 9

    So only package 2 & 3 have the same units, then these two package return to "Match" while the rest of package return to "Not Match" as got difference total unit in each package.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: How to sum comparing two lists and return differences?

    Try this,

    E4
    =IF(SUMIF([Package],[@Package],[Unit])=SUMIF(Table2[Package],[@Package],Table2[Unit]),"Match","Not Match")

    copied down.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: How to sum comparing two lists and return differences?

    Please try in E4 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 07-12-2023 at 10:06 PM.

  6. #6
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to sum comparing two lists and return differences?

    Hello Sir,

    Thank you for your response. However, the formula seems to be error if I put the total unit of each product code.
    Pls see the attached which I highlighted in yellow color as the total qty is correct, but still showing "Not Match".Attachment 836324

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: How to sum comparing two lists and return differences?

    Yout attachment is invalid, please upload your attachment via Go advanced and manage attachments. See yellow banner at the top of this page.

  8. #8
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to sum comparing two lists and return differences?

    It works perfectly.
    Thank you!

  9. #9
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to sum comparing two lists and return differences?

    Here is the data Sir.
    Attached Files Attached Files

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: How to sum comparing two lists and return differences?

    I misunderstood you, but Windknife got you right. Please try his formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    All credits to Windknife.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to sum comparing two lists and return differences?

    Quote Originally Posted by HansDouwe View Post
    I misunderstood you, but Windknife got you right. Please try his formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    All credits to Windknife.
    Thank you so much for your kind response and help Sir.
    I am post another new thread about sum rank if you don't mind to help.
    Last edited by Manith; 07-13-2023 at 01:49 PM.

+ 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. Comparing two lists and extracting differences
    By irbadatvba in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2019, 05:34 PM
  2. Add or remove info to lists and highlight differences between two lists
    By alipezu in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 03-30-2014, 08:51 PM
  3. [SOLVED] Comparing two sheets for differences
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2013, 06:43 AM
  4. [SOLVED] Comparing 2 Lists to Identify Differences
    By ORRACLE1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2012, 02:26 PM
  5. Comparing 2 lists of IPs to return sum of orders
    By atomiccow in forum Excel General
    Replies: 3
    Last Post: 02-06-2012, 04:21 PM
  6. Comparing differences between two columns
    By MI_Analyst in forum Excel General
    Replies: 1
    Last Post: 11-02-2010, 06:51 AM
  7. Comparing two lists and return specified data
    By Clement in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2006, 02:30 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