Using Advanced Formulas For Business Application
Using Advanced Formulas For Business Application
OTHER VISUALIZATIONS
1. LAUNCH Excel.
2. OPEN the M 4-Topic 1. Exercise 1 file for this lesson, and SAVE it to your M4-Topic
1. Exercises folder as M4-Topic 1. Exercise 1 Solution.
3. Select H5. Click the Formulas tab and then in the Function Library group, click Math
& Trig. Scroll to and click SUMIF. The Function Arguments dialog box opens with text
boxes for the arguments, a description of the formula, and a description of each
argument.
4. In the Function Arguments dialog box, click the Collapse Dialog button for the Range
argument. This allows you to see more of the worksheet. Select the cell range C5:C16.
Press Enter. By doing this, you apply the cell range that the formula will use in the
calculation.
5. In the Criteria box, type >200000 and then press Tab. The figure below shows that the
Sum_ range text box is not bold. This means that this argument is optional. If you leave
the Sum_range blank, Excel sums the cells you enter in the Range box. You now applied
your criteria to sum all values that are greater than $200,000.
➔ Take Note: I t is not necessary to type dollar signs or commas when entering dollar
amounts in the Function Arguments dialog box. If you type them, Excel removes them
from the formula and returns an accurate value. The cells in column H where you will
enter formulas have already been formatted for the data.
6. Click OK to accept the changes and close the dialog box. You see that $1,657,100 of
Fabrikam’s December revenue came from properties valued in excess of $200,000.
7. If for some reason you need to edit the formula, select the cell that contains the function,
and on the Formulas tab, or in the Formula Bar, click the Insert Function button to
return to the Function Arguments d ialog box (shown here).
➔ Take Note: T he result of the SUMIF formula in H5 does not include the property value
in C15 because the formula specified values greater than $200,000. To include this
value, the criterion needs to be >= (greater than or equal to).
➔ Take Note: W hen you click Recently Used, the last function that you used appears at
the top of the list. Similarly, when you click Insert Function, the Insert Function dialog
box opens with the last used function highlighted.
➔ Take Note: Y ou do not need to collapse the dialog box as you did in Step 3. You can
directly highlight the range if the dialog box is not in the way. Another option is to
move the dialog box by dragging the title bar.
➔ Troubleshooting: It is a good idea to press Tab after your last entry and preview the
result of the function to make sure you entered all arguments correctly.
★ The formulas you use in this exercise analyze the data on two criteria. You can continue
to add up to 127 criteria on which data can be evaluated.
★ Because the order of arguments is different in SUMIF and SUMIFS, if you want to copy
and edit these similar functions, be sure to put the arguments in the correct order (first,
second, third, and so on).
★ In this exercise, you practice using the COUNTIF function twice to calculate the number
of homes sold and listed >=200,000.
○ The ranges you specify in these COUNTIF formulas are prices of homes.
○ The criterion selects only those homes that are $200,000 or more.
7. In the Criteria_range2 box, select cells E5:E16. You selected your second range to be
calculated.
8. In the Criteria2 box, type >=5% and then press Tab to preview. Click OK. Excel returns
a value of 2.
9. SAVE the workbook.
10. LEAVE t he workbook open for the next exercise.
★ A cell in the range you identify in the Function Arguments dialog box is counted only if
all of the corresponding criteria you specified are TRUE for that cell.
★ If a criterion refers to an empty cell, COUNTIFS treats it as a 0 value.
➔ Take Note: W hen you create formulas, you can use the wildcard characters, question
mark (?) and asterisk (*), in your criteria. A question mark matches any single
character; an asterisk matches any number of characters. If you want to find an actual
question mark or asterisk, type a grave accent (`) preceding the character.
★ In this exercise, you first find the average of all cells in a range and then find a
conditional average.
★ You entered only two criteria for the SUMIFS, COUNTIFS, and AVERAGEIFS formulas
you created in the previous exercises.
★ In large worksheets, you often need to use multiple criteria for the formula to return a
value that is meaningful for your analysis.
★ You can enter up to 127 conditions that data must match in order for a cell to be included
in the conditional summary that results from a SUMIFS, COUNTIFS, or AVERAGEIFS
formula.
★ The following statements summarize how values are treated when you enter an
AVERAGEIF or AVERAGEIFS formula:
○ If Average_range is omitted from the function arguments, the range is used.
○ If a cell in Average_range is an empty cell, AVERAGEIF ignores it.
○ If the entire range is blank or contains text values, AVERAGEIF returns the
#DIV/0! error value.
○ If no cells in the range meet the criteria, AVERAGEIF returns the #DIV/0! error
value.
➔ Take Note: Entering True as the Range_lookup argument returns the closest value.
False returns only an exact value. If you omit the Range_lookup argument, as in Step
10 in the previous exercise, Excel assigns the True argument when you click OK (though
it does not appear in the formula).
9. In cell H5, type =IF(G5=”Yes”,E5*D5,0. Before you complete the formula, notice the
ScreenTip, the cells selected, and the colors. Move the mouse pointer to each of the
arguments and they become a hyperlink. E5 is the individual bonus rate and D5 is the
actual sales. The bonus is the rate times the sales.
10. Press Enter to complete the formula.
11. Click cell H5 and use the fill handle to copy the formula to H6:H11.
12. In I5, type =IF($G$12=”Yes”,F5*D5,0) and then press Enter.
13. Use the fill handle in I5 to copy the formula to I6:I11. Notice that Richard Carey, the
Senior Partner, did not receive an Agent Bonus and there was no bonus for Back Office.
➔ Take Note: In some cases, Excel completes the formula. In Step 8, the closing
parenthesis was not added, and Excel was able to complete the formula.
14. The final pending sale of $700,000 of the year came through. In D5, type $3,900,000.
Notice that H5 and the amounts in column I go from 0 to bonuses (see below).
15. SAVE the workbook.
16. LEAVE t he workbook open for the next exercise.
★ Again, the AND function returns a TRUE result only when both conditions in the
formula are met.
★ For example, consider the results you achieved in the preceding exercise. Sales in the
second year exceeded sales for the previous year; therefore, the first condition is met.
Year 2 sales also exceeded Year 1 sales by 5 percent. Because both conditions are met, the
formula returns a TRUE result.
★ Now consider the arguments for the logical tests for Year 3 (the formula in D6). Sales did
not exceed the sales goal; therefore, the first argument returns a FALSE value. However,
sales did exceed the previous year’s sales by 5 percent. When only one condition is met,
the formula returns FALSE.
➔ Take Note: As you add arguments, the Logical fields in the Function Arguments
dialog box expand to allow you to enter multiple arguments.
➔ Take Note: T he PROPER function capitalizes the first letter in each word in a text
string. All other letters are converted to lowercase. If you have an apostrophe within
the text, such as David’s, Excel recognizes the apostrophe as a break and capitalizes the
result as David’S.