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.

Chapter 7: Counting and Summing Techniques 189<br />

Counting cells that meet multiple criteria<br />

In many cases, your counting formula will need to count cells only if two or more criteria are met.<br />

These criteria can be based on the cells that are being counted or based on a range of corresponding<br />

cells.<br />

Figure 7-2 shows a simple worksheet that I use for the examples in this section. This sheet shows<br />

sales figures (Amount) categorized by Month, SalesRep, and Type. The worksheet contains<br />

named ranges that correspond to the labels in row 1.<br />

Figure 7-2: This worksheet demonstrates various counting techniques that use multiple criteria.<br />

The workbook multiple criteria counting.xlsx is available on the companion<br />

CD-ROM.<br />

Several of the examples in this section use the COUNTIFS function, which was introduced<br />

in Excel 2007. I also present alternative versions of the formulas, which you<br />

should use if you plan to share your workbook with others who use an earlier version of<br />

Excel.<br />

Using And criteria<br />

An And criterion counts cells if all specified conditions are met. A common example is a formula<br />

that counts the number of values that fall within a numerical range. For example, you may want<br />

to count cells that contain a value greater than 100 and less than or equal to 200. For this example,<br />

the COUNTIFS function will do the job:<br />

=COUNTIFS(Amount,”>100”,Amount,”

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

Saved successfully!

Ooh no, something went wrong!