Combine Two Columns in Excel: Methods, Functions, and Use Cases

Combine two columns in Excel: ampersand operator, CONCAT, TEXTJOIN, Flash Fill, and Power Query approaches plus when to use each method.

Combine Two Columns in Excel: Methods, Functions, and Use Cases

Combine two columns in Excel handles a common need — merging data from two separate columns into a single column. Common scenarios include combining first and last names into full names, joining street addresses with cities, merging product codes with descriptions, and various other situations where data needs consolidation. Excel offers multiple approaches: the ampersand (&) operator for direct concatenation, CONCAT and TEXTJOIN functions for more flexible joining, Flash Fill for pattern-based combining, and Power Query for repeatable data transformations. Understanding the methods and when to use each helps choose the right approach for your specific situation.

The simplest approach is the ampersand (&) concatenation operator. =A1&B1 combines the values in A1 and B1 into single string in the cell where you enter the formula. Common variation includes adding a space between values: =A1&" "&B1. The ampersand approach works well for simple two-column joins. For more complex situations with multiple columns or specific separator handling, dedicated functions provide better solutions. The ampersand pattern is often the right starting point and may be all you need for many situations.

For formula-based approaches specifically, Excel offers several functions for combining columns. CONCAT (newer Excel) combines multiple values: =CONCAT(A1," ",B1). TEXTJOIN (newer Excel) provides delimiter handling and ignore-empty option: =TEXTJOIN(" ",TRUE,A1,B1). CONCATENATE (legacy function) similar to CONCAT: =CONCATENATE(A1," ",B1). Each function has slightly different syntax and capabilities. TEXTJOIN is most flexible for complex situations; ampersand for simple cases; CONCATENATE for compatibility with older Excel.

This guide covers combining two columns in Excel comprehensively: the major methods (ampersand, functions, Flash Fill, Power Query), specific use cases for each, common challenges and their solutions, and how to handle edge cases like empty cells and special characters. Whether you're new to Excel formulas or looking for the right approach for a specific combining task, you'll find practical guidance here.

Ampersand (simple): =A1&" "&B1 (joins with space)
CONCAT: =CONCAT(A1," ",B1) for newer Excel
TEXTJOIN: =TEXTJOIN(" ",TRUE,A1,B1) handles empty cells
Flash Fill: Type example then Ctrl+E for pattern recognition
Power Query: For repeatable transformation across data refresh

For the ampersand approach specifically, several patterns work well. Basic concatenation: =A1&B1 joins values directly without separator. With space: =A1&" "&B1 joins with single space (most common for names). With other separators: =A1&", "&B1 joins with comma-space (common for cities). Multiple cells: =A1&" "&B1&" "&C1 joins three columns. Constants and references mixed: ="Name: "&A1&" "&B1 prefixes with constant text. The flexibility supports many combining patterns through simple formula construction.

For TEXTJOIN function specifically, this is most flexible for complex situations. Syntax: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...). The delimiter is the separator between joined values. Ignore_empty is TRUE or FALSE — TRUE skips empty cells (preventing extra delimiters). Text arguments are values or ranges to join. =TEXTJOIN(", ",TRUE,A1:E1) joins all five values with comma-space, skipping empty cells. The function handles many situations the simpler ampersand can't easily handle. The Excel shortcuts resources cover related formula shortcuts.

For CONCAT function specifically, this is similar to TEXTJOIN but without delimiter handling. Syntax: =CONCAT(text1, [text2], ...). =CONCAT(A1," ",B1) joins values with explicit separator. =CONCAT(A1:E1) joins all five values without delimiter. CONCAT is simpler than TEXTJOIN but less flexible for complex separator scenarios. Choose CONCAT when separator handling is simple; choose TEXTJOIN when you need delimiter or ignore-empty features. Both work in modern Excel; older Excel versions may not have CONCAT but support CONCATENATE.

For Flash Fill specifically, this powerful Excel feature recognizes patterns automatically. Type the desired result for first row in column adjacent to source columns. Press Ctrl+E (Flash Fill keyboard shortcut). Excel recognizes the pattern and fills remaining rows with similar transformations. Flash Fill works well for many combining scenarios — name joining, address formatting, text extraction. It's particularly useful for one-time transformations where you don't want to maintain formulas. The how to add columns in Excel resources cover related operations.

