Excel Formula Calculator: Add Number + String
Comprehensive Guide: How to Add a Calculated Number Plus String in Excel
Microsoft Excel is a powerful tool for data analysis, but many users struggle with combining numeric calculations with text strings. This guide will teach you three professional methods to concatenate numbers with strings in Excel, complete with practical examples and performance considerations.
Why Combine Numbers and Strings?
Common scenarios where you need to combine calculated numbers with text include:
- Creating labeled reports (e.g., “250 units sold”)
- Generating custom IDs (e.g., “INV-1001”)
- Formatting output for presentations
- Building dynamic dashboard labels
Method 1: Using the Ampersand (&) Operator
The simplest way to combine text and numbers is using the ampersand (&) operator. This method is:
- Fast to type
- Works in all Excel versions
- Easy to read in simple formulas
Syntax: =A1 & " text"
Example: If cell A1 contains 150, the formula =A1 & " products shipped" returns “150 products shipped”.
| Scenario | Ampersand Formula | Result |
|---|---|---|
| Basic concatenation | =50 & " kg" |
50 kg |
| With cell reference | =B2 & " items" |
If B2=120 → “120 items” |
| Multiple elements | =A1 & " of " & B1 & " total" |
Combines three elements |
Method 2: Using the CONCAT Function (Excel 2016+)
The CONCAT function replaces the older CONCATENATE function and offers:
- Better performance with many arguments
- Support for range references
- Cleaner syntax for complex concatenations
Syntax: =CONCAT(text1, [text2], ...)
Example: =CONCAT(SUM(A1:A10), " total sales") combines a calculated sum with text.
Performance Comparison
According to Microsoft’s official documentation, CONCAT is optimized for:
- Large datasets (20% faster than ampersand with 10+ arguments)
- Dynamic array formulas
- Future compatibility
Method 3: Using TEXTJOIN for Advanced Concatenation
TEXTJOIN (Excel 2019+) provides the most flexibility with:
- Custom delimiters between elements
- Option to ignore empty cells
- Support for ranges
Syntax: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Example: =TEXTJOIN(" ", TRUE, A1, "of", B1, "items") creates space-separated text while ignoring any empty cells.
| Feature | Ampersand | CONCAT | TEXTJOIN |
|---|---|---|---|
| Delimiter control | Manual | None | Built-in |
| Empty cell handling | Manual | Includes all | Optional ignore |
| Range support | No | Yes | Yes |
| Performance (100 items) | Slowest | Fast | Fastest |
Common Errors and Solutions
-
#VALUE! Error:
Cause: Trying to concatenate incompatible data types
Solution: Use
=TEXT(value, "format")to convert numbers to text firstExample:
=TEXT(A1, "0") & " units" -
Extra spaces:
Cause: Inconsistent spacing in source cells
Solution: Use
=TRIM()function to clean text -
Numbers appearing as dates:
Cause: Excel auto-formatting numeric strings
Solution: Pre-format cells as Text or use
=TEXT()function
Pro Tips for Professional Use
-
Dynamic labels: Combine with
=TODAY()for dated reports:=CONCAT("Report generated: ", TEXT(TODAY(), "mm-dd-yyyy")) -
Conditional concatenation: Use IF with concatenation:
=IF(A1>100, A1 & " (High)", A1 & " (Normal)") -
Array concatenation: In Excel 365, use:
=TEXTJOIN(", ", TRUE, A1:A10 & " items")
Performance Optimization
For large datasets, consider these optimization techniques from CFI’s Excel guides:
- Use TEXTJOIN instead of multiple ampersands for 5+ elements
- Pre-convert numbers to text with
=TEXT()when possible - Avoid volatile functions like TODAY() in concatenation formulas
- Use helper columns for complex concatenations in large tables
Real-World Applications
| Industry | Use Case | Example Formula |
|---|---|---|
| Retail | Inventory labels | =CONCAT("SKU-", A1, ": ", B1, " in stock") |
| Finance | Report headings | =TEXTJOIN(" ", TRUE, "Q", QUARTER(TODAY()), "Financials") |
| Manufacturing | Batch tracking | =A1 & "-B" & TEXT(B1, "000") |
| Education | Grade reports | =C1 & "% (" & IF(D1="Pass", "Approved", "Needs Review") & ")" |
Learning Resources
For further study, explore these authoritative resources:
- Microsoft Office Support: CONCAT Function
- GCFGlobal Excel Tutorials (Free educational resource)
- IRS Excel Guidelines for Financial Reporting (PDF)
Advanced Techniques
Combining with Other Functions
Power users often combine concatenation with:
-
VLOOKUP/XLOOKUP:
=CONCAT(XLOOKUP(A1, Table[ID], Table[Name]), " - ", XLOOKUP(A1, Table[ID], Table[Value])) -
Text functions:
=CONCAT(LEFT(A1, 3), "-", RIGHT(B1, 2)) -
Date functions:
=CONCAT("Week ", WEEKNUM(TODAY()), " Report")
Custom Number Formatting
Instead of concatenation, you can use custom number formats for display purposes:
- Select the cell with your number
- Press Ctrl+1 to open Format Cells
- Go to Custom category
- Enter format like:
0 "units"or$#,##0.00 "USD"
Advantage: The underlying value remains numeric for calculations while displaying with text.
BA vs. Concatenation
For complex string building, consider Excel’s Power Query (Get & Transform) which offers:
- Column merging with custom separators
- Better performance with millions of rows
- Non-destructive data transformation
According to University of Virginia’s data standards, Power Query should be preferred for:
- ETL (Extract, Transform, Load) processes
- Recurring reports with complex string requirements
- Data cleaning before analysis