Excel Auto Create Unique Numeric Number

knm1872

New Member
Joined
Mar 9, 2018
Messages
6
Hello
I'm a total novice excel user but have a need at work that I'm hoping we can use excel to solve.
We need to create one place where 3 separate people can log applications taken from our customers - excel workbook.
To that end, they all need a unique identifier that we don't want them to generate or edit. We are hoping we can use excel to auto generate it based on information they put into the spreadsheet. This unique ID will be used to later import into another system.
We are attempting to eliminate duplicates into the future (over at least 2 calendar years).
I'm putting in a sample of what the spreadsheet can look like (there would be more columns with additional data but none would needed for this exercise).
Any help, ideas, suggestions, solutions you all could propose would be much appreciated. I'm in a bit over my head but am hoping excel can do something like this.
Thanks in advance,
Kathie

Unique IDDateLOBCustomer Name
LYYYYMMDDxxxxxx3/9/2018MortgageDoe, John
3/10/2018ConsumerSmith, Sally
3/11/2018CommercialABC Corporation
L = LOB 1=Mortgage
2=Consumer
3=Commercial
YYYYMMDDDate
xxxxxxAuto generated Unique ID
Auto generate and lock field for changes.
<colgroup><col width="142" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5193;"> <col width="89" style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254;"> <col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"> <col width="240" style="width: 180pt; mso-width-source: userset; mso-width-alt: 8777;"> <tbody> </tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
okay so I came up with 3 formulas that work in 3 different cells...can anyone help me combine them into one? I've given up on the YYYYMMDD and just went with year.

=IF(D2="Mortgage",1,IF(D2="Consumer",2,3)) -- this gets me the prefix of 1,2 or 3
=B14&2018 -- this takes the result of line 1 above and adds the year
=C14&RANDBETWEEN(1,9999) -- this adds the random number at the end.


I'm assuming, I can just leave it at 3 columns, hide them and protect them. The users will never know. But it would be nicer to have in one cell.

For those taking a look, thank you. Appreciate any help you can give.
 
Upvote 0
Thank you...that worked!! :)

But as most things do...I have more questions.
How do I get it to stop changing the number of the previous entries each time one is created? We need to take this unique ID once it's created and put it into another system for reporting.
For example, when I add more lines to the spreadsheet, it changes the numbers above it (the RAND ones).
 
Upvote 0
Thank you....that could be a problem. I really need to get the entire date YYYYMMDD to appear, then I think we will be okay.
We are a bank, we need to keep loan application data for government required HMDA reporting. All lines of business use different systems, so we need one repository for tracking loans not generated. I know blah, blah, blah. We feel the same way.
Within one calendar year (reporting cycle), we will more than likely not have the same borrower make application on the same day for the same product/loan amount. These are additional columns on the spreadsheet. We are a relatively small bank and do not generate lots of loan applications that don't result in loans.
Our plan was to use share this workbook to log all applications that don't generate loans. The unique ID assures we won't match any other generated number in other systems. Either loan numbers which won't match this sequence at all. Then we can use this log, along with others from the loan systems, to upload for government reporting.
 
Upvote 0
in A2 type =IF(C2="Mortgage",1,IF(C2="Consumer",2,3))&TEXT(B2,"yyyymmdd")&TEXT(ROWS($B$2:B2),"00000")

this will put in the year dynamically and create sequential numbers from 00001 and onwards
 
Upvote 0
How about something like this:


Book1
ABCD
1Unique IDDateLOBCustomer Name
212018030900075509/03/2018MortgageDoe, John
322018031000111010/03/2018ConsumerSmith, Sally
432018031100139811/03/2018CommercialABC Corporation
Sheet1
Cell Formulas
RangeFormula
A2=VLOOKUP($C2,{"Mortgage",1;"Consumer",2;"Commercial",3},2,FALSE)&TEXT($B2,"yyyymmdd")&TEXT(SUMPRODUCT(CODE(MID($D2,ROW(INDIRECT("1:"&LEN($D2))),1))),"000000")


WBD
 
Upvote 0
Thank you so much!!
You have no idea how much this will help us. Again, can't thank you enough.
 
Upvote 0
Thank you so much.
You people are geniuses!! I need excel classes. lol
Again, can't thank you enough. Really. This will make our lives so much easier.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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