18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part IV<br />

Using Advanced Excel Features<br />

Another variation follows. This adds the letter M to the end of the value.<br />

#,###,,M<br />

The following format string is a bit more complex. It adds the letter M to the end of the value — and also<br />

displays negative values in parentheses as well as displaying zeros.<br />

#,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_)<br />

Table 24.7 shows examples of these format strings.<br />

TABLE 24.7<br />

Examples of Displaying Values in Millions<br />

Value Number Format Display<br />

123456789 #,###,, 123<br />

1.23457E+11 #,###,, 123,457<br />

1000000 #,###,, 1<br />

5000000 #,###,, 5<br />

–5000000 #,###,, –5<br />

0 #,###,, (blank)<br />

123456789 #,###.00,, 123.46<br />

1.23457E+11 #,###.00,, 123,457.00<br />

1000000 #,###.00,, 1.00<br />

5000000 #,###.00,, 5.00<br />

–5000000 #,###.00,, –5.00<br />

0 #,###.00,, .00<br />

123456789 #,###,,”M” 123M<br />

1.23457E+11 #,###,,”M” 123,457M<br />

1000000 #,###,,”M” 1M<br />

5000000 #,###,,”M” 5M<br />

–5000000 #,###,,”M” –5M<br />

0 #,###,,”M” M<br />

123456789 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) 123.5M<br />

1.23457E+11 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) 123,456.8M<br />

1000000 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) 1.0M<br />

5000000 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) 5.0M<br />

–5000000 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) (5.0M)<br />

0 #,###.0,,”M”_);(#,###.0,,”M)”;0.0”M”_) 0.0M<br />

474

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!