Creating a numbered list based on value in another column

Legxnd

New Member
Joined
Nov 18, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have been struggling with what to do for this and was wondering if somebody could help me. I currently have a very large spreadsheet with almost 1000 entries. In one column, I have about 10 different possible values that it could be depending on which service it belongs to. I would like the formula to first identify which service it belongs to, and then based on each service provide a number 1 through however many rows belong to that service in order.

For example:

1637264562788.png


So I would like the macro to first identify which group each row belongs to based on their service column, and then create a numbered list based on the amount of people who belong to each service. The list doesn't necessarily have to be "numbered", I just need to be able to count from 1-Total# of entries for each service. I hope this makes sense. Please let me know if you have any other questions. Thanks in advance!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I would like for the macro to edit the name column with the number of each service they apart of. Thanks again!
 
Upvote 0
So, is all that you want to do is add a number in front of each name?
Exactly what range is your data found in?
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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