Formula to generate Serail numbers based on group count

excelsishya

Board Regular
Joined
Jul 25, 2010
Messages
107
Hi all,

I am in need of dynamic formula which generates serial numbers based on group count.

Could anyone help with formula or link to same if formula is already posted here ?

customer names
A
A
A
B
C
C
D
D
D

These are there in column A staring from A2

Desired Result in Column B

A 1
A 2
A 3
B 1
C 1
C 2
D 1
D 2
D 3

Currently i am using non dynamic method.


Where i will use countif in column b (starting at b2) and in c column (starting at c2) logical formula to check if b2=b3 then i filter column c for true and selecting visible cell in column b i delete counif numbers.

now i left with blanks at column b at true juncture now i filter blanks in col b go to last visible cell uses last cell value mines 1 to get result

I guess there must be better way of doing this could any one post dynamic formula?

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I can't make sense of your description of what you are doing now, but just looking at the desired results, doe this formula (copied down) not do what you want?

Excel Workbook
AB
1A1
2A2
3A3
4B1
5C1
6C2
7D1
8D2
9D3
10
Serial Numbers
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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