Label/Reference the repeated values

HTBC19

New Member
Joined
Dec 8, 2017
Messages
2
Hi,

Struggling to find a way of doing this so I'm open to suggestions!

[TABLE="width: 111"]
<tbody>[TR]
[TD]IR1.2.3[/TD]
[/TR]
[TR]
[TD]IR1.4.5[/TD]
[/TR]
[TR]
[TD]IR1.2.3[/TD]
[/TR]
[TR]
[TD]IR1.2.3[/TD]
[/TR]
[TR]
[TD]R15[TABLE="width: 111"]
<tbody>[TR]
[TD]IR1.4.5[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

The above is a sample list of references I'm usually working with, what I need to do is put in the column to the right the a label/reference to show the cumulative times a reference has occurred, from top to bottom, so it would look something like the below:

[TABLE="width: 222"]
<tbody>[TR]
[TD]IR1.2.3[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]IR1.4.5[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]IR1.2.3[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]IR1.2.3[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]R15[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]IR1.4.5[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]

I'm open to any and all solutions whether it be a formula or something in VBA.

Thanks
 

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.
Hi, welcome to the forum!

Here is one option.


Excel 2013/2016
AB
1IR1.2.31
2IR1.4.51
3IR1.2.32
4IR1.2.33
5R151
6IR1.4.52
Sheet1
Cell Formulas
RangeFormula
B1=COUNTIFS(A$1:A1,A1)
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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