Sum column whilst avoiding duplicates

hyd1956

New Member
Joined
Jun 26, 2020
Messages
49
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

Can you help with with a formula to sum entries within a column based on multiple criteria and avoiding counting duplicates.

Column E has the numbers I would like to sum when column V = "Y", Column A = "Y" and it is not a repeat entry based on the name held in Column B.

As a note, Columns A to U are part of a power query table.

Thank you
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Let's clarify this.

You want to SUM column E when column V is "Y" and column A is "Y" but only if the name in column B hasn't occurred before.
Is that correct?
 
Upvote 0
Here's one solution, not sure if it is suitable to your needs.
Use a Helper column, ie
in an empty column against each row that you have a value in B
let's use column D

in D1 put
=COUNTIFS(B$1:B1,B1)
and copy down the column
This will count the number of times the value in B occurs in the list.

Then for the total

=SUMPRODUCT((A1:A7="y")*(V1:V7="y")*(E1:E7)*(D1:D7=1))
 
Upvote 0
Solution
Thank you. I don't know why I didn't consider a helper column. The sum product option didn't calculate so I've used the sumifs option to include Column D:D, 1 and it seems to have done the trick
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top