Format a cell value and return rich result with color metadata.
Supports conditional sections like [>100]#,##0;[<=100]0.00
and bracket color codes like [Red], [Color3].
A string value is formatted as a number only when its trimmed text is a
plain decimal number (' 12 ', '1e3'); any other text, and every string
under General or @, is returned unchanged. Numbers under General or
@ use Excel's General display (1e21 gives '1E+21').
Format a cell value and return rich result with color metadata. Supports conditional sections like
[>100]#,##0;[<=100]0.00and bracket color codes like[Red],[Color3].A string value is formatted as a number only when its trimmed text is a plain decimal number (
' 12 ','1e3'); any other text, and every string underGeneralor@, is returned unchanged. Numbers underGeneralor@use Excel's General display (1e21gives'1E+21').