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.

192<br />

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

Because you have to repeat the And portion of the criteria in each function’s arguments, using<br />

COUNTIFS can produce long formulas with more criteria. When you have a lot of criteria, it<br />

makes sense to use an array formula, like this one that produces the same result:<br />

{=SUM((Month=”January”)*((SalesRep=”Brooks”)+(SalesRep=”Cook”)))}<br />

Counting the most frequently occurring entry<br />

Excel’s MODE function returns the most frequently occurring value in a range. Figure 7-3 shows a<br />

worksheet with values in range A1:A10 (named Data). The formula that follows returns 10 because<br />

that value appears most frequently in the Data range:<br />

=MODE(Data)<br />

The formula returns an #N/A error if the Data range contains no duplicated values.<br />

Figure 7-3: The MODE function returns the most frequently occurring value in a range.<br />

To count the number of times the most frequently occurring value appears in the range (in other<br />

words, the frequency of the mode), use the following formula:<br />

=COUNTIF(Data,MODE(Data))<br />

This formula returns 5 because the modal value (10) appears five times in the Data range.<br />

The MODE function works only for numeric values, and it ignores cells that contain text. To find<br />

the most frequently occurring text entry in a range, you need to use an array formula.<br />

To count the number of times the most frequently occurring item (text or values) appears in a<br />

range named Data, use the following array formula:<br />

{=MAX(COUNTIF(Data,Data))}

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

Saved successfully!

Ooh no, something went wrong!