Resources

4 ways to combine text values in Excel

Combining text values is a common task in Excel. There are many ways to do it, but let's focus on a few function-based methods.

@globalexcelsummit Combining text values is a common task in Excel. There are many ways to do it, but let's focus on a few function-based methods. Β  In the example, there's a list of first names (A3:A8) and last names (B3:B8) housed in separate columns. The goal is to combine them into a single column of full names. Β  To start with, a CONCAT formula is used for each row to join together the two values with a space in between. Β  E.g. =π™²π™Ύπ™½π™²π™°πšƒ(π™°πŸΉ," ",π™±πŸΉ) Β  TEXTJOIN is then used in a similar way. This function has the advantage of only needing a delimiter specified once. That's not an issue here, however. Β  E.g. =πšƒπ™΄πš‡πšƒπ™Ήπ™Ύπ™Έπ™½(" ",,π™°πŸΉ:π™±πŸΉ) Β  Whilst these approaches work, they require six formulas, which isn't good practice in modern Excel. Β  One solution is CONCATENATE, a deprecated function still present for compatibility reasons. Referencing the ranges is found to spill the names exactly as desired, contrary to CONCAT and TEXTJOIN, which make them appear in the same cell. Β  =π™²π™Ύπ™½π™²π™°πšƒπ™΄π™½π™°πšƒπ™΄(π™°πŸΉ:π™°πŸΎ," ",π™±πŸΉ:π™±πŸΎ) =π™²π™Ύπ™½π™²π™°πšƒ(π™°πŸΉ:π™°πŸΎ," ",π™±πŸΉ:π™±πŸΎ) =πšƒπ™΄πš‡πšƒπ™Ήπ™Ύπ™Έπ™½(" ",,π™°πŸΉ:π™°πŸΎ,π™±πŸΉ:π™±πŸΎ) Although CONCATENATE does the job, it's old. The alternative method and the best out of the lot is to use the ampersand operator to 'glue' together the strings in the ranges, leaving a space in between. Β  =π™°πŸΉ:π™°πŸΎ&" "&π™±πŸΉ:π™±πŸΎ Β  #exceleration #excelΒ #microsoftexcel #excelformulas #exceltips #globalexcelsummit ♬ original sound - globalexcelsummit

In the example, there's a list of first names (A3:A8) and last names (B3:B8) housed in separate columns. The goal is to combine them into a single column of full names.

To start with, a CONCAT formula is used for each row to join together the two values with a space in between.

E.g. =π™²π™Ύπ™½π™²π™°πšƒ(π™°πŸΉ," ",π™±πŸΉ)

TEXTJOIN is then used in a similar way. This function has the advantage of only needing a delimiter specified once. That's not an issue here, however.

E.g. =πšƒπ™΄πš‡πšƒπ™Ήπ™Ύπ™Έπ™½(" ",,π™°πŸΉ:π™±πŸΉ)

Whilst these approaches work, they require six formulas, which isn't good practice in modern Excel.

One solution is CONCATENATE, a deprecated function still present for compatibility reasons. Referencing the ranges is found to spill the names exactly as desired, contrary to CONCAT and TEXTJOIN, which make them appear in the same cell.

=π™²π™Ύπ™½π™²π™°πšƒπ™΄π™½π™°πšƒπ™΄(π™°πŸΉ:π™°πŸΎ," ",π™±πŸΉ:π™±πŸΎ)

=π™²π™Ύπ™½π™²π™°πšƒ(π™°πŸΉ:π™°πŸΎ," ",π™±πŸΉ:π™±πŸΎ)

=πšƒπ™΄πš‡πšƒπ™Ήπ™Ύπ™Έπ™½(" ",,π™°πŸΉ:π™°πŸΎ,π™±πŸΉ:π™±πŸΎ)

Although CONCATENATE does the job, it's old. The alternative method and the best out of the lot is to use the ampersand operator to 'glue' together the strings in the ranges, leaving a space in between.

=π™°πŸΉ:π™°πŸΎ&" "&π™±πŸΉ:π™±πŸΎ

For more Excel tips and tricks like this, check out our Video Tutorials page.

Andrew Moss
About the Author

Andrew Moss

Andrew is a technical writer who specialises in Microsoft Excel and data analysis. He has published hundreds of articles and social media posts aimed at helping people enhance their skills and spreading good practices.

Conversation

0 Comments

As you comment, let's keep the discussion friendly and respectful to add value to the conversation.

Thank you! Your comment has been sent!
Oops! Something went wrong while submitting the form.
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete

Get Tickets

Benefit from an award-winning 3-day conference plus access to exclusive networking and additional Masterclass events.

Get Tickets
Close Cookie Popup
Cookie Preferences
By clicking β€œAccept All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts as outlined in our privacy policy.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Cookies helping us understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Cookies used to deliver advertising that is more relevant to you and your interests.
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).