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.

Chapter 19: Conditional Formatting and Data Validation 539<br />

Figure 19-18: Using conditional formatting to produce a checkerboard effect.<br />

Displaying a total only when all values are entered<br />

Figure 19-19 shows a range with a formula that uses the SUM function in cell C6. Conditional formatting<br />

is used to hide the sum if any of the four cells above is blank. The conditional formatting<br />

formula for cell C6 (and cell C5, which contains a label) is<br />

=COUNT($C$2:$C$5)=4<br />

This formula returns TRUE only if C2:C5 contains no empty cells.<br />

Figure 19-19: The sum is displayed only when all four values have been entered.<br />

Figure 19-20 shows the worksheet when one of the values is missing.

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

Saved successfully!

Ooh no, something went wrong!