For Power Query specifically, this provides repeatable data transformation suitable for data refresh scenarios. Power Query in Get & Transform Data section of Data tab. Load data, then add custom column with combining formula or use "Merge Columns" feature. Custom column formula example: [FirstName] & " " & [LastName]. Power Query approach works well for combining columns where source data refreshes regularly — the transformation reapplies automatically when data updates. More setup time than formulas but better for ongoing repeated transformations.

Microsoft Excel - Microsoft Excel certification study resource

Methods to Combine Columns

Ampersand (&) Operator

Simplest approach. =A1&" "&B1 joins with space. Quick and intuitive. Works in all Excel versions. Best for simple two-column joins. Ampersand pattern handles most common cases. Limitation: complex separator handling becomes verbose. Foundation pattern that newer functions extend.

TEXTJOIN Function

Most flexible for complex situations. =TEXTJOIN(", ",TRUE,A1:E1) handles delimiter and empty cells gracefully. Best when joining many columns or when empty cells need handling. Newer Excel function (Office 2016+). Most powerful single function for column combining.

Flash Fill

Pattern-based one-time transformation. Type desired result for first row, Ctrl+E fills others. Works for many transformations. Best for one-time data cleanup not requiring formulas. Limitation: if source data changes, results don't update. Excellent for ad-hoc transformations during data analysis.

Power Query

Repeatable transformation for refreshable data. Setup time higher than formulas. Reapplies automatically when source data refreshes. Best for ongoing transformations of data that updates regularly. Modern Excel data preparation approach. Worth investment for repeatable scenarios.

For specific use cases of combining columns specifically, several patterns appear. Name combining (first + last name) is most common — formula like =A1&" "&B1 produces full name. Address building (street + city + state + zip) — multiple ampersands or TEXTJOIN with appropriate delimiters. Product code generation — combining ID + category codes with specific separators. Email building (first.last@domain.com) — concatenation with periods and at-sign. Data formatting (combining numbers with text labels) — appropriate formatting before concatenation. Each scenario has typical patterns supporting clean implementation.

For handling specific scenarios specifically, several techniques help. Empty cells: TEXTJOIN with ignore_empty=TRUE handles gracefully. Numeric values: combine with text formatting if needed (TEXT function for specific number formats). Date values: format dates appropriately before concatenation (TEXT function: =TEXT(A1,"mm/dd/yyyy")&" "&B1). Special characters: standard concatenation handles most characters. Line breaks: CHAR(10) inserts line break in concatenated string (requires word wrap on cell to display). Each technique addresses specific scenarios extending basic concatenation.

For copying formulas across rows specifically, combining formulas use relative references that adjust when copied. =A1&" "&B1 in C1, copied to C2, becomes =A2&" "&B2. Drag the fill handle (small square at bottom-right of cell) down to fill formulas across rows. Or copy the cell and paste over target range. Excel tables (Insert → Table) automatically extend formulas to new rows added to the table. The how to merge two columns in Excel resources cover related merging operations.

For removing source columns after combining specifically, several considerations matter. After creating combined column with formula, the formula references source columns — deleting source columns breaks the formulas. To remove source columns: copy combined column, paste as values (Paste Special → Values) to keep just the text without formulas, then safely delete source columns. The convert-to-values step preserves combined data while breaking formula dependency. Many users skip this step and create #REF! errors when deleting source columns.

For data preparation patterns specifically, combining columns often serves data preparation rather than final output. Combine columns for VLOOKUP keys (when matching across two systems requires combined identifiers). Combine for grouping (concatenated keys for SUMIF or similar). Combine for display purposes (full name for reports). Combine for export (single column needed by external system). Each preparation purpose has specific requirements affecting how the combination should work. Understanding the downstream use guides the combination approach.

Combining Methods by Scenario

First + Last name combining:

  • Simple: =A1&" "&B1 (Last + First)
  • With salutation: ="Dear "&A1&" "&B1&"," produces "Dear John Smith,"
  • Last, First format: =B1&", "&A1
  • Initials: =LEFT(A1,1)&". "&B1 produces "J. Smith"
  • Common challenge: Handling empty middle name or suffix
Excel Spreadsheet - Microsoft Excel certification study resource

