Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

Functions

Combine Cells in Excel: CONCAT, CONCATENATE and &

By the LogicExcel Editorial Team19 min read3,639 wordsPractice this

To combine two cells in Excel, join them with the ampersand: =A2&" "&B2 returns "Maya Johnson" when A2 holds a first name and B2 a last name. The quoted space goes between them. =CONCAT(A2," ",B2) does the same job in Excel 2019 and later. Both formulas return text, so fill them down the column and paste as values if you plan to delete the originals.

Try this now

Join two or more strings of text together with the CONCAT function. Join the text in A1 and B1 to return "ABCD".
ABCD
1ABCD
2
3
4
5
B2fx

Continue the full lesson →

Ready to practice?

Apply what you just learned with interactive exercises.

Start Lesson 15

This page covers how to combine text from two cells in Excel with &, CONCAT and CONCATENATE, how to put spaces, commas and line breaks between the pieces, how to join numbers and dates without ugly results, when TEXTJOIN or Flash Fill is the better tool, and what each error means.

TL;DR

  • Use =A2&" "&B2 to join two cells with a space. It works in every version of Excel.
  • =CONCAT(A2:B2) joins a whole range, but it adds nothing between the pieces. Add your own spaces or commas as quoted text.
  • Wrap numbers and dates in TEXT before you join them, or you will get 1250.5 and 46095 instead of a price and a date.
  • Use CHAR(10) for a line break inside the cell and turn on Wrap Text to see it.
  • For a long list with a separator, or to skip blanks, use TEXTJOIN instead.
  • Formulas keep updating. Copy and use Paste Special, Values when you want fixed text.

Table of Contents

The sample data used on this page

Every example below uses this small customer list for an online shop. Type it into a blank sheet starting at A1 so your results match.

ABCDEF
1FirstLastCityStateAmountOrder date
2MayaJohnsonAustinTX1250.52026-03-14
3LuisOrtegaDenverCO9802026-03-15
4AishaKhanChicagoIL2310.752026-03-16
5TomO'NeilBostonMA4152026-03-18
6PriyaSeattleWA72.42026-03-20
Column E holds plain numbers and column F holds real dates. B6 is empty on purpose. It shows the side effect of joining an empty cell, and a later section shows how to deal with it.

CONCAT syntax and arguments

The pattern is:

=CONCAT(text1, [text2], ...)

ArgumentRequiredWhat it does
text1RequiredThe first item to join. It can be a cell, text in quotes, or a range of cells.
text2, ...OptionalMore items, joined in the order you list them. Microsoft documents a limit of 253 text arguments.
CONCAT puts the items next to each other with nothing between them. If you want a space, a comma or a dash, you have to supply it as its own argument in quotes, such as " " or ", ". That one rule explains most join mistakes.

The & operator does the same work with a different spelling. =A2&" "&B2 and =CONCAT(A2," ",B2) return the same text. The operator is shorter for two or three pieces, and the function is easier to read when you join a range.

How to combine text from two cells in Excel

These examples go from the simplest join to the ones that need a second function.

Join a first and last name with a space

Type this in G2 and press Enter:

=A2&" "&B2

It returns Maya Johnson. Excel reads it left to right: take A2, add a space, add B2. The CONCAT version is =CONCAT(A2," ",B2) and returns the same thing. The older CONCATENATE function also works: =CONCATENATE(A2," ",B2).

Drag the fill handle down to G6 to repeat it for every row. The reference changes row by row, so G3 holds Luis Ortega and G4 holds Aisha Khan. Names with an apostrophe need no special care: =A5&" "&B5 returns Tom O'Neil.

Join with nothing in between

When you leave out the separator, the pieces touch:

=CONCAT(A2:B2)

This returns MayaJohnson. That is useful for building codes and IDs, and a mistake if you wanted a name.

Join city and state with a comma

=C2&", "&D2

