Formatting Issues

Excel Formulas and Partial Cell Formatting: Bold, Italic, or Color Text

Huda QurayshiHuda Qurayshi Nov 12, 2026 869 views

Question details

The user wants an Excel formula result to include line breaks and apply different formatting to selected words within the same cell.

Excel Formulas and Partial Cell Formatting: Bold, Italic, or Color Text
Product
Microsoft Excel
Device & OS
not provided
Scenario
A formula combines text and needs to display selected words in bold, italics, or different colors while remaining in one cell.
Observed behavior
A standard Excel formula applies one cell format to the entire result and cannot apply rich-text formatting to only part of the returned text.
Before you start

Decide whether the cell must remain formula-driven and update automatically. If it does, partial formatting is not supported by a normal formula; if the result can become static text, a macro or manual formatting can be used.

Solution 1Recommended

Use a standard formula for text and line breaks, but format the entire cell

Use this approach when the formula must remain dynamic and uniform formatting is acceptable for the complete result.

A normal Excel formula can combine text and insert line breaks with CHAR(10), but the result uses one font style, color, and size for the entire cell. HTML tags such as <b> or <font> are displayed as text rather than interpreted as rich formatting in a standard worksheet cell.

1
Enable text wrapping

Select the formula cell, open the Home tab, and click Wrap Text in the Alignment group.

2
Insert a line break in the formula

Add CHAR(10) between text sections, for example: ="First line"&CHAR(10)&"Second line".

3
Apply uniform formatting

Select the complete cell and use the Home tab's Font controls to apply one font, color, bold style, or italic style to the entire formula result.

Important limitation: Formatting one word or phrase inside a live formula result is not supported by a standard Excel formula.
Free Microsoft Office alternative

Create Formula Text and Apply Cell Formatting in WPS Spreadsheets

WPS Office is a free, lightweight Microsoft Office alternative with a familiar spreadsheet interface and strong XLSX compatibility. Use WPS Spreadsheets to build formula-driven text with line breaks, apply consistent cell formatting, or convert results to values before formatting selected text manually.

  1. 1. Open the workbook: Launch WPS Spreadsheet, choose Open, and select the Excel XLSX file.
  2. 2. Create or edit the formula: Select a cell and enter a formula with CHAR(10) or the equivalent line-break method, then enable Wrap Text from the Home tab.
  3. 3. Format the cell or static text: Use the font controls to format the complete formula result, or copy the result and use Paste Special > Values before selecting individual words for rich-text formatting.
Create formula results with line breaks using familiar spreadsheet functions and cell settings.Apply bold, italic, font color, and text wrapping through an easy-to-use formatting interface.Open, edit, and save Microsoft Excel XLSX workbooks with broad format compatibility.Move between Microsoft Excel and WPS Office with a familiar layout and seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Can an Excel formula make only one word bold inside a cell?

No. A standard Excel formula returns one cell value and cannot apply bold formatting to only part of that value. Replace the result with static text or use VBA to format selected characters.

Can CHAR(10) add a line break without enabling rich text?

Yes. Use CHAR(10) between text segments, then select the cell and choose Home > Wrap Text. The line break works, but all text still shares the cell's overall formatting.

Do HTML tags format text inside an Excel formula result?

No. Tags such as <b> and <font color="red"> are normally displayed as literal characters in a worksheet cell. They do not create partial formatting in a standard formula result.

Will VBA formatting remain dynamic when the source cells change?

Not automatically. VBA can generate and format the text, but the macro must run again after source values change unless additional event-driven code is created.

How can I format selected words without using VBA?

Copy the formula result, use Home > Paste > Values to make it static, double-click the cell, select the words, and apply Bold, Italic, or Font Color from the Home tab.