Help with filling Sr. Nos. based on some other criteria

sudeep

New Member
Joined
Nov 28, 2006
Messages
39
I have an excel file with 1st column having Sr. Nos.

Sr. No. Group Name
1 A Anand
1 C Bismillah
2 A Chintan
1 B D'Souza
2 B England
3 C Foolandevi
3 B Gavaskar
4 C Hindmata
4 B Icecream
3 A Iceland
4 A Jamunadas

Note how Serial Nos. are given. This is to accomplish getting correct Sr. Nos when filter is applied on a group. For example: If a filter is applied on group A the result is:

Sr. No. Group Name
1 A Anand
2 A Chintan
3 A Iceland
4 A Jamunadas

Presently, I am doing this manually and takes a long time and I also make errors.

Help is requested for doing this automatically, preferably by entering a formula in the cells instead of a macro.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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