This returns Austin, TX. The separator is two characters inside one pair of quotes: a comma and a space.

Add fixed text before or after a cell

You can mix cells and typed text freely. Typed text always goes in quotes.

=A2&"@example.com"

This returns Maya@example.com. To make an email style address from the first initial and last name, nest LEFT and LOWER:

=LOWER(LEFT(A2,1)&B2)&"@example.com"

This returns mjohnson@example.com. LEFT takes the first letter of A2, the & adds the last name, LOWER makes it all lowercase, and the final & adds the domain. The LEFT function guide covers the first step in detail.

Know what Excel does first

The & operator ranks below the arithmetic operators. Excel does the math first and joins afterward, so no extra brackets are needed:

="Total: "&E2+E3

This returns Total: 2230.5, because E2+E3 is calculated as 1250.5 plus 980 before the text is attached. Comparison operators such as = and > rank below &, which is why a test like A2&B2="MayaJohnson" compares the joined text. Our logical operators guide lists the full order.

Join numbers and dates with TEXT

Joining a number or a date puts its stored value into the text, not the way the cell looks.

="Order total: "&E2

This returns Order total: 1250.5. There is no dollar sign and no second decimal, because the cell format never travels with the value. The fix is the TEXT function, which turns a value into text using a format code that you choose:

="Order total: "&TEXT(E2,"$#,##0.00")

This returns Order total: $1,250.50. The code $#,##0.00 means a dollar sign, thousands separators and exactly two decimals. For a single value on its own, =TEXT(E3,"$#,##0.00") returns $980.00.

Dates show the problem more sharply, because a date is a whole number underneath:

="Shipped "&F2

This returns Shipped 46095, which is the serial number for 14 March 2026. Format it with TEXT instead:

="Shipped "&TEXT(F2,"mmmm d, yyyy")

This returns Shipped March 14, 2026. Use "mmm d" for Mar 14 and "yyyy-mm-dd" for 2026-03-14. Format codes follow your computer's regional settings, so a code that works on a US machine may need different letters on a machine set to another language.

You can chain several pieces into one sentence:

=A2&" ordered "&TEXT(E2,"$#,##0.00")&" on "&TEXT(F2,"mmm d")&"."

This returns Maya ordered $1,250.50 on Mar 14. Read it as six parts: a name, typed text, a formatted amount, typed text, a formatted date, and a full stop in quotes.

Start a new line inside the cell

A line break is character number 10, which CHAR(10) returns:

=A2&CHAR(10)&C2&", "&D2

This returns two lines: Maya on the first and Austin, TX on the second. Excel only shows the break when Wrap Text is on for the cell. Select the cell, then choose Home, Wrap Text. If you see "MayaAustin, TX" on one line, Wrap Text is off. The break is there either way.

Handle empty cells and extra spaces

Row 6 has no last name. Join it the usual way and look at the result:

=A6&" "&B6

This returns "Priya " with a trailing space. You cannot see it, but it breaks lookups and comparisons later, because "Priya " is not equal to "Priya". There are two clean fixes.

The first wraps the join in TRIM, which removes leading and trailing spaces and reduces runs of spaces to one:

=TRIM(A6&" "&B6)

This returns Priya. TRIM is the shortest fix and also protects you from stray spaces typed into the source cells. See the TRIM function guide for what it does and does not remove.

The second adds the space only when there is something to add:

=A6&IF(B6="",""," "&B6)

This returns Priya for row 6. Copy the same formula to row 2 and it returns Maya Johnson, so one formula covers both cases. The IF checks whether B6 is empty and, if it is, adds an empty string in place of the space.

When many columns can be blank, writing an IF for each one gets heavy. That is the job TEXTJOIN was built for: =TEXTJOIN(" ",TRUE,A6:B6) returns Priya, because the second argument TRUE tells it to skip empty cells.

Join a whole range or only matching rows

CONCAT accepts ranges, which CONCATENATE does not:

