Text Functions
Intermediate

TEXT for a percentage in a sentence

The same problem as DOLLAR, for any format: TEXT takes a format code.

Task:

The board summary needs a line per division such as Margin: 23.5%. Build it in C2:C5 from the margin in B, which is stored as a decimal.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

5 rows × 3 columns4 cells you fill in
ABC
1DivisionMarginSummary
2Retail0.2345
3Wholesale0.118
4Online0.3071
5Trade0.09
What this exercise teachesMay contain the answer

DOLLAR only knows one format. TEXT accepts the same codes as the Format Cells dialog, so percentages, dates and padded numbers can all be dropped into a sentence. The format code also rounds for display: 0.2345 reads as 23.5%.