11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

392<br />

Part IV: Array <strong>Formula</strong>s<br />

About the examples in this chapter<br />

This chapter contains many examples of array formulas. Keep in mind that you press<br />

Ctrl+Shift+Enter to enter an array formula. Excel places curly brackets around the formula to<br />

remind you that it’s an array formula. The array formula examples shown here are surrounded by<br />

curly brackets, but you should not enter the brackets because Excel will do that for you when<br />

the formula is entered.<br />

Figure 15-1: An array formula can sum a range of values, even if the range contains errors.<br />

The following array formula, in cell C13, overcomes this problem and returns the sum of the values,<br />

even if the range contains error values:<br />

{=SUM(IFERROR(C4:C10,””))}<br />

This formula works by creating a new array that contains the original values but without the<br />

errors. The IF function effectively filters out error values by replacing them with an empty string.<br />

The SUM function then works on this “filtered” array. This technique also works with other functions,<br />

such as AVERAGE, MIN, and MAX.<br />

The IFERROR function was introduced in Excel 2007. Following is a modified version of<br />

the formula that’s compatible with older versions of Excel:<br />

{=SUM(IF(ISERROR(C4:C10),””,C4:C10))}

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

Saved successfully!

Ooh no, something went wrong!