For dealing with formatting issues specifically, several techniques help. Inconsistent capitalization in source data: use UPPER, LOWER, or PROPER functions before combining. Extra spaces: TRIM function removes leading, trailing, and double spaces. Hidden characters: CLEAN function removes non-printable characters. Mixed data types: TEXT function formats numbers and dates as needed. Build cleaning into the combining formula: =TRIM(A1)&" "&TRIM(B1) handles space issues during combination. Pre-cleaning data often produces cleaner combined results than combining first and cleaning second.

For preserving leading zeros specifically, several concerns matter. Numbers with leading zeros (zip codes, employee IDs) — Excel sometimes drops leading zeros depending on cell formatting. Storing as text preserves leading zeros. Use TEXT function during concatenation: =TEXT(A1,"00000")&B1 ensures 5-digit format. For consistency, formatting source data as text rather than numbers from initial data entry prevents this issue. Various formatting decisions affect how combined results display.

For combining with VLOOKUP/lookup needs specifically, combined columns often serve as lookup keys. Compound keys handle situations where single column doesn't uniquely identify records. =A2&B2 creates compound key in helper column; VLOOKUP on this key matches across compound criteria. Modern Excel functions (XLOOKUP, INDEX/MATCH with multiple criteria) sometimes eliminate need for compound key approach. Each approach has tradeoffs in formula complexity and performance. The how to sum a column in Excel resources cover related column operations.

For combining columns in pivot tables specifically, calculations work differently than in regular cells. Pivot tables use calculated fields/items with specific calculation context. Concatenation in calculated fields rarely produces useful results because pivot operates on aggregated data. Better approach: combine columns in source data using formulas, then build pivot tables on the combined data. This separates data preparation (combining columns) from analysis (pivot tables) into appropriate stages.

For very large datasets specifically, several performance considerations matter. Formulas calculating across millions of rows can slow Excel substantially. Pre-calculating combined values and pasting as values reduces ongoing calculation load. Power Query handles large datasets more efficiently than formulas. Excel's data model with Power Pivot handles million-row datasets without performance issues. For typical small datasets (thousands of rows), simple formulas work fine; large datasets warrant performance-conscious approaches.

For Excel for Mac specifically, all combining approaches work similarly to Windows Excel. Ampersand operator works identically. Functions (CONCAT, TEXTJOIN, CONCATENATE) work the same. Flash Fill works (Cmd+E on Mac). Power Query works in current Excel for Mac versions. Some keyboard shortcuts differ (Cmd vs Ctrl) but functional behavior matches. Mac users follow same approaches as Windows users with minor shortcut adjustments.

For Excel Online specifically, most combining functionality works in browser-based Excel. Ampersand and basic functions work fine. CONCAT and TEXTJOIN work. Flash Fill availability varies by Excel Online version. Power Query has limited online support; complex Power Query workflows often require desktop Excel. For most combining tasks, Excel Online handles the work; very complex transformations may need desktop. The how to freeze panes in Excel resources cover broader Excel features.

For working with combined data downstream specifically, several patterns matter. Combined columns can serve as inputs to other formulas — concatenated keys for VLOOKUP, formatted strings for display. Combined columns can be split apart later if needed (Text to Columns feature reverses simple combinations). Combined columns can be used directly in pivot tables, charts, and other Excel features. The combined data is just text or values — Excel features that work with text or values work with combined columns normally.

For cleaning combined data specifically, post-combination cleaning sometimes produces better results than pre-combination cleaning. After combining, can TRIM any extra spaces, PROPER for consistent capitalization, SUBSTITUTE for specific text replacements. The flexibility to clean either before or after combination accommodates various workflow preferences. Most efficient approach depends on data characteristics; experimentation reveals what works best for specific data.

Looking forward, Excel's text combining capabilities continue evolving. Newer functions (LET, LAMBDA) support more sophisticated combining patterns. Dynamic arrays in modern Excel handle range combining differently than older Excel. Power Query continues developing as primary data transformation approach. The fundamental ampersand operator remains stable as foundational tool. Building solid foundation in basic combining approaches supports learning advanced features as needed for specific use cases.

