How to Merge Columns in Excel: Complete Guide to Combining Data Without Losing Information

Learn how to excel merge columns using CONCAT, TEXTJOIN, Power Query, and Flash Fill without losing data. Step-by-step methods with formulas and examples.

Microsoft ExcelBy Katherine LeeMay 21, 202620 min read
How to Merge Columns in Excel: Complete Guide to Combining Data Without Losing Information

Learning how to excel merge columns is one of the most practical spreadsheet skills you can develop because nearly every real-world dataset arrives with information split across multiple fields that need consolidation. Whether you are combining first and last names, joining address components, merging product codes with descriptions, or stitching together date and time fields, mastering the techniques to merge columns will save you hours of manual copying and pasting. This guide walks through every reliable method Microsoft Excel offers, from simple concatenation formulas to advanced Power Query transformations that handle thousands of rows in seconds.

Before diving into methods, it is essential to understand a critical distinction that trips up many beginners. The standard Merge & Center button on the Home ribbon does not actually combine the data inside two columns. Instead, it merges the cells visually while keeping only the value from the upper-left cell and discarding everything else. If your goal is to preserve all the data from both columns and join it into a single field, you need a formula-based or Power Query approach rather than the visual merge tool.

The most common scenarios where users need to merge columns include consolidating customer records where given names and surnames live in separate fields, building unique identifiers by combining department codes with employee numbers, creating full email addresses from username and domain columns, and preparing data for import into CRM or accounting systems that expect single combined fields. Each scenario has an optimal technique, and choosing the right one depends on dataset size, formatting needs, and whether you want a live formula or a static result.

Excel offers five primary methods for combining column data: the ampersand concatenation operator, the legacy CONCATENATE function, the modern CONCAT function introduced in Excel 2016, the powerful TEXTJOIN function that handles delimiters and empty cells gracefully, and Flash Fill which uses pattern recognition to fill an entire column based on a single example. Beyond these, Power Query provides a robust solution for repeatable workflows where you need to refresh data regularly from external sources without rewriting formulas.

Throughout this guide we will work through realistic examples using employee directories, sales data, and address lists so you can see exactly how each method behaves with different data types. We will also cover the common pitfalls that cause merged columns to display incorrect formatting, such as dates appearing as five-digit serial numbers or leading zeros disappearing from product codes. By the end you will know precisely which method to reach for in any situation. For related techniques, you may also want to review our guide on how to add a filter in Excel.

One important consideration before merging is whether you want to keep the original columns or replace them entirely. Most professional workflows recommend keeping the source columns intact in case you need to verify or rebuild the merged result later. You can always hide the source columns from view while preserving them in the underlying data, which gives you the best of both worlds: a clean presentation layer and complete data traceability for auditing purposes.

Finally, remember that merging columns is fundamentally a data transformation task, and like all data work it benefits from a small amount of upfront planning. Take five minutes before you start to look at your source data, identify any inconsistent formatting such as extra spaces or mixed capitalization, and decide on the delimiter you want between merged values. A space, comma, hyphen, or pipe character each communicates something different to downstream users, so choose deliberately rather than defaulting to whatever feels easiest in the moment.

Excel Column Merging by the Numbers

📊5Primary MethodsFormula, CONCAT, TEXTJOIN, Flash Fill, Power Query
⏱️30 secFlash Fill SpeedFor 1,000 rows of pattern data
💻32,767Character LimitPer cell in modern Excel
🔄253TEXTJOIN Max ArgsIncluding the delimiter
🎯2016+CONCAT ReleasedReplaces older CONCATENATE function
Microsoft Excel - Microsoft Excel certification study resource

Five Reliable Ways to Merge Columns in Excel

✏️Ampersand Operator (&)

The simplest method uses the & symbol to chain values together. Write =A2&" "&B2 to join first and last names with a space. Works in every version of Excel and produces a live formula that updates when source cells change.

🔄CONCAT Function

Modern replacement for CONCATENATE that accepts ranges rather than individual cells. Type =CONCAT(A2:D2) to merge an entire row of cells in one step. Available in Excel 2016 and later, including Microsoft 365 and Excel Online.

