Return next sequential number with prefix - prefix varies

Dani_RF

New Member
Joined
Nov 14, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a worksheet which has a job numbering sequence whereby I need to know the next job number that's available.
There are 3 different pre-fixes required, and the job numbers are sequential for each prefix.

Prefix refers to a different brand in the business.

For example;
Prefixes:
MDML
MJF
ULP

Number sequence:
000-001, 000-002, 000-003 etc

So one brand's first job number is MDML-000-001 and is sequential from there.


Issue is, we are tracking all job numbers on the one sheet as each brand is under the same company name.
We need to allocate the next sequential number for that brand automatically.


I wanted to have a drop down in say cell A:3 to select the brand, then populate B:3 with the next sequential number for that brand.
I have tried dependant dropdowns, but its too manual and chances for duplication is too high.

Is there a way to do this without manually having to check what number we are up to?

1668406421501.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
If last three exceeds 999 then instead of previous formula you can use
In B3 then copy down.
Excel Formula:
=A3&"-"& TEXT(COUNTIF($A$2:$A3,$A3),"000-000")
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
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