Function Problems

How to Combine Cells While Preserving Leading Zeros in Excel

Anum MushtaqAnum Mushtaq Nov 10, 2026 869 views

Question details

The user needs to merge multiple cells containing two-digit text values into a single continuous string without losing the leading zeros.

Combine Cells While Preserving Leading Zeros in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Combining data from multiple columns (e.g., B through H) into one cell for data formatting, identification codes, or reporting.
Observed behavior
Standard number formatting drops leading zeros, but text concatenation preserves them as long as the source cells are stored as text.
Before you start

Ensure that the source cells containing the leading zeros are formatted as Text before you begin combining them, otherwise the spreadsheet may drop the zeros during the calculation.

Solution 1Recommended

Use the Ampersand (&) Operator to Combine Cells

The simplest and most universally compatible method to concatenate cells across all versions of Excel.

The ampersand (&) operator links the contents of multiple cells together into a single text string. Because it treats the cell contents as text, any leading zeros already present in text-formatted source cells will be perfectly preserved.

1
Select the destination cell

Click on the empty cell where you want the combined result to appear.

2
Enter the concatenation formula

Type the formula =B1&C1&D1&E1&F1&G1&H1 into the formula bar, adjusting the cell references to match your actual data range.

3
Apply the formula

Press Enter to apply the formula and view the combined text string.

4
Fill down the column

Click and drag the small square fill handle at the bottom-right corner of the cell down to apply the formula to the remaining rows.

Use the Ampersand (&) Operator to Combine Cells
Format Check: Because the source cells are stored as text, the ampersand operator will naturally preserve the leading zeros without requiring any additional formatting functions.
Powerful Spreadsheet Tool

Combine Cells and Manage Data Easily with WPS Spreadsheet

WPS Office provides a highly compatible and user-friendly spreadsheet application that supports all standard Excel functions, including CONCAT, TEXTJOIN, and the ampersand operator, ensuring your data formatting remains perfectly intact.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the cells you want to combine.
  2. 2. Select the destination cell: Click on the empty cell where you want the combined data to appear.
  3. 3. Enter the formula: Type your preferred formula, such as =CONCAT(B1:H1) or =B1&C1&D1, into the formula bar.
  4. 4. Apply and fill down: Press Enter to combine the cells, then use the fill handle to drag the formula down the column for the remaining data.
Fully compatible with Microsoft Excel (.xlsx, .xls) formats and formulas.Supports advanced text functions like CONCAT and TEXTJOIN to preserve leading zeros.Free to use with a lightweight installation and fast performance.Familiar tabbed interface makes switching from Excel seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my leading zeros disappear when I combine cells?

Leading zeros disappear if the spreadsheet interprets the combined result or the source cells as numbers rather than text. Ensure your source cells are formatted as Text before combining them.

Can I add a delimiter like a comma or space when combining cells?

Yes. You can use the TEXTJOIN function, like =TEXTJOIN("-", TRUE, B1:H1), or manually add delimiters using the ampersand operator, such as =B1&"-"&C1.

How do I force a leading zero if the source cell is formatted as a number?

You can use the TEXT function within your concatenation formula to force a specific format. For example, =TEXT(B1,"00")&TEXT(C1,"00") will ensure each value is treated as a two-digit text string with leading zeros, regardless of the original cell format.