Summing column of values and including duplicates only once (with conditions).

lburbach2

New Member
Joined
Apr 2, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
1585846971749.png


I would like to sum a column of values, but only include one value if it comes from the same "date" and "time" column. In my problem, values are always duplicated when they have the same date and time. They may also be randomly duplicated with DIFFERENT date and times (this is okay, I would like to sum both in this case).

I would like to sum cells, C:2+C:3+C:5+C:6+C:7+C:9, (not C:4 or C:8 since they have the same date and time).
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
with Power Query
Rich (BB code):
// CalculatedSum
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Distinct = Table.Distinct(Source, {"Date", "Time"}),
    CSum = List.Sum(Distinct[Values])
in
    CSum
DateTimeValuesCalculatedSum
4/1/20204:21PM221
4/1/20204:27 PM4
4/1/20204:27 PM4
4/1/20208:36 AM6
4/1/20207:08 PM3
4/1/202010:12 PM2
4/1/202010:12 PM2
4/2/20201:08 AM4

PowerQuery add-in for XL 2010/2013, all above has PQ built-in
 
Upvote 0
Thank you for the response, but I do not have the option to install the Power Query command for my excel. I was wondering if there was any way to do it using a formula.
 
Upvote 0
I was not able to find a formula but I have a method through remove duplicate option,

Steps:-
1. Connvert Date and Time to Number format.
2. Concatenate Date, Time and Amount ( =A4&B4&C4) Using Ampersand)
3. Go to Home and search for Duplicates (Under Conditional formating)
4. Remove Duplicates under Data Tab.
5. Sum all the Data.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,037
Members
449,062
Latest member
mike575

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