📋TEXTJOIN Function

The most flexible option, TEXTJOIN lets you specify a delimiter and choose whether to skip empty cells. Syntax is =TEXTJOIN(delimiter, ignore_empty, text1, text2). Perfect for address lines where some apartment fields are blank.

Flash Fill

Excel watches you type one or two examples and then fills the rest of the column automatically by detecting the pattern. Press Ctrl+E after typing your first example. No formula required, but the result is static text rather than dynamic.

💻Power Query

For repeatable workflows or large datasets, Power Query offers a Merge Columns transformation under the Add Column tab. Refreshable, auditable, and handles millions of rows without slowing down your workbook.

The ampersand operator is the foundational technique every Excel user should master first because it works in every version of Excel ever released and the syntax is intuitive. To combine column A and column B with a space between them, click the destination cell and type =A2&" "&B2 then press Enter. The result is a formula that displays the joined text and recalculates automatically whenever either source cell changes. To apply the same formula to thousands of rows, double-click the fill handle in the lower-right corner of the cell.

The CONCATENATE function, which has existed since the earliest versions of Excel, performs essentially the same operation as the ampersand but uses function syntax. The formula =CONCATENATE(A2," ",B2) produces identical output to =A2&" "&B2. Microsoft has officially deprecated CONCATENATE in favor of CONCAT, but the older function still works for backward compatibility. If you are sharing files with users on Excel 2013 or earlier, sticking with ampersand notation guarantees universal compatibility without any version-specific function dependencies.

CONCAT is the modern upgrade and offers one significant advantage: it accepts cell ranges as arguments rather than requiring individual cell references. Writing =CONCAT(A2:F2) combines six cells in a single tidy formula, whereas the old approach forced you to write =A2&B2&C2&D2&E2&F2. When you need to merge wide tables with many columns, this range support dramatically simplifies your formulas and makes them easier to audit later when you return to the workbook months after building it.

TEXTJOIN takes the concept even further by adding two crucial parameters. The first is a delimiter that gets inserted between every value, and the second is a flag telling Excel whether to skip empty cells. The formula =TEXTJOIN(", ", TRUE, A2:F2) joins all six cells with comma-space separators while gracefully ignoring any blanks in the middle. This is invaluable for address merging where some records have an apartment number and others do not, because you avoid the dreaded double comma that results from naive concatenation.

When working with formulas, always pay attention to how Excel handles non-text values. Dates, in particular, are stored internally as serial numbers, so concatenating a date cell directly into a string produces something like 45678 rather than the date you see displayed. To fix this, wrap the date reference in the TEXT function with an explicit format code: =A2&" "&TEXT(B2,"mm/dd/yyyy"). The same applies to numbers with leading zeros, percentages, currency, and any other custom-formatted values that you want to preserve in the merged output.

Another common formula pattern is conditional merging, where the joined output depends on whether certain cells are populated. The IF function nested inside concatenation lets you handle these cases elegantly: =A2&IF(B2="",""," "&B2)&IF(C2="",""," "&C2) produces a clean joined string regardless of which middle columns happen to be empty. This pattern is harder to read than TEXTJOIN but works in older Excel versions that lack the modern function. For repeated complex merges, consider learning more advanced techniques in our coverage of how to create a filter in Excel.

Formula-based merging has one important characteristic that catches some users off guard: the merged column contains formulas, not text. If you delete the source columns, your merged column will break and display #REF errors. The solution is straightforward but easy to forget. After verifying your merged column looks correct, select it, copy it, then use Paste Special and choose Values to convert the formulas into static text. Now you can safely delete or modify the source columns without affecting your merged result.

FREE Excel Basic and Advance Questions and Answers

Practice merging columns, formulas, and data manipulation with realistic Excel scenarios.

FREE Excel Formulas Questions and Answers

Master CONCAT, TEXTJOIN, and other text functions through hands-on formula practice.

