
Functions for Conditional Calculations 77
Example 4.2 Analyzing Housing Sales Data
In this example exercise, we are given a worksheet as shown in Figure 4.4. The sheet
contains housing sales data from three counties. For each house sold, the data consist
of the name of the county, the number of days the house was on the market, and the
selling price.
Try It
Enter the following formula in a worksheet whose cells A1:B6 contain the data
given in Table 4.4:
=IF(SUMIF(A2:A6,“Grocery”,B2:B6)>SUMIF(A2:A6,“Grocery”,B2:B6),
“Grocery”,“Gas”)
Draw a fl owchart to explain the result.
We are interested in analyzing the data to answer the following questions.
The ...