Good afternoon all,
I am looking for a way to generate a random 3 letter and 4 digit number in excel. Through a little research, most methods are saying to use CHAR and RANDBETWEEN.
this is the formula I have currently.
This does give a desired random number but anytime a cell changes, the number updates. I need the number to be constant once generated. Is there anyway to do this?
For what it's worth, this is a small delivery appointment spreadsheet and this number that is generated cannot change because it is given to the other party.
I am looking for a way to generate a random 3 letter and 4 digit number in excel. Through a little research, most methods are saying to use CHAR and RANDBETWEEN.
this is the formula I have currently.
VBA Code:
=CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&RANDBETWEEN(10,99)
This does give a desired random number but anytime a cell changes, the number updates. I need the number to be constant once generated. Is there anyway to do this?
For what it's worth, this is a small delivery appointment spreadsheet and this number that is generated cannot change because it is given to the other party.
Attachments
Last edited: