For this project, you build one- and two-variable data tables for Perfect Vacation Rentals. You also create array formulas. File Needed: [your initials] Week12Practice01.xlsx Completed Project File Name: [your initials] Week12Practice02.xlsx Open the [your initials] Week12Practice01 workbook completed Practice1 and save it as [your initials] Week12Practice02. Select the P&L worksheet tab. Create a one-variable data table. Select cell L5. This cell is one column to the right and one row above the first input value (cell K6). Type =, select cell C30, and press Enter to create a reference to the total expenses formula for July. Select cell M5 and create a reference to cell C32 for the income formula for July (Figure 9-35). Figure 9-35 Formula reference in the data table Select cells K5:M16 as the data table range. Click the What-If Analysis button [Data tab, Forecast group] and choose Data Table. Click the Column input cell entry box and select cell C13. The July revenue amount will be replaced by the input values in column K in both formulas. Click OK to create the data table. Select cells L6:M16 and format them as Accounting Number format with 0 decimal places. AutoFit columns that do not display all the data (Figure 9-36). Figure 9-36 One-variable data table results Create a two-variable data table. Select cell K19 to place the formula reference one row above the column input values and one column to the left of the row values. Type =, select cell C32, and press Enter to create a reference to the income formula for July. Select cells K19:S32 as the data table range. Click the What-If Analysis button [Data tab, Forecast group] and choose Data Table. Select cell C30 for the Row input cell box. The values in row 19 will be substituted for the expense in cell C30. Click the Column input cell box and select cell C13. The values in column K will be substituted for the revenue amount in cell C13 (Figure 9-37). Figure 9-37 Two-variable table setup Click OK to build the data table. Some results are negative, meaning a net loss. Note that cells in row 19 are inconsistently formatted as Currency and Accounting Number. Format all cells in the data table as Accounting Number format with 0 decimal places. AutoFit columns that do not display all the data. Edit input values for a table. Select cell L19 and enter 115000 as a new value. Select cell M19 and enter 130000 to start a new series. Select cells L19:M19 and fill values to reach cell S19. The data table updates with fewer negative results (Figure 9-38). Figure 9-38 Completed two-variable table Use SUM in an array formula. Select the Arrays worksheet tab and select cell G4. The formula will sum the product of cells C4:C14 and cells D4:D14. Type =sum and press Tab. Select cells C4:C14 and type * for multiplication. Select cells D4:D14 and press Enter. The result is $675.97. Select cell H4 and click the Insert Function button in the Formula bar. Select SUM in the Most Recently Used list and click OK. (If SUM does not display in the list, select Math & Trig as the category and locate and select SUM.) Select cells C4:C14 and type * for multiplication in the Number1 argument box. Select cells E4:E14 and press Enter. The result is $1,310.97 (Figure 9-39). Figure 9-39 Array formula in the Function Arguments dialog box Spill array formula results. Select the Rates worksheet tab and select cell F5. The formula will subtract the median rent in cell D36 from the daily rate in column D. Type = to start the formula and select cells D5:D30. Type − for subtraction and click cell D36 (Figure 9-40). Figure 9-40 Array formula with subtraction Press Enter. The dynamic array is the same dimension as the formula array. A negative value is less than the median. Nest an ABS function with an array formula. Select cell G5. To calculate the average difference between the rate and the median rate, you should not use negative values. Click the Insert Function button in the Formula bar, select the Statistical category, and choose AVERAGE. Nest an ABS function from the Math & Trig category in the Number1 argument box. The argument for the ABS function is Number. Select cells D5:D30, type − for subtraction, and select cell D36 (Figure 9-41). Figure 9-41 Nested array formula Click AVERAGE in the Formula bar and click OK. Format the result with no decimal places. It rounds up to 74. Select cells F5:F30 and apply All Borders. Apply an Outside Border to cell G5. Save and close the workbook (Figure 9-42). Figure 9-42 completed