Sum values based on multiple unique criteria

Bobmufc08

New Member
Joined
Feb 23, 2017
Messages
2
Hi chaps,
In worksheet 1 I have the below data. In worksheet 2 in cell A1 I have the date 01/01/2017.
Using the EOMONTH function I am able to refer to the date in A1 to sum the whole of January 2017 in my data.

I need to sum column E below, however I only want to sum column E once for every occasion where the contents of columns A C & D are duplicated.
For example, 03/01/2017 below should total 9 rather than 18 because A C & D are all the same. Where as 05/01/2017 should total 14 because even though column A is the same, C & D are different.

In addition to this, where column B is blank I don't want it summed at all, regardless of the contents of columns A C & D.

I've tried adapting various sum/frequency/sumproduct formulas with little progress so far.
Is my goal here actually achievable without the use of macros? Any help much appreciated :)
Thanks


ABCDE
01/01/2017Customer ATeacher 1Course A9
01/01/2017Customer BTeacher 1Course A9
01/01/2017Customer CTeacher 1Course A9
03/01/2017Customer DTeacher 2Course A9
03/01/2017Customer ETeacher 2Course A9
05/01/2017Customer FTeacher 3Course B5
05/01/2017Customer GTeacher 4Course A9
08/01/2017Teacher 2Course C10
09/01/2017Customer HTeacher 1Course C10


<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You need to create a "helper" column. Paste this in column F or something. =IF(A3=A2,"",SUM(E2:E3))
 
Upvote 0
You need to create a "helper" column. Paste this in column F or something. =IF(A3=A2,"",SUM(E2:E3))
Cheers boochang, doesn't this rely on the data set being sorted in date order though? It also doesn't appear to consider the contents of columns C & D.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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