Format Different Text Colors Within a Cell in Excel for the Web
Question details
The user wants to apply different font colors to text or lines within a single cell in a shared Excel workbook.

- Product
- Excel for the web
- Device & OS
- not provided
- Scenario
- The workbook is shared online, and the user wants to distinguish parts of a cell's text by color.
- Observed behavior
- Excel for the web does not provide a built-in way to apply different font colors to individual characters or lines within a cell.
Make sure you have edit permission for the shared workbook and access to desktop Excel. Keep the workbook in OneDrive or SharePoint so your saved changes are available to collaborators.
Apply Character-Level Colors in Desktop Excel
Use desktop Excel to format selected text within a cell, then save the changes back to the shared workbook.
This workaround requires the desktop app; it does not add character-level color controls to Excel for the web.
In Excel for the web, open the workbook from OneDrive or SharePoint, then choose Open in Desktop App from the editing or open options.
In desktop Excel, double-click the cell and place the cursor where you want a new line. On Windows, press Alt+Enter to insert a line break.
While editing the cell, drag to select the characters or line you want to format. On the Home tab, choose a color from Font Color, then repeat for other text.
Choose File > Save, or use AutoSave if it is enabled, to sync the changes to OneDrive or SharePoint. Reopen or refresh the workbook in the browser to view the saved version.

Edit Excel Workbooks with WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel formats, making it easy to move existing workbooks into WPS. It does not change Excel for the web's formatting controls.

Frequently Asked Questions
Can I color just one word in a cell in Excel for the web?
Excel for the web does not provide a built-in control for coloring individual characters within a cell. Open the workbook in desktop Excel, select the word while editing the cell, and use Home > Font Color.
How do I put multiple lines in one Excel cell?
In desktop Excel on Windows, double-click the cell, position the cursor where the line should break, and press Alt+Enter.
Will my changes be available in the shared workbook?
If you open the OneDrive or SharePoint workbook in desktop Excel and save it back to the same location, collaborators can access the saved changes. Check that the save or sync has completed.
How can I request this feature for Excel for the web?
Use the Feedback option in Excel for the web, if available, to suggest character-level font colors. You can also vote for an existing related request through Microsoft's feedback channels.