Comparing CONCAT, TEXTJOIN, and the Ampersand for How to Merge Cells in Excel

The ampersand is the original and most universally compatible way to merge column values. Available in every version of Excel since the 1990s, it requires no special function names and reads naturally once you understand the pattern. The syntax =A2&" "&B2 joins two cells with a space, and you can chain as many cells and literal strings as needed by adding more ampersands and quotation-marked text segments to the formula.

The main drawback of the ampersand approach is verbosity when merging many columns. A formula joining ten cells with delimiters becomes long and tedious to write, and any mistake in the chain is hard to spot. There is also no built-in way to skip empty cells, so you may end up with consecutive delimiters when some source cells are blank. For two or three columns the ampersand remains the cleanest choice; beyond that, switch to CONCAT or TEXTJOIN.

Excellence Playa Mujeres - Microsoft Excel certification study resource

Formula-Based Merging vs Power Query: Which Should You Choose?

Pros
  • +Formulas update automatically when source data changes
  • +Works in every version of Excel without add-ins
  • +Easy to debug by clicking into individual cells
  • +Allows nested logic like IF statements inside merges
  • +Copies and pastes naturally into other workbooks
  • +Minimal learning curve for users familiar with basic formulas
  • +Compatible with shared workbooks and OneDrive co-authoring
Cons
  • Formulas break if source columns are deleted
  • Slows down workbooks when applied to hundreds of thousands of rows
  • No built-in transformation history or audit trail
  • Date and number formatting requires explicit TEXT wrapping
  • Cannot be reused across different source files without rewriting
  • Multiple delimiters and conditional logic become unwieldy quickly
  • Static text-only output requires Paste Special Values step

FREE Excel Functions Questions and Answers

Sharpen your knowledge of CONCAT, TEXTJOIN, IF, and other essential Excel functions.

FREE Excel MCQ Questions and Answers

Multiple choice questions covering merging, formatting, and core Excel skills.

Pre-Merge Checklist Before Combining Excel Columns

  • Back up your workbook by saving a copy before making structural changes
  • Inspect source columns for leading or trailing spaces that need TRIM
  • Decide on a delimiter and use it consistently across all merged rows
  • Identify any date or number columns that need TEXT function formatting
  • Choose between formula merge for live data or Flash Fill for static output
  • Add a header row to the merged column with a clear, descriptive name
  • Verify no source cells exceed the 32,767 character limit per cell
  • Test your formula on three sample rows before filling down the entire range
  • Use Paste Special Values to convert formulas to text if removing source columns
  • Save the file under a new name once merging completes successfully

Flash Fill reads patterns from one example.

If you type the desired merged result for the first row only, then press Ctrl+E in the cell below, Excel will infer the pattern and fill the entire column. It handles capitalization, extraction, and reordering automatically. This is the fastest method for one-off merges of any size up to about 100,000 rows.

Flash Fill is one of the most underappreciated features in modern Excel, having been introduced in Excel 2013 and refined steadily ever since. The premise is brilliantly simple: you show Excel one example of what you want, and the software analyzes the relationship between your input columns and your example to deduce the transformation rule. Then it applies that rule to every remaining row in the column. For straightforward column merges, Flash Fill often produces results faster than typing the formula would take.

To use Flash Fill for column merging, ensure your source data has a header row and your destination column also has a header. In the first data row of the destination column, type the merged result manually, such as combining John from column A and Smith from column B as John Smith. Then move to the second data row and either start typing the next merged value or simply press Ctrl+E. Excel suggests the rest of the column in light gray text, and pressing Enter accepts the suggestion.

Flash Fill handles surprisingly sophisticated patterns beyond simple concatenation. It can reorder pieces, so if your source has Smith in column A and John in column B but you want John Smith as output, Flash Fill figures that out from a single example. It can also extract substrings, such as pulling out area codes from phone numbers or domain names from email addresses, and combine those extracted pieces with text from other columns. The pattern recognition is genuinely impressive for routine data wrangling tasks.

