Numbering a list of families

II_Evgeniy_II

New Member
Joined
Dec 8, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. MacOS
Hey guys, please help me with this thing:

There is a table of customers, where people register not one by one but as a family (2-3 people in a family). Of course, all of them should have id, but this id should relate to the whole family, not to each person individually. So far we just put all the people in our table and manually change the color to people, belonging to one family (of course we put them in order) and then again, manually put the id. Is it possible to put automatic numbering that works in relation to last names. E.g. 3 people with surname Smith have id=1, then as soon as you input another surname, your id changes to 2 (in sequence). I am thinking about IF function here, but I am not sure, how to do that...
 

Attachments

  • Screenshot 2022-12-08 at 4.59.11 PM.png
    Screenshot 2022-12-08 at 4.59.11 PM.png
    67.9 KB · Views: 7

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi & welcome to MrExcel.
How about
Fluff.xlsm
AB
1NameId
2Doe1
3Doe1
4Doe1
5Snodgrass2
6Snodgrass2
7Snodgrass2
8Snodgrass2
9Snodgrass2
10Bloggs3
11Smith4
12Smith4
13Smith4
Main
Cell Formulas
RangeFormula
B2:B13B2=IF(A2=A1,B1,N(B1)+1)
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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