Function Problems

How to Combine an Excel SUM Formula with Text

Elise WilliamsElise Williams Nov 10, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the SUM formula

Select your target cell and enter the standard SUM formula, such as =SUM(A3:D3), then press Enter.

2
Open Format Cells

Right-click the cell containing your formula and select 'Format Cells' from the context menu, or press Ctrl+1 on your keyboard.

3
Set the Custom Format

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.

Apply a Custom Number Format to Preserve Numeric Values
Calculation Safe: Because the underlying value remains numeric, you can safely reference this cell in other calculations without getting a #VALUE! error.
Simplify Your Workflow

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. 1. Open your workbook: Launch WPS Office and open your spreadsheet document containing the data.
  2. 2. Apply formulas or formats: Use the exact same =SUM() formulas and the Ctrl+1 shortcut to access the Format Cells dialog.
  3. 3. Customize text display: Enter your custom format in the Custom category to instantly add explanatory text to your numeric totals.
Fully compatible with Microsoft Excel formulas and custom number formats.Intuitive interface for quickly applying advanced cell formatting to your datasets.Lightweight and completely free to use for everyday office and data-analysis tasks.
microsoft office alternative - wps office

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.