How to Combine an Excel SUM Formula with Text
Question details
The user needs to display a numeric total calculated by a SUM formula alongside explanatory text within the same cell.
- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Calculating totals and adding descriptive labels or units directly in the result cell for reporting and presentation.
- Observed behavior
- A calculation must display a numeric total together with explanatory text in the same Excel cell, either by converting it to a text string or keeping it formatted as a number.
Determine whether the final cell result needs to be used in further mathematical calculations. If it does, you must use a custom number format instead of a text-concatenation formula.
Apply a Custom Number Format to Preserve Numeric Values
Use this method if you need to use the summed total in other formulas. It changes how the cell looks but keeps the underlying data as a calculable number.
A custom number format is the safest way to add descriptive text to a number in Excel. Because it only alters the visual display of the cell, the underlying value remains a pure number, preventing calculation errors in linked cells.
Select your target cell and enter the standard SUM formula, such as =SUM(A3:D3), then press Enter.
Right-click the cell containing your formula and select 'Format Cells' from the context menu, or press Ctrl+1 on your keyboard.
Go to the 'Number' tab and select 'Custom' from the category list. In the 'Type' field, enter your desired format with text wrapped in quotation marks, such as #,##0" items in total", and click OK.

Combine SUM and TEXT Functions with an Ampersand
Use this method if the result is strictly for display or reporting purposes and will not be used in further calculations.
Format and Calculate Data Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful formula calculation and flexible cell formatting tools, allowing you to combine text and numbers seamlessly just like in Microsoft Excel.
- 1. Open your workbook: Launch WPS Office and open your spreadsheet document containing the data.
- 2. Apply formulas or formats: Use the exact same =SUM() formulas and the Ctrl+1 shortcut to access the Format Cells dialog.
- 3. Customize text display: Enter your custom format in the Custom category to instantly add explanatory text to your numeric totals.

Frequently Asked Questions
Why do I get a #VALUE! error when adding a text string directly to a SUM formula?
If you type something like =SUM(A1:A5) + " items", Excel attempts to mathematically add text to a number, which causes a #VALUE! error. You must use the ampersand (&) operator to concatenate them, like =SUM(A1:A5) & " items".
Can I put the text before the SUM result?
Yes. To display text before the number using a formula, place the text first in quotes followed by the ampersand, such as ="Total: " & TEXT(SUM(A3:D3), "#,##0"). For custom number formatting, input it as "Total: "#,##0 in the Format Cells dialog.
How do I add a space between the calculated number and the text?
When using the formula and ampersand method, make sure to include a space inside the quotation marks, like & " items" instead of & "items". The same rule applies to Custom Number Formats; include the space immediately inside the first quote.
Does combining text and formulas work the same way in WPS Office?
Yes, WPS Spreadsheet uses the exact same syntax for formulas like SUM and TEXT, as well as the exact same Custom Number Formatting codes, ensuring 100% compatibility with your existing Excel files.




