Can anyone assist me in creating a type of RANDOM generator for text entries?
I am interested in a function that would select a random name from a prepopulated list. This would be similar to using the RAND function but would choose texts from a predetermined range instead of numbers.
My thought would be some type of UDF where I could enter a "=RANDNAME" function and the cell would populate from a specific list.
I could also use this code to randomly enter other types of text data like "=RANDCITY", or "=RANDSTATE" from prepopulated lists.
I've found a couple suggestions online using VBA or the RANDBETWEEN function combined with INDEX or VLOOKUP but I am wondering if this can be done as a UDF (which I have no clue on how to write).
I am interested in a function that would select a random name from a prepopulated list. This would be similar to using the RAND function but would choose texts from a predetermined range instead of numbers.
My thought would be some type of UDF where I could enter a "=RANDNAME" function and the cell would populate from a specific list.
I could also use this code to randomly enter other types of text data like "=RANDCITY", or "=RANDSTATE" from prepopulated lists.
I've found a couple suggestions online using VBA or the RANDBETWEEN function combined with INDEX or VLOOKUP but I am wondering if this can be done as a UDF (which I have no clue on how to write).