Combining Columns Decision Guide

  • Simple two-column join with no edge cases: use ampersand (&)
  • Multiple columns or empty cells expected: use TEXTJOIN
  • One-time transformation without maintaining formulas: use Flash Fill
  • Repeatable transformation across data refresh: use Power Query
  • Mixed data types: include TEXT() function for proper formatting
Excellence Playa Mujeres - Microsoft Excel certification study resource

For specific industries that frequently combine columns specifically, several patterns emerge. Sales and marketing teams combine customer name fields with company names, contact info, segment labels for various analyses. Finance teams combine account codes with descriptions, period labels with values. HR teams combine name fields, department codes, role descriptions for reporting. Operations teams combine product codes with descriptions, location codes with facility names. Each industry has typical patterns that staff develop fluency with over time. New employees often spend early weeks learning these conventions.

For Power Query specifically as alternative to formulas, the data flow approach differs from formulas. Load source data into Power Query (Data → Get Data → From Excel/CSV/database). Add custom column with formula (Add Column → Custom Column). Formula syntax in Power Query uses M language: [FirstName] & " " & [LastName]. Or use Merge Columns feature for simpler combinations. Output query loads transformed data into worksheet. The transformation reapplies automatically when source data refreshes. Worth investment for repeatable scenarios.

For combining columns from different worksheets specifically, several approaches work. Direct cross-sheet reference: ='Sheet1'!A1&" "&'Sheet2'!A1 combines values across sheets. INDIRECT function for dynamic sheet references: =INDIRECT("'"&A1&"'!"&"B1")&C1 references different sheets based on cell content. Power Query for combining data from multiple sheets at scale. Each approach handles cross-sheet combining differently; choose based on whether referenced sheets are static or dynamic, and the volume of data involved.

For combining columns with conditional logic specifically, IF combined with concatenation handles many practical scenarios. =IF(A1="","",A1&" "&B1) returns empty when A1 is empty, full combination when A1 has value. =A1&IF(B1="",""," "&B1) handles optional B1 cleanly without producing extra spaces. =IF(C1="VIP","★ ","")&A1&" "&B1 prefixes star for VIP customers. Conditional combining patterns extend simple concatenation to handle business rules and edge cases. The flexibility supports many practical requirements.

For non-text data types specifically, careful handling produces clean results. Booleans (TRUE/FALSE) concatenate as text "TRUE" or "FALSE". Errors propagate through concatenation. Dates without TEXT formatting concatenate as serial numbers (44948 instead of "05/08/2026"). Numbers concatenate without formatting (1234.5 instead of "$1,234.50"). For each, TEXT function applied during concatenation produces appropriate formatting. Building good habits around format-aware concatenation prevents many subtle output issues.

For combining with named ranges specifically, named ranges make formulas more readable. Define names through Formulas → Define Name. Then use names in formulas: =FirstName&" "&LastName instead of =A2&" "&B2. Named ranges support more readable formulas, especially in complex spreadsheets where formulas are reviewed by others. The investment in naming pays back through more maintainable formulas over time. Named ranges work with all combining methods including ampersand and TEXTJOIN. Updating ranges requires updating only name definitions rather than every formula referencing them. This makes maintenance substantially easier when spreadsheet structure changes.

Combining Columns Quick Facts

&Ampersand operator for simple concatenation
Ctrl+EFlash Fill keyboard shortcut for pattern-based combining
TEXTJOINFunction with delimiter and empty cell handling
Office 2016+Excel version supporting CONCAT and TEXTJOIN
Power QueryBest approach for repeatable transformations

Column Combining Approaches

Pros
  • +Multiple methods for different scenarios (formulas, Flash Fill, Power Query)
  • +Simple ampersand handles most basic combining needs
  • +TEXTJOIN provides flexible delimiter and empty handling
  • +Flash Fill recognizes patterns automatically for many transformations
  • +Power Query supports repeatable transformation across data refresh
Cons
  • Empty cells can produce extra delimiters with simple ampersand approach
  • Removing source columns breaks formula dependencies
  • Newer functions (CONCAT, TEXTJOIN) require Office 2016+
  • Flash Fill doesn't update when source data changes
  • Power Query has steeper learning curve than formulas

Excel Questions and Answers

About the Author

James R. HargroveJD, LLM

Attorney & Bar Exam Preparation Specialist

Yale Law School

James R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.