CONCAT / CONCATENATE Function in Excel: Complete Tutorial with Examples

CONCAT combines text from multiple cells or ranges, merges names and addresses, builds codes, and replaces CONCATENATE with simpler syntax.

Need to combine text from multiple cells? CONCAT joins text strings together, making it perfect for merging names, creating addresses, building codes, and combining data. It’s the modern replacement for CONCATENATE with simpler syntax.

What Makes CONCAT Useful

CONCAT merges text effortlessly:

  • Combine multiple cells – Join text from any number of cells
  • Merge ranges – Combine entire ranges at once
  • Build full names – Merge first, middle, and last names
  • Create addresses – Combine street, city, state, zip
  • Generate codes – Build product codes or identifiers
The Syntax
=CONCAT(text1, [text2], ...)

Text1, text2, etc. are the values to combine. Can be individual cells, text, or ranges.


Example 1: Combine First and Last Name

Create full names from separate columns:

Formula: =CONCAT(A2, " ", B2)

Result in C2: John Smith

Result in C3: Sarah Johnson

Combines first name, space, and last name.


Example 2: Build Full Address

Combine address components:

Formula: =CONCAT(A2, ", ", B2, ", ", C2, " ", D2)

Result: 123 Main St, Boston, MA 02101

All parts combined with proper punctuation.


Example 3: Create Email Addresses

Build emails from first and last names:

Formula: =CONCAT(LOWER(A2), ".", LOWER(B2), "@company.com")

Result in C2: john.smith@company.com

Result in C3: sarah.johnson@company.com


Example 4: Generate Product Codes

Combine category, year, and ID:

Formula: =CONCAT(A2, "-", B2, "-", C2)

Result in D2: ELC-2025-12345

Result in D3: FUR-2024-67890


Example 5: Merge Range of Cells

Combine all cells in a range:

Formula: =CONCAT(A2:C2)

Result: HelloWorldToday

Merges all values without spaces (add spaces manually if needed).


Example 6: Build Phone Numbers

Format phone number from parts:

Formula: =CONCAT("(", A2, ") ", B2, "-", C2)

Result in D2: (555) 123-4567

Result in D3: (415) 987-6543


CONCAT vs CONCATENATE vs &

CONCAT is the newest and most flexible.

Common Use Cases

Full Names Combine first, middle, and last names.

Addresses Build complete mailing addresses.

Email Generation Create email addresses from name parts.

Custom IDs Generate unique identifiers from components.

Adding Spaces and Punctuation

Space between words:

=CONCAT(A2, " ", B2)

Comma and space:

=CONCAT(A2, ", ", B2)

Dash separator:

=CONCAT(A2, "-", B2)

Multiple separators:

=CONCAT(A2, " | ", B2, " - ", C2)
Handling Empty Cells

Basic CONCAT with empty: Empty cells are ignored, but separators remain.

Better approach with IF:

=IF(B2="", A2, CONCAT(A2, " ", B2))

Only adds space if B2 has content.

Skip empty middle name:

=CONCAT(A2, IF(B2="", "", " "&B2), " ", C2)
Practical Applications

Create labels:

=CONCAT("Name: ", A2, " | ID: ", B2)

Build file names:

=CONCAT("Report_", TEXT(TODAY(), "YYYY-MM-DD"), ".xlsx")

Generate URLs:

=CONCAT("https://website.com/", LOWER(A2))

Invoice numbers:

=CONCAT("INV-", TEXT(A2, "0000"))
CONCAT with Other Functions

CONCAT + UPPER:

=CONCAT(UPPER(A2), " ", UPPER(B2))

CONCAT + TEXT:

=CONCAT("Total: ", TEXT(A2, "$#,##0.00"))

CONCAT + TRIM:

=CONCAT(TRIM(A2), " ", TRIM(B2))

CONCAT + IF:

=CONCAT(A2, IF(B2<>"", ", ", ""), B2)

Example 7: Conditional Concatenation

Add middle name only if it exists:

Formula: =CONCAT(A2, IF(B2="", "", " "&B2), " ", C2)

Result in D2: John M Smith

Result in D3: Sarah Johnson

No extra space when middle name is missing.


Example 8: Combine with Line Breaks

Create multi-line addresses:

Formula: =CONCAT(A2, CHAR(10), B2, ", ", C2)

Result (in wrapped cell): 123 Main St Boston, MA

CHAR(10) is a line break.


Example 9: Reverse Name Order

Convert “First Last” to “Last, First”:

Formula: =CONCAT(B2, ", ", A2)

Where you’ve already split the names, or:

Complex formula: =CONCAT(RIGHT(A2, LEN(A2)-SEARCH(" ", A2)), ", ", LEFT(A2, SEARCH(" ", A2)-1))

Result: Smith, John


Example 10: Build Query Strings

Create URL parameters:

Formula: =CONCAT("?product=", A2, "&price=", B2)

Result: ?product=Widget&price=29.99


Common Mistakes to Avoid

Forgetting Spaces

  • CONCAT(A1, B1) = “JohnSmith”
  • CONCAT(A1, " ", B1) = “John Smith”
  • Always add separators explicitly

Empty Cell Handling

  • Empty cells create awkward spacing
  • Use IF to handle conditionally

Number Formatting Lost

  • Numbers lose formatting when concatenated
  • Use TEXT function to preserve formatting
  • CONCAT(A1, TEXT(B1, "#,##0"))

Error Handling

Handle missing data:

=IF(OR(A2="", B2=""), "Incomplete", CONCAT(A2, " ", B2))

Check all required fields:

=IF(COUNTBLANK(A2:C2)>0, "Missing data", CONCAT(A2, " ", B2, " ", C2))

Default value for empty:

=IF(A2="", "N/A", CONCAT("ID: ", A2))
Tips for Using CONCAT

Plan separators Decide on spaces, commas, dashes before building formula.

Test with empty cells See how formula handles missing data.

Use helper columns Break complex concatenations into steps.

Combine with TEXT for formatting Preserve number and date formatting.

When to Use CONCAT

Use CONCAT when:

  • Combining text from multiple cells
  • Building codes or identifiers
  • Creating formatted text strings
  • Merging ranges of data
  • Need modern, flexible concatenation

Use & operator when:

  • Simple two-cell combination
  • Quick formula without function
  • Personal preference for brevity

Use CONCATENATE when:

  • Working in older Excel versions
  • Compatibility with legacy workbooks
Start Using It

Pick two cells with text. Type =CONCAT, reference both cells with a space or separator between them. Press Enter. See the combined result. Add more cells or text as needed.

CONCAT makes text combination simple and flexible.


Questions about CONCAT? Need help building complex text combinations? Let’s connect.