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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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