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.

226<br />

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

<strong>Formula</strong>s in column E calculate the weighted values. The formula in E2 is<br />

=D2*B2<br />

Cell B8 computes the GPA by using the following formula:<br />

=SUM(E2:E6)/SUM(B2:B6)<br />

The preceding formulas work fine, but you can streamline the GPA calculation quite a bit. In fact,<br />

you can use a single array formula to make this calculation and avoid using the lookup table and<br />

the formulas in columns D and E. This array formula does the job:<br />

{=SUM((MATCH(Grades,{“F”,”D”,”C”,”B”,”A”},0)-1)*CreditHours)<br />

/SUM(CreditHours)}<br />

Performing a two-way lookup<br />

Figure 8-12 shows a worksheet with a table that displays product sales by month. To retrieve<br />

sales for a particular month and product, the user enters a month in cell B1 and a product name in<br />

cell B2.<br />

Figure 8-12: This table demonstrates a two-way lookup.<br />

To simplify things, the worksheet uses the following named ranges:<br />

Name Refers To<br />

Month B1<br />

Product B2<br />

Table D1:H14<br />

MonthList D1:D14<br />

ProductList D1:H1

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

Saved successfully!

Ooh no, something went wrong!