How can I sum values while ensuring no duplicates?

sirnickalot

New Member
Joined
Sep 26, 2016
Messages
2
I've thought that the new =maxifs() function could help me here but I do not have access to it yet in my version of excel.
Basically I have a very large data set from which I need to sum some specific values based on a number of criteria. I've used =sumifs() until now, but every so often there are duplicates which cause double or even triple counting and skews the end result.

For example:
ABCDEFGHIJKL
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015All Other Applicable ESS Riders USD0193.97
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Total KWH247200
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Fuel USD0594.76
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Transmission Demand Chg USD098.81
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Dist Serv Demand Charge USD47.20
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015All Applicable Distribution Riders USD013.11
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Dist Serv Demand Charge USD01.98
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Dist Serv Demand Charge USD0169.8
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Sales and Use Surcharge USD015.08
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Total KWH247200
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Electricity Supply KWH0631.85
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Basic Customer Charge USD022.58
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Late Payment Charge USD07.76
DVSPIDLocation 1Account 1Meter 1Tariff 111/19/201512/21/201512/23/2015Total KWH2472034.14

<tbody>
</tbody>


I would be looking for the value in column K associated with "Total KWH" for this date, location, account, meter, etc. but would only want the value 24720 returned once.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Can you put in a helper column, for example in column M?
Formula for column M2 (drag down):
Code:
=K2/IFERROR(COUNTIFS(Same criterias as in your SUMIFS),1)
Then just SUMIFS column M instead...
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,444
Members
449,226
Latest member
Zimcho

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