+ Reply to Thread
Results 1 to 3 of 3

SUMIF and Exclude Duplicates

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    SUMIF and Exclude Duplicates

    I am trying to create a formula that will give me the sum of of Column E while allowing duplicates in Column A but not allowing duplicates in Column B and Column C. For example in cell F2 & F6 should have a value of 8, cell F3 should have a value of 3, so on and so forth.
    SUMIF and Eliminate Duplicates.PNG

    F2 & F6 is 8 because...
    Step 1: Column A has 4 options for the date 8/1/2016

    SUMIF and Eliminate Duplicates 1.PNG

    Step 2: Column C has 3 options for 'P558 Gas BE' matching 8/1/2016 and eliminating any duplicates

    SUMIF and Eliminate Duplicates 2.PNG

    Step 3: Column B has 2 options matching Step 1 & Step 2 and eliminating any duplicates

    SUMIF and Eliminate Duplicates 3.PNG

    and the sum of E2 and E7 is 8

    I am just not sure how to write a formula for column F that will do this for me. Any help is greatly appreciated.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: SUMIF and Exclude Duplicates

    Hello,

    create a helper column. That will be much easier to maintain than a huge, complex formula.

    Count how many times the data in column B has appeared up to the current row. In cell H2

    =countif($B$1:B2,B2)

    Copy down.

    Now you can create a Sumifs formula with the criterion that column H equals 1.

    =SUMIFS($E$2:$E$6,$A$2:$A$6,A2,$C$2:$C$6,C2,$H$2:$H$6,1)

    2016-08-13_15-26-17.gif

    You can hide the helper column.

    cheers, teylyn
    Last edited by teylyn; 08-13-2016 at 07:40 PM.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: SUMIF and Exclude Duplicates

    For what it's worth, I agree with teylyn's approach here. yes there are some fancy, coplex formulas that will do this for you all in 1 go, but if you dont understand how they work, you wont be able to maintain them later. helpers can be simple and save a lot of effort
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. INDEX formula to exclude duplicates
    By adamheon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2016, 11:34 AM
  2. [SOLVED] Attempting to exclude duplicates
    By Aerodynamix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-23-2016, 12:35 PM
  3. SUMIFS and exclude Duplicates
    By Mark929 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2015, 01:06 PM
  4. [SOLVED] Sum exclude duplicates if below each other
    By stimpy123 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2014, 10:35 AM
  5. SUMIFS and exclude Duplicates with a table reference
    By GOQC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2013, 01:24 PM
  6. Sum column exclude duplicates
    By ryan@csi in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-18-2009, 02:40 PM
  7. [SOLVED] Count 350 SS numbers, exclude duplicates
    By Marsha in forum Excel General
    Replies: 5
    Last Post: 03-07-2005, 02:06 PM

Tags for this Thread

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