Power Query takes a fundamentally different approach by recording every step of your data transformation as a repeatable recipe. To access it, select your data range, go to the Data tab on the ribbon, and click From Table/Range. Excel converts your range to a structured table and opens the Power Query Editor in a separate window. From there, select two or more columns by Ctrl-clicking their headers, then go to the Add Column tab and click Merge Columns. A dialog asks you to choose a separator and name the new column.

The power of Power Query becomes obvious when you click Close & Load to return to Excel. Your transformed data appears as a new table, but the original raw data remains unchanged in its source. If next month new rows are added to the source, you simply click Refresh All on the Data tab and Power Query re-runs all your transformations on the updated data automatically. This makes Power Query the right tool for any merging workflow you will need to repeat, such as monthly sales report consolidation or daily data feed processing.

Power Query also handles edge cases more gracefully than formulas. It has built-in options for cleaning text before merging, such as trimming whitespace, changing case, or replacing specific characters. You can merge columns conditionally based on values in other columns, split-then-recombine to reformat existing merged data, and unpivot or pivot before merging to handle complex source layouts. For datasets larger than fifty thousand rows, Power Query is also significantly faster than formula-based merging because it uses optimized internal engines rather than recalculating every formula on every change.

One small caveat with Power Query is the learning curve. The interface looks unfamiliar at first to spreadsheet users, and the M language that underpins advanced transformations has its own syntax distinct from Excel formulas. However, for the specific task of merging columns you never need to touch M code, and the visual interface walks you through every option clearly. Most users become productive in Power Query within an afternoon of practice on a real dataset they care about consolidating.

Excel Spreadsheet - Microsoft Excel certification study resource

Real-world column merging scenarios reveal which method works best for which situation. Consider a customer database with separate FirstName and LastName columns that you need to combine into a FullName field for mail merge. For a one-time task on a few hundred rows, Flash Fill is fastest: type the first full name manually and press Ctrl+E. For a recurring monthly mail-merge workflow where the customer list grows, build a TEXTJOIN formula that lives in the workbook and updates automatically as new rows arrive. For an enterprise data pipeline, Power Query gives you refreshable transformations with full audit history.

Address merging is another classic use case with its own quirks. A typical address dataset might have separate columns for street number, street name, apartment, city, state, and postal code. Naive concatenation produces output like 123 Main Street Apt 4B Springfield IL 62701 which is readable but lacks proper punctuation. TEXTJOIN with a comma-space delimiter and ignore_empty set to TRUE produces 123 Main Street, Apt 4B, Springfield, IL, 62701 with appropriate handling for rows where the apartment field is blank. You may also want our techniques for how to add a filter in Excel after merging.

Product SKU construction is another scenario where merging shines. Suppose you have separate columns for product category code, color code, size code, and sequence number, and you want a single unique identifier per product. A formula like =A2&"-"&B2&"-"&C2&"-"&TEXT(D2,"0000") produces SKUs like SHIRT-RED-LG-0042 with proper zero-padding on the sequence number. The TEXT function call is crucial here because without it, sequence numbers below 1000 would display without leading zeros, breaking the consistent SKU format your inventory system expects.

Email address generation from name columns is a frequent business task. The basic formula =LOWER(LEFT(A2,1))&LOWER(B2)&"@example.com" produces a first-initial-plus-last-name email like jsmith@example.com, but real-world implementations need to handle duplicates, hyphenated last names, and special characters. A more robust version uses SUBSTITUTE to strip apostrophes and hyphens, and a helper column with COUNTIF to detect collisions and append a number suffix when needed. This kind of multi-step text manipulation is exactly where Excel becomes a genuine programming environment.

Financial reporting often requires merging account codes with descriptions or department numbers with cost center names. The challenge here is preserving leading zeros that financial systems require. If your account number column displays as 00123 but you concatenate the cell directly, the merged output will show 123 with leading zeros stripped. The fix is to wrap the cell reference in TEXT with a format code matching the original width: =TEXT(A2,"00000")&" - "&B2 produces 00123 - Office Supplies as expected by your accounting system.

