Counting with 2 criteria up and down

FSalgueiro

New Member
Joined
Aug 16, 2018
Messages
2
SiteProductUOMProduct IDIDValueSaleCounter Results
APen92652580277587241121
APencil9
32266576

<tbody>
</tbody>
77586563

<tbody>
</tbody>
232
APen9471631117759590234
ASharpie94972663577592873183
BPen92652580277583416891
BRubber96071828860718288242
BPen9
62748567

<tbody>
</tbody>
60718288

<tbody>
</tbody>
23
BLight91235469882045666123

<tbody>
</tbody>
I am trying to run counting the numbers of the same site with the same product looking for up and down
records.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
dont understand the results and question

same site with the same product
A Pen = 2 you have 1
A Sharpie = 1 you have 3

can you expand
 
Upvote 0
In I2 control+shift+enter, not just enter, and copy down:

=SUM(IF(FREQUENCY(IF($A$2:A2=A2,IF($B$2:B2<>"",IF($C$2:C2=C2,MATCH($B$2:B2,$B$2:B2,0)))),ROW($A$2:A2)-ROW($A$2)+1),1))

For efficiency reasons, blank cells are not created.
 
Upvote 0
I2:
Code:
=SUM((A$2:A2=A2)/COUNTIFS(A$2:A2,A$2:A2,B$2:B2,B$2:B2))
Ctrl shift enter, copy down.
 
Upvote 0
just got 1 - 0.5 - 1 - 0.5 - 1 - 0.50 - 0.33 is not counting

See post #3 ...

Control+shift+enter means: Press down the shift and the control keys while you hit the neter key. When done successfully, Excel itself puts a pair of { and } around the formula in recognition.
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,375
Members
449,098
Latest member
Jabe

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