Unique Sequential Numbers

Andy42k

New Member
Joined
Jan 4, 2023
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi all. I am trying to create a spreadsheet to keep track of different units that submit requests to my unit throughout the year with a unique sequential number. The units are designated by the numbers 1-22. I would like the sequential number to read as follows: 15 - 1 -23...the number 15 would the number of the unit making the request, the number 1 would the number request for the year, and 23 would the year. Any direction with this would be greatly appreciated. TIA
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
how is the unit determined , is this entered on the sheet
otherwise you could put
'15-1-23 into cell A2
and then
="15-"&MID(A2,4,1)+1&"-"&TEXT(TODAY(),"yy")
copied down

perhaps with an IF - so a cell has to be completed in that row for it to show up

Or you could use ROW()
="15-"&ROW()-1&"-"&TEXT(TODAY(),"yy")

Cell Formulas
RangeFormula
A3:A13A3="15-"&MID(A2,4,1)+1&"-"&TEXT(TODAY(),"yy")
B2:B14B2="15-"&ROW()-1&"-"&TEXT(TODAY(),"yy")
 
Upvote 0
Thank you for your response. The number of the unit will be inputted on the sheet.
 
Upvote 0
then you could just use concatenate to add the unit number
but presumably you would want

15-1-23
15-2-23
18-1-23
15-3-23
18-2-23



and not
15-1-23
15-2-23
18-3-23
15-4-23
18-5-23

maybe an example with expected results would help
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
1673030564955.png

The unit numbers would be picked from a list in the cell. I need a number sequential number generated a particular number is picked from row 1.
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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