**Exp19_Excel_Ch07_CapAssessment_Shipping**

**Project Description:**

You work for a company that sells cell phone accessories. The company has distribution centers in three states. You want to analyze shipping data for one week in April to determine if shipping times are too long. You will perform other analysis and insert a map. Finally, you will prepare a partial loan amortization table for a new delivery van.

Start Excel. Download and open the file named *Exp19_Excel_Ch07_CapAssessment_Shipping.xlsx*. Grader has automatically added your last name to the beginning of the filename.

The Week worksheet contains data for the week of April 5.

In cell D7, insert the appropriate date function to calculate the number of days between the Date Arrived and Date Ordered. Copy the function to the range D8:D35.

Next, you want to display the city names that correspond with the city airport codes.

In cell F7, insert the SWITCH function to evaluate the airport code in cell E7. Include mixed cell references to the city names in the range F2:F4. Use the airport codes as text for the Value arguments. Copy the function to the range F8:F35.

Now you want to display the standard shipping costs by city.

In cell H7, insert the IFS function to identify the shipping cost based on the airport code and the applicable shipping rates in the range G2:G4. Use relative and mixed references correctly. Copy the function to the range H8:H35.

Finally, you want to calculate a partial shipping refund if two conditions are met.

In cell I7, insert an IF function with a nested AND function to determine shipping refunds. The AND function should ensure both conditions are met: Total Days is grater than Total Days Delivery Goal (cell C3) and Order Total is equal to or greater than Order Total Threshold (cell C2). If both conditions are met, the refund is 50% (cell C4) of the Shipping Cost. Otherwise, the refund is $0. Use mixed references as needed. Copy the function to the range I8:I35.

The Stats worksheet contains similar data. Now you want to enter summary statistics.

In cell B2, insert the COUNTIF function to count the number of shipments for Austin (cell B1). Use appropriate mixed references to the range argument to keep the column letters the same. Copy the function to the range C2:D2.

In cell B3, insert the SUMIF function to calculate the total orders for Austin (cell B1). Use appropriate mixed references to the range argument to keep the column letters the same. Copy the function to the range C3:D3.

In cell B4, insert the AVERAGEIF function to calculate the average number of days for shipments from Austin (cell B1). Use appropriate mixed references to the range argument to keep the column letters the same. Copy the function to the range C4:D4.

Now you want to focus on shipments from Houston where the order was greater than $1,000.

In cell C7, insert the COUNTIFS function to count the number of orders where the Airport Code is IAH (Cell D1) and the Order Total is greater than $1,000.

In cell C8, insert the SUMIFS function to calculate the total orders where the Airport Code is IAH (Cell D1) and the Order Total is greater than $1,000.

In cell C9, insert the MAXIFS function to return the highest order total where the Airport Code is IAH (Cell D1) and the Order Total is greater than $1,000.

On the Map worksheet, insert a map for the states and revenues. Cut and paste the map in cell C1.

Format the data series to show only regions with data and show all map labels.

Change the map title to **April 5-9 Gross Revenue**.

Use the Loan worksheet to complete the loan amortization table.

In cell F2, insert the IPMT function to calculate the interest for the first payment. Copy the function to the range F3:F25. (The results will update after you complete the other functions and formulas.)

In cell G2, insert the PPMT function to calculate the principal paid for the first payment. Copy the function to the range G3:G25.

In cell H2, insert a formula to calculate the ending principal balance. Copy the formula to the range H3:H25.

Now you want to determine how much interest was paid during the first two years.

In cell B10, insert the CUMIPMT function to calculate the cumulative interest after the first two years. Make sure the result is positive.

In cell B11, insert the CUMPRINC function to calculate the cumulative principal paid at the end of the first two years. Make sure the result is positive.

You want to perform a what-if analysis to determine the rate if the monthly payment is $1,150 instead of $1,207.87.

In cell B15, insert the RATE function to calculate the necessary monthly rate given the NPER, proposed monthly payment, and loan. Make sure the result is positive.

Finally, you want to convert the monthly rate to an APR.

In cell B16, insert a formula to calculate the APR for the monthly rate in cell B15.

Insert a footer on all sheets with your name on the left side, the sheet name code in the center, and the file name code on the right side.

Save and close *Exp19_Excel_Ch07_CapAssessment_Shipping.xlsx*. Exit Excel. Submit the file as directed.