Survey and form data consolidation is another common merging scenario, particularly when responses span multiple-choice columns. Imagine a survey with ten checkbox columns where respondents indicated which products they own, with each column containing the product name if checked or blank if not. TEXTJOIN with ignore_empty=TRUE turns those ten sparse columns into a single clean comma-separated list per respondent. This single transformation often replaces hours of manual data cleaning and gets your survey results ready for analysis in seconds.

Finally, consider international name formats. American conventions put first name before last name, but many countries reverse this order, and some use middle names, suffixes, or honorific prefixes that complicate merging. A robust full-name formula uses IF statements to handle optional fields gracefully: =IF(A2="","",A2&" ")&B2&IF(C2="",""," "&C2)&IF(D2="","",", "&D2) handles a Title FirstName LastName, Suffix pattern with any combination of empty fields. This level of conditional merging is straightforward once you understand the pattern and saves enormous downstream effort.

Putting everything you have learned into practice starts with selecting the right method for each specific merge task. As a quick decision guide, use Flash Fill when you have a one-off merge of fewer than ten thousand rows and want static text output. Use the ampersand operator when merging two or three columns with simple delimiters. Use CONCAT when merging entire ranges of cells without needing delimiters. Use TEXTJOIN whenever you need a custom delimiter or need to handle empty cells gracefully. Use Power Query for any recurring transformation or any dataset larger than fifty thousand rows.

Develop a habit of always inspecting your source data before merging. Five minutes of inspection saves hours of cleanup. Look for trailing spaces by clicking into representative cells and checking the formula bar carefully. Look for mixed capitalization that might need UPPER, LOWER, or PROPER functions applied before or during the merge. Look for inconsistent date formats, currency symbols, or thousand separators that will display unexpectedly in your merged output. Document any cleanup rules you apply so the next person to touch the file understands your decisions.

Build a small library of reusable merge formulas in a personal reference sheet that you can copy from whenever needed. Useful patterns include full-name construction, address consolidation, SKU generation, email creation, and date-time combination. Each pattern should be in its own clearly labeled section with example source data and expected output. Over a few months of working with real datasets, this personal library becomes a productivity superpower that lets you solve common merging tasks in seconds rather than minutes.

For any merge that runs more than once, strongly consider Power Query even if formulas would technically work. The audit trail, refreshability, and graceful handling of edge cases pay for the modest learning investment many times over. Power Query queries can be exported, shared with teammates, and version-controlled, which formula-based workbooks cannot. If your organization runs the same monthly or weekly report consolidation, building a Power Query workflow once and refreshing it forever is the professional approach.

Always test your merge logic on edge cases before declaring victory. Run your formula or query through rows with empty fields, rows with unusually long values, rows with special characters like apostrophes or quotation marks, and rows with leading or trailing whitespace. Each of these can produce subtle bugs that only surface when an end user opens your merged file weeks later and notices something looks off. Five minutes of edge-case testing prevents embarrassing problems and builds trust in your spreadsheet outputs.

Document your merge logic in a notes section of the workbook itself, even just a few sentences explaining which columns were merged, what delimiter was used, and which formula version you applied. This documentation becomes essential when you or a colleague returns to the file months later trying to understand why the merged column contains certain values. A small text box on the worksheet or a comment on the header cell of your merged column dramatically improves long-term maintainability of your spreadsheets.

Finally, remember that merging is just one tool in the data preparation toolkit. Often the right approach combines merging with other operations like sorting, filtering, removing duplicates, splitting other columns, and applying conditional formatting. Practice using these techniques in combination through real projects, and consider taking practice quizzes regularly to reinforce your skills. Excel mastery comes from consistent, deliberate practice on diverse datasets, and the column-merging techniques in this guide form a foundation you will use in nearly every spreadsheet project you tackle going forward.

FREE Excel Questions and Answers

Comprehensive Excel certification practice covering merging, formulas, and data analysis.

FREE Excel Trivia Questions and Answers

Fun trivia-style questions to test your knowledge of Excel features and history.

Excel Questions and Answers

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.