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:
[TABLE="width: 899"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]All Other Applicable ESS Riders USD[/TD]
[TD]0[/TD]
[TD]193.97[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Fuel USD[/TD]
[TD]0[/TD]
[TD]594.76[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Transmission Demand Chg USD[/TD]
[TD]0[/TD]
[TD]98.81[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]47.2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]All Applicable Distribution Riders USD[/TD]
[TD]0[/TD]
[TD]13.11[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]0[/TD]
[TD]1.98[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]0[/TD]
[TD]169.8[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Sales and Use Surcharge USD[/TD]
[TD]0[/TD]
[TD]15.08[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Electricity Supply KWH[/TD]
[TD]0[/TD]
[TD]631.85[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Basic Customer Charge USD[/TD]
[TD]0[/TD]
[TD]22.58[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Late Payment Charge USD[/TD]
[TD]0[/TD]
[TD]7.76[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]34.14[/TD]
[/TR]
</tbody>[/TABLE]
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.
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:
[TABLE="width: 899"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]All Other Applicable ESS Riders USD[/TD]
[TD]0[/TD]
[TD]193.97[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Fuel USD[/TD]
[TD]0[/TD]
[TD]594.76[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Transmission Demand Chg USD[/TD]
[TD]0[/TD]
[TD]98.81[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]47.2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]All Applicable Distribution Riders USD[/TD]
[TD]0[/TD]
[TD]13.11[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]0[/TD]
[TD]1.98[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Dist Serv Demand Charge USD[/TD]
[TD]0[/TD]
[TD]169.8[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Sales and Use Surcharge USD[/TD]
[TD]0[/TD]
[TD]15.08[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Electricity Supply KWH[/TD]
[TD]0[/TD]
[TD]631.85[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Basic Customer Charge USD[/TD]
[TD]0[/TD]
[TD]22.58[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Late Payment Charge USD[/TD]
[TD]0[/TD]
[TD]7.76[/TD]
[/TR]
[TR]
[TD]DV[/TD]
[TD]SPID[/TD]
[TD]Location 1[/TD]
[TD]Account 1[/TD]
[TD]Meter 1[/TD]
[TD]Tariff 1[/TD]
[TD]11/19/2015[/TD]
[TD]12/21/2015[/TD]
[TD]12/23/2015[/TD]
[TD]Total KWH[/TD]
[TD]24720[/TD]
[TD]34.14[/TD]
[/TR]
</tbody>[/TABLE]
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.