11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

126<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Here’s a final example of using the & operator. In this case, the formula combines text with the<br />

result of an expression that returns the maximum value in column C:<br />

=”The largest value in Column C is “ &MAX(C:C)<br />

Excel also has a CONCATENATE function, which takes up to 255 arguments. This function<br />

simply combines the arguments into a single string. You can use this function if<br />

you like, but using the & operator is usually simpler.<br />

Displaying formatted values as text<br />

The Excel TEXT function enables you to display a value in a specific number format. Although this<br />

function may appear to have dubious value, it does serve some useful purposes, as the examples<br />

in this section demonstrate. Figure 5-2 shows a simple worksheet. The formula in cell A5 is<br />

=”The net profit is “ & B3<br />

Figure 5-2: The formula in A5 doesn’t display the formatted number.<br />

This formula essentially combines a text string with the contents of cell B3 and displays the<br />

result. Note, however, that the value from cell B3 is not formatted in any way. You might want to<br />

display B3’s contents using a currency number format.<br />

Contrary to what you might expect, applying a number format to the cell that contains<br />

the formula has no effect. This is because the formula returns a string, not a value.<br />

Note this revised formula that uses the TEXT function to apply formatting to the value in B3:<br />

=”The net profit is “ & TEXT(B3,”$#,##0.00”)<br />

This formula displays the text along with a nicely formatted value: The net profit is $118,950.85.

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

Saved successfully!

Ooh no, something went wrong!