=CONCAT(A2:A6)

This returns MayaLuisAishaTomPriya. All five names are joined with nothing between them. To get a separator without TEXTJOIN, join each value together with the separator first. In Microsoft 365 and Excel 2021 or later, this works as a normal formula:

=CONCAT(A2:A6&", ")

It returns "Maya, Luis, Aisha, Tom, Priya, " with a stray comma and space at the end. In older versions of Excel you must confirm it with Ctrl+Shift+Enter. The cleaner version is:

=TEXTJOIN(", ",TRUE,A2:A6)

This returns Maya, Luis, Aisha, Tom, Priya with no stray separator at the end. See the TEXTJOIN guide for more.

Join only the rows that match a condition

There is no CONCATENATEIF function. Use a different pattern: let IF choose the cells and let CONCAT join what is left.

=CONCAT(IF(D2:D6="TX",A2:A6,""))

This returns Maya, because only row 2 has TX in column D. Every other row becomes an empty string and adds nothing. In Microsoft 365 and Excel 2021 or later it just works, as an array calculation. In Excel 2019 you must confirm it with Ctrl+Shift+Enter. If you need a separator, use TEXTJOIN in place of CONCAT, as the dynamic arrays guide shows.

Flash Fill: join cells without a formula

Flash Fill spots a pattern in your typing and completes the column. It is the fastest way to combine cells when you need the result once and do not need it to update.

  1. In G2, type the result you want by hand: Maya Johnson.
  2. Press Enter, then start typing the second result in G3. Excel shows a grey preview of the rest.
  3. Press Enter to accept the preview. If no preview appears, press Ctrl+E, or choose Data, then Flash Fill.
Flash Fill needs Excel 2013 or later. It writes plain text, not formulas. If a first name changes in column A, the combined text in G does not follow. It can also misread a pattern when the examples are inconsistent, so check a few rows, especially any with blank cells.

Which method to use

MethodBest forWatch out for
& operatorTwo or three pieces, any Excel versionLong formulas get hard to read
CONCATJoining a range, or many piecesNot in Excel 2016 or earlier; no separator built in
CONCATENATEOld files that must open in every versionDoes not join a range, kept only for compatibility
TEXTJOINA list with the same separator, skipping blanksNeeds Excel 2019 or later
Flash FillOne-off joins with no later changesStatic text that does not update
Merge and CenterPage layout onlyKeeps only the top-left value, does not combine text
A simple rule: use & for a few cells, TEXTJOIN for a list, and Flash Fill when you only need the answer once. CONCAT is the right pick when you are joining a range with no separator, such as pieces of a code.

Merge and Center deserves its own warning. It looks like a way to combine cells, but it merges the cells into one and discards everything except the upper-left value. Excel shows a warning before it does so. If your goal is to combine text, use a formula or Flash Fill and leave the cells unmerged.

Keep the result and delete the original cells

A joined cell is a formula that points at its sources. If you delete column A, the formula in G returns #REF!. To keep the text and drop the sources:

  1. Select the formula cells, for example G2:G6, and press Ctrl+C.
  2. Right-click the first cell, choose Paste Special, then choose Values. On Windows the keyboard version is Ctrl+Alt+V, then V, then Enter.
  3. Now G2:G6 hold plain text. Delete columns A and B safely.
Check the pasted cells for trailing spaces first. The TRIM function guide shows how to find them.

Excel versions

  • & operator: every version, including Excel for the web and Mac.
  • CONCATENATE: every version. Microsoft keeps it for compatibility and recommends CONCAT.
  • CONCAT: Excel 2019, Excel 2021, Excel 2024, Microsoft 365, and Excel for the web. Excel 2016 sold as a one-time purchase and earlier versions do not have it and show #NAME?.
  • TEXTJOIN: the same set as CONCAT.
  • Flash Fill: Excel 2013 and later.
  • Array behavior: the CONCAT(A2:A6&", ") and CONCAT(IF(...)) patterns calculate on their own in Microsoft 365 and Excel 2021 or later. Excel 2019 needs Ctrl+Shift+Enter.
