Share via

Excel Formula Help

Anonymous
2018-06-15T13:35:15+00:00

I currently have the following formula is place:

=SUMIF(AUM!$C:$C,$A484,AUM!K:K)

On my Summary Sheet, column A is the name of a person. ($A484)  

On the AUM sheet, column C is the name of that same person. (AUM!$C:$C)

On the AUM sheet, column K is the value of multiple accounts. (AUM!K:K)

Some people have multiple accounts and the formula does a perfect job grabbing the total value for the person. 

The issue is when a person has duplicate accounts, the formula counts the value twice. 

I need to ignore duplicate account values.  

Example Below: 

Summary Sheet

Name Total Value
John Doe 550
Mike Smith 600 WRONG
350 CORRECT

AUM Sheet

Name Acc # Value
John Doe 1234 250
John Doe 4321 300
Mike Smith 7777 100
Mike Smith 8888 250
Mike Smith 8888 250
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2018-06-16T07:06:34+00:00

    Hi,

    Here's the PowerPivot solution.  Try this measure

    =SUMX(SUMMARIZE(VALUES(Table1[Acc #]),[Acc #],"ABCD",MIN(Table1[Value])),[ABCD])

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2018-06-15T19:40:58+00:00

    Try using a finite range instead of entire columns, e.g.

    =SUMPRODUCT(IFERROR(1/COUNTIFS(AUM!$C$2:$C$100,$A484,AUM!$F$2:$F$100,AUM!$F$2:$F$100),0),AUM!$K$2:$K$100)

    This works for me. (Don't forget to confirm the formula with Ctrl+Shift+Enter)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-06-15T17:34:18+00:00

    I want to avoid a helper column b/c we are pulling the data and dumping into the sheet. 

    HansV - I tried the formula above and enter this on mine : 

    =SUMPRODUCT(IFERROR(1/COUNTIFS(AUM!C:C,$A484,AUM!F:F,AUM!F:F),0),AUM!K:K)

    This returned a 0. 

    The account numbers are in F. 

    I also tried this on another person that does not have duplicates and it returned a 0.

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2018-06-15T16:27:16+00:00

    The solution with a helper column is very nice, but if you want to avoid that, you can use the following array formula, confirmed with Ctrl+Shift+Enter:

    =SUMPRODUCT(IFERROR(1/COUNTIFS(AUM!$C$2:$C$30,$A484,AUM!$D$2:$D$30,AUM!$D$2:$D$30),0),AUM!$K$2:$K$30)

    I have assumed that the account numbers are in column D of the AUM sheet. Adjust the ranges as needed, but I'd avoid using entire columns for reasons of performance.

    Was this answer helpful?

    0 comments No comments
  5. Vijay A. Verma 104.9K Reputation points Volunteer Moderator
    2018-06-15T16:20:52+00:00

    If you are open for Helper column, job will be very easy...

    Use below formula (You need to change cell references)

    =SUMIFS($C$2:$C$10,$D$2:$D$10,1,$A$2:$A$10,F1)

    Formula in D2 for helper column is

    =COUNTIF($B$2:$B2,$B2)

    Was this answer helpful?

    0 comments No comments