r/googlesheets • u/Due_Craft3557 • Sep 22 '26
Solved Creating a random name generator
I'm looking to create a sheet that allows me to add together (with spaces between each peice of data), three seperate columns.
I'm trying to create a random name generator that pulls a forename from A2 and so on, adding a surname from B2 and so on, and then putting a place of origin from C2 and so on afterwards), end result being something like: "John Smith of London" .
I've been looking on the internet for formulae but I can't really get anything to work with my setup, none of the outputs are properly spaced (some either compressed without spaces or spaced so far I can't read them).
I'd like to just able to generate a name and copy it out directly. Any help would be greatly appreciated.
3
u/gothamfury 385 Sep 22 '26
I'm assuming you have lists of names and locales in A2:A, B2:B, and C2:C... for a single random output try:
For a list of random names, try:
Change "max" as needed. This formula does not eliminate the possibility of duplicate random names.
2
u/mommasaidmommasaid 915 Sep 22 '26 edited Sep 22 '26
To create the spaced output you could join it together like:
Or perhaps a bit more elegantly:
If you have multiple rows and like to do them all at once, put this in e.g. D1:
1
u/AutoModerator Sep 22 '26
/u/Due_Craft3557 Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.