Count occurrence of 2 value combinations

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
[TABLE="width: 113"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]6[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I am trying to create a formula for the 3rd column. The 3rd column counts the occurrences of the same combinations in the first two columns. For example, in row 4 the formula has recognised that 'W1-A' and '1' have occurred in columns 1 and 2 respectively for the 2nd time and it returns a count of 2 for the 3rd column. In row 5 it returns a '3' as that combination has now occurred 3 times.

Can anyone help with a formula that would be able to make these counts in column 3.

Thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try

Excel 2013/2016
ABC
19W1-A11
20W1-A21
21W1-A31
22W1-A12
23W1-A13
24W1-A32
25W1-A41
26W1-A51
27W1-A61
Sheet2
Cell Formulas
RangeFormula
C19=COUNTIFS($A$19:$A19,A19,$B$19:$B19,B19)
 
Upvote 0
Thanks very much Fluff, problem solved. You're a great help

Dan
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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