Count occurrence of 2 value combinations

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
617
Office Version
  1. 2019
Platform
  1. Windows
W1-A11
W1-A21
W1-A31
W1-A12
W1-A13
W1-A32
W1-A41
W1-A51
W1-A61

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>

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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

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