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.

Creating Formulas That Count and Sum 14<br />

FIGURE 14.11<br />

Simple formulas in column C display a cumulative sum of the values in column B.<br />

You can use an IF function to hide the cumulative sums for rows in which data hasn’t been entered. The<br />

following formula, entered in cell C2 and copied down the column, is<br />

=IF(B2””,SUM(B$2:B2),””)<br />

Figure 14.12 shows this formula at work.<br />

FIGURE 14.12<br />

Using an IF function to hide cumulative sums for missing data.<br />

ON the CD-ROM<br />

This workbook is available on the companion CD-ROM. The file is named cumulative<br />

sum.xlsx.<br />

267

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

Saved successfully!

Ooh no, something went wrong!