Summing unique value using daytime as criteria

Luc_69

New Member
Joined
Apr 17, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi All - I need to know how to sum unique values and use the date as a criteria or filter. For example

Xcel_table_1.JPG



Ive been trying something like productsum(1/countif(value_range,value_range),value_range) but thats as far as I get ??

Any ideas ??
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi and welcome to MrExcel!

How about with array formula:

Dante Amor
ABCDEF
1DATEVALUESOLUTIONFORMULA
202-feb4002-feb110
302-feb1003-feb210
402-feb10
502-feb10
602-feb60
703-feb90
803-feb40
903-feb20
1003-feb20
1103-feb60
Hoja10
Cell Formulas
RangeFormula
F2:F3F2=SUM(IF(FREQUENCY(IF($A$2:$A$11=E2,MATCH($B$2:$B$11,$B$2:$B$11,0)),ROW($B$2:$B$11)-ROW($B$2)+1),$B$2:$B$11))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Hi and welcome to MrExcel!

How about with array formula:

Dante Amor
ABCDEF
1DATEVALUESOLUTIONFORMULA
202-feb4002-feb110
302-feb1003-feb210
402-feb10
502-feb10
602-feb60
703-feb90
803-feb40
903-feb20
1003-feb20
1103-feb60
Hoja10
Cell Formulas
RangeFormula
F2:F3F2=SUM(IF(FREQUENCY(IF($A$2:$A$11=E2,MATCH($B$2:$B$11,$B$2:$B$11,0)),ROW($B$2:$B$11)-ROW($B$2)+1),$B$2:$B$11))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.

Thanks for that - it works !
 
Upvote 0
??? I am puzzled by the mathematics, could someone please tell me why the results aren't F2 = 130 and F3 = 230?
 
Upvote 0
I am puzzled by the mathematics, could someone please tell me why the results aren't F2 = 130 and F3 = 230?

@Luc_69 only needs to sum the unique values:

I need to know how to sum unique values and use the date as a criteria


Dante Amor
AB
1DATEVALUE
202-feb40
302-feb10
402-feb10
502-feb10
602-feb60
Hoja10


In this case the value "10" is repeated, only one value should be considered, then: 40 + 10 + 60 = 110
 
Upvote 0
@Luc_69
Your post has been reported as being cross posted with another site.

Whilst we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: > (Message Board Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please provide the link(s) ASAP.
 
Upvote 0
@Luc_69
Your post has been reported as being cross posted with another site.

Whilst we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: > (Message Board Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please provide the link(s) ASAP.
Sorry about that - I should have read the fine print but was in a hurry to get an answer. Will not do again
Below is the link to another board
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
Hi DanteAmor - with the solution you provided, I have the CSE every cell ( Ive got about 500 cells to do) - is there are way to bulk CSE these cells ??
 
Upvote 0
You just have to do CSE in the first formula.
Then you can copy or drag the formula.
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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