Giving Cells Sequential Reference Values

cwhaley1

New Member
Joined
Nov 22, 2017
Messages
35
Hi all.

In my mind, I imagine a table with two columns... column A with a list of names, column B with a unique reference to identify how many times that name has appeared. Rather than summing the total number of times the name has appeared, I'd like a running total rather like the below:

NAME REFERENCE

Dave 1
Dave 2
Dave 3
Alan 1
Alan 2
John 1
Simon 1
Simon 2

I've tried with COUNTIF but was only able to get a running total rather than the sequential list as above. Each name will only appear in a group as above and would only be entered once (in the real data, the name is a unique project number).

Can anybody help with the right formula I should be using?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
(in the real data, the name is a unique project number).
Try

in B1
Code:
=IF($A$1:$A$8=A1,COUNTIF(A1:A$1,A1),"")
in F1
Code:
=COUNTIF($A$1:$A$8,E1)

ABCDEF
1Dave1Dave3
2Dave2Alan2
3Dave3John1
4Alan1Simon2
5Alan2
6John1
7Simon1
8Simon2

<tbody>
</tbody>
 
Upvote 0
Thanks both for posting this. I used mikerickson's suggestion as he very kindly posted that suggestion first. It works well for what I need it for and has helped me in sorting my data.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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