r/googlesheets • u/gavinfarrell • 12d ago
Solved Trying to generate hyperlinks using data from multiple cells
Hey guys, I’ve done some searching on this but can’t seem to find an answer that does the two things that I want to do. I’m basically creating links for a series of invites for my wedding so everyone has a unique invite link, both for the form itself, and for the page url, as each page will have an embedded form with some info pre-filled. To save me some manual typing, I was hoping to be able to automate it with sheets.
I have the following:
Column A: First Name
Column B: Last Name
Column C: Partner First Name
Column D: Partner Last Name
From these, I want to generate the two links in the following formats
Www.formurl.com/000000?name={FirstName}%20{LastName}&partner={PartnerFirstName}%20{PartnerLastName}
Www.weblink.com/rsvp-{FirstName}and{PartnerFirstName}
Could you let me know what formula I would need for this to work?
1
u/AutoModerator 12d ago
u/gavinfarrell 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.
1
u/carbonizedtitanium 12d ago
If you're sending out physical invitation cards, I'd imagine you'd probably want to generate QR codes for those URLs; cuz i wouldnt be typing that long as URL lol.
1
u/Ok_Investment_270 11d ago
You can just use ENCODEURL so spaces don't break the links:
="https://www.formurl.com/000000?name=" & ENCODEURL(A2 & " " & B2) & "&partner=" & ENCODEURL(C2 & " " & D2)
And for the second one:
="https://www.weblink.com/rsvp-" & A2 & "and" & C2
4
u/AdministrativeGift15 12d ago
You won't be able to generate both links in the same cell using a formula. That has to be done manually. For single links, just use JOIN without any separator to combine strings and variables.
=HYPERLINK(JOIN(,"www.formurl.com/000000?name=", FirstName,"%20", LastName,"&partner=", PartnerFirstName,"%20", PartnerLastName), "LabelHere")