+ Reply to Thread
Results 1 to 5 of 5

SUMIFS and exclude Duplicates with a table reference

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Milan, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    SUMIFS and exclude Duplicates with a table reference

    I am trying to use SUMIFS, but want to exclude duplicate values. I have the following formula:
    =SUMIFS(GOStat[Check Amt],GOStat[OfferID],[@SubmissionID],GOStat[Status],"<>Cancelled",[OfferID],"<>[@OfferID]")

    This formula works up to the last arguments ",[OfferID],"<>[@OfferID]". When I added this I get '#VALUE!' in all of the results.

  2. #2
    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
    53,047

    Re: SUMIFS and exclude Duplicates with a table reference

    Hi and welcome to the forum

    I would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Forum Contributor
    Join Date
    03-11-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: SUMIFS and exclude Duplicates with a table reference

    Wouldn't you only need one or the other of those statements?

  4. #4
    Registered User
    Join Date
    06-06-2013
    Location
    Milan, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: SUMIFS and exclude Duplicates with a table reference

    Here is the file I am working with for reference.
    If you scroll down to row 40, you will notice rows 40-42 have the same OfferID. I am trying to only display the sum for the 1st occurance of the OfferID. Right now, if the argument, ",[OfferID],"<>[@OfferID]" is removed, I get totals in the GO Amt column, but the duplicate OfferIDs are rolled into the sum.


    Recon.xlsx

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIFS and exclude Duplicates with a table reference

    I made an new column J (header COUNT) to determine the first offerID.

    You can use that value in your further calculations.

    Since I don't understand what you want to achieve, I didn't make that for you.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * 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