Sum only Unique values based on criteria in excel

Anonymous
2023-10-08T05:18:37+00:00

Is there a way only unique values are totalled based on a criteria?

For e.g. in this table, if I want to add only unique values at an "ID" level, it should be 510. But the current output is doubling.

Similarly, if I want to add only unique values at a "Concat" level, then it shoud be 350, but currently it is doubling or tripling based on the data.

Microsoft 365 and Office | Excel | For business | 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
{count} votes
Answer accepted by question author
  1. Anonymous
    2023-10-09T06:46:30+00:00

    It should work.

    1 person found this answer helpful.
    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2023-10-08T07:26:07+00:00

    =SUM(UNIQUE(FILTER(value_column, id_column=specific_id)))

    =SUM(UNIQUE(FILTER(value_column, concat_column=specific_concat)))

    0 comments No comments
  2. Anonymous
    2023-10-08T08:05:35+00:00

    =SUM(CHOOSECOLS(UNIQUE(FILTER(A4:G11,B4:B11=I4)),6))

    Image

    .

    =SUM(CHOOSECOLS(UNIQUE(FILTER($A$4:$G$11,$C$4:$C$11=I7)),6))

    Image

    0 comments No comments
  3. Anonymous
    2023-10-08T10:36:07+00:00

    thank you!

    Is there also a way i can get such a summation for each line?

    e.g. 510 on each row from H4 to H11 and 160 on each row from i4 to i7 and 350 on each row from i8 to i11?

    0 comments No comments
  4. HansV 462.4K Reputation points MVP Volunteer Moderator
    2023-10-08T10:46:26+00:00

    In H4:

    =SUM(UNIQUE(FILTER($F$4:$F$11, $B$4:$B$11=$B4)))

    In I4:

    =SUM(UNIQUE(FILTER($F$4:$F$11, $C$4:$C$11=$C4)))

    Fill down to row 11.

    0 comments No comments