+ Reply to Thread
Results 1 to 4 of 4

Summing with Duplicates

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Summing with Duplicates

    Hi,

    In columns A:C I have sales data for 2 regions as well as the product names associated with the region and would like in cell F1 to create a formula to sum the regional sales.

    The wrinkle is that because the data is arranged by product, there is duplication of regional sales values. E.g. UK is represented twice so simply summing the values in column C associated with UK will double-count the 200.

    I can't simply filter out unique values in column C because if I were to add, for example, North America to the sample data which also had sales of 200, then that would not be counted.

    Can someone please suggest a solution?

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 06-10-2023 at 09:28 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Summing with Duplicates

    Maybe:

    =SUM(FILTER(C2:C5,MAP(B2:B5,LAMBDA(x,COUNTIF(B2:x,x)))=1))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Summing with Duplicates

    Thanks Glenn!

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

    Re: Summing with Duplicates

    Another possibility, please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Duplicates and summing separate Lines
    By Russtuff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-05-2020, 08:57 PM
  2. [SOLVED] Summing duplicates excel.
    By stax67 in forum Excel General
    Replies: 22
    Last Post: 08-13-2019, 08:49 AM
  3. [SOLVED] Summing to Avoid Duplicates
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 07-08-2019, 05:18 PM
  4. Summing duplicates in an array
    By obrieh in forum Excel General
    Replies: 1
    Last Post: 01-25-2016, 01:10 PM
  5. [SOLVED] Help with Summing Duplicates, deleting rows after summing and filling col. for unsummed
    By solidrock1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 09:11 AM
  6. [SOLVED] add two list togeter and summing duplicates
    By DRFILL in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-17-2012, 03:17 AM
  7. Duplicates and summing totals
    By KRayKeeling in forum Excel General
    Replies: 2
    Last Post: 07-12-2007, 01:49 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