Question 1
A financial analyst is creating a summary report. In cell C10, they need to display a custom format for sales figures that are in cell B10. The requirements are:
- Numbers should be displayed in millions, with one decimal place (e.g., 2,550,000 should appear as 2.6 M).
- Positive numbers should be black.
- Negative numbers should be red and enclosed in parentheses.
- Zero values should be displayed as a hyphen "-".
Which custom number format code should be applied to cell C10?
Answer and explanation
Correct answer: B
This is the correct format string. The structure for custom formats is Positive;Negative;Zero;Text. #.0,," M" correctly formats positive numbers to millions with one decimal place. The two commas are crucial for dividing by one million. [Red](#.0,," M") handles negative numbers by setting the color to red and enclosing them in parentheses. The hyphen - correctly specifies the format for zero values. The final semicolon is optional but good practice.