If a file has to open in a version you cannot check, use & and nothing else. It is the only choice that is safe everywhere.

Errors and odd results

What you seeCauseFix
#NAME?The text is missing its quotes, such as =A2&Hello, or CONCAT is used in a version that lacks itPut typed text in quotes, or use & in older versions
#VALUE!The joined result is longer than 32,767 characters, the most a cell can holdSplit the work or shorten the pieces
#REF!A source cell or column was deleted after the formula was writtenPaste as values before you delete sources
46095 instead of a dateA date joined without TEXTUse TEXT(F2,"mmmm d, yyyy")
1250.5 instead of $1,250.50A number joined without TEXTUse TEXT(E2,"$#,##0.00")
Name and surname run togetherNo separator argumentAdd " " between the cells
A trailing spaceA blank cell joined with a spaceWrap in TRIM or use IF
The text shows on one lineThe cell has CHAR(10) but Wrap Text is offTurn on Wrap Text
Formula shows as text, not a resultThe cell is formatted as Text, or there is a leading apostropheChange the format to General and re-enter the formula
A joined result is always text, even when it looks like a number. You can check this with =ISNUMBER(E2&""), which returns FALSE. That matters if you plan to add the joined cells later. Use VALUE or keep the original number in its own column.

What learners get wrong

Between 26 September and 3 November 2026, learners made 5,280 first attempts across our CONCAT Function lesson, and 59.7% were right. On the "Hello world" screen, which asks for a space between two cells using &, only 37.7% of 536 first attempts were right. The most common wrong answers, shown as stored in lowercase, fall into four patterns.

A comma where a space belongs. The answer =a1&","&a2 appeared 47 times, and =a1&", "&a2 appeared 43 times. Both put a comma in the text. The screen asks for a space, so the separator is " ". The pattern for your own sheet is =A2&" "&B2.

A separator with no quotes, or no equals sign. The answers =a1&,&a2 and =a1&," ",&a2 (21 first attempts each) show the same idea: a bare comma, as if & were an argument list. In an & formula there are no commas between pieces. Each piece is joined by the operator, and each piece of typed text needs its own quotes. Back on the "Hello world" screen, a1&" "&a2 with no leading equals sign appeared 19 times, and Excel stores that as plain text instead of calculating it. A related slip appeared on the e-mail screen: =concat(a3,@example.com) appeared 39 times, with the domain typed bare. The domain is text, so it needs quotes: =CONCAT(A3,"@example.com").

A missing operator. On the screen that asks for "Biscuits & gravy", 499 first attempts were made and 46.7% were right. The answer =a1&" & "a2 appeared 18 times and =a1&"&"a2 appeared 13 times. There is no & between the closing quote and a2. Excel needs an operator between every piece: =A2&" & "&B2. The same screen also shows =a1&a2 33 times, which joins the cells with nothing between them, and =concat(a1,"&",a2) 32 times, which drops the spaces around the ampersand.

The wrong tool for the screen. On the e-mail screen, 536 first attempts were made and 50.6% were right. The answer =a3&"@example.com" appeared 25 times. It builds the correct address, but the screen asked for CONCAT. Read the instruction as part of the task.

Our Operators lesson is cleaner: 505 first attempts, 84.6% right. Its screen on =A2&": "&C2 had 94 first attempts and 70.2% right. The slips there were small and rare, two first attempts each: =(a2&":"&c2), which drops the space after the colon, and =a2&": "&c2", which has a stray closing quote.

A worked job scenario: shipping labels

The warehouse needs a printable label for every order on the sample data. Each label has two lines, a reference code, and a confirmation sentence for the customer. Here is how to build all four from the six columns.

  1. The address block, two lines in one cell. In G2 enter:
=A2&" "&B2&CHAR(10)&C2&", "&D2

This returns Maya Johnson on line one and Austin, TX on line two. Turn on Wrap Text for column G and fill down.

  1. The reference code. In H2 enter:
=TEXT(F2,"yyyymmdd")&"-"&D2&"-"&UPPER(LEFT(B2,3))

This returns 20260314-TX-JOH, built from the order date, the state and the first three letters of the last name. The TEXT call turns the date into eight digits, and UPPER makes the letters uppercase.

  1. The confirmation sentence. In I2 enter:
=A2&" ordered "&TEXT(E2,"$#,##0.00")&" on "&TEXT(F2,"mmm d")&"."

This returns Maya ordered $1,250.50 on Mar 14.

  1. Check the blank last name. Row 6 has no last name, so the label in G6 reads "Priya " followed by the city. Change G2 to =TRIM(A2&" "&B2)&CHAR(10)&C2&", "&D2 before you fill down, and every row stays tidy. G2 still returns Maya Johnson on line one.
  1. Freeze the labels. Copy G2:I6 and use Paste Special, Values to a new sheet before you send it to print. The labels now stay put even if you edit or delete the source columns.
Every step uses only what is in this guide: the & operator, TEXT, CHAR, TRIM, UPPER and LEFT. If you want to sort the codes or build a count of orders by state, the text functions guide shows what to reach for next.

Practice

Reading about & only goes so far. Open the CONCAT Function lesson and type the formula yourself. The lesson checks the formula you type. Then do the Operators lesson to see & next to the comparison operators. When you are ready for a list with separators, continue with the TEXTJOIN lesson.

If you want to go the other way and split a full name into its parts, our guide to extracting the first word covers it.

FAQ

How do I combine cells in Excel?

Use the ampersand operator. Type =A2&" "&B2 to join A2 and B2 with a space. The CONCAT function does the same thing: =CONCAT(A2," ",B2). Fill the formula down the column, and copy then paste as values if you want the text without the formula. Neither method is hard, but both need the separator in quotes.

How do I combine text from two cells in Excel with a comma?

Put the comma inside quotes as its own piece: =C2&", "&D2 returns Austin, TX. The comma and the space after it go in the same pair of quotes. If you leave the quotes off, Excel reads the comma as part of the formula syntax and either rejects the formula or returns an error.

What is the difference between CONCAT and CONCATENATE?

CONCAT is the newer function and replaces CONCATENATE. CONCAT accepts a range, such as =CONCAT(A2:B2), while CONCATENATE needs each cell listed separately. CONCATENATE still works in every version, but Microsoft recommends CONCAT where it is available. Neither adds a separator for you.

How do I join text in Excel and add a space between words?

Add a space in quotes as its own argument. With the operator, write =A2&" "&B2. With CONCAT, write =CONCAT(A2," ",B2). If either cell can be empty, wrap the formula in TRIM, as in =TRIM(A6&" "&B6), so a blank cell does not leave a trailing space.

Why does my date turn into a number when I combine cells?

A date is stored as a serial number, and joining text uses the stored value, not the cell format. 14 March 2026 becomes 46095. Wrap the date in TEXT to choose how it appears, such as TEXT(F2,"mmmm d, yyyy"), which returns March 14, 2026.

Is there a CONCATENATEIF or CONCAT with a condition?

There is no such function. Let IF pick the values and CONCAT or TEXTJOIN join them. For example, =CONCAT(IF(D2:D6="TX",A2:A6,"")) returns the names whose state is TX. In Excel 2019 it needs Ctrl+Shift+Enter. In Microsoft 365 it calculates on its own.

How do I put a line break between joined cells?

Insert CHAR(10) between the pieces, as in =A2&CHAR(10)&C2. Then select the cell and turn on Wrap Text under the Home tab. Without Wrap Text the break exists but the cell shows everything on one line.

Sources

Keep going

Guides people read next.