Sequential Numbering Based on Other Columns

*shudder*

Well-known Member
Joined
Aug 20, 2009
Messages
510
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

I am looking to implement some form of automatic sequential numbering in column A to provide unique ID's based on the contents of two other columns. I have looked at various formulas options to achieve this, however they all seem alter the numbers if I sort or filter the data.

Example data set:

ID_EMPRegionBranchEmployeeID_REGID_BRA
101_1001_001NorthGlasgowSmith, Paul1011001
101_1001_002NorthGlasgowMcKie, Tam1011001
101_1002_001NorthEdinburghJones, John1011002
101_1003_001NorthFifePatel, Jo1011003
102_1004_001SouthLondon 1Kaur, Mike1021004
102_1005_001SouthLondon 2Jones, John1021005
102_1005_002SouthLondon 2Smith, Paul1021005
103_1006_001EastNorwichHerd, Peter1031006
104_1007_001WestExeterSmith, John1041007

Can anybody give me a steer of how this can be achieved?

Many thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I have looked at various formulas options to achieve this, however they all seem alter the numbers if I sort or filter the data.
Yes, if you have formulas, they are dynamic, so if you change the sort order of your data, the values being returned by those formulas probably will change.
You may want to use VBA to create hard-coded ID numbers instead of using formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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