This document provides instructions for using Excel to calculate shipping costs based on distances between warehouses and cities, shipping quantities, and a per-unit cost. The tasks include:
1) Entering distance and shipping data into a worksheet renamed "Shipping Cost"
2) Calculating per-unit shipping costs between each warehouse-city pair and total costs for each shipment
3) Adding warehouse and city names and using MATCH to look up positions in distance and cost matrices instead of numbers
4) Saving the completed spreadsheet as "SHIPPING.XLS"
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views12 pages
Excel Exercise # 6
This document provides instructions for using Excel to calculate shipping costs based on distances between warehouses and cities, shipping quantities, and a per-unit cost. The tasks include:
1) Entering distance and shipping data into a worksheet renamed "Shipping Cost"
2) Calculating per-unit shipping costs between each warehouse-city pair and total costs for each shipment
3) Adding warehouse and city names and using MATCH to look up positions in distance and cost matrices instead of numbers
4) Saving the completed spreadsheet as "SHIPPING.XLS"
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 12
EXCEL EXERCISE # 6
EXCEL EXERCISE # 6 Shipping Cost Computation
A company supplies its product to four cities
from five warehouses. A shipping plan is given. The per unit shipping cost per unit distance is given as 5 monetary units. The distances between the five warehouses and the four cities are also given. With this data compute the cost of shipping the various quantities given between the warehouses and the cities. Enter the following information onto Sheet1. Double click on the tab for the worksheet and rename it: Shipping Cost. Compute the cost of shipping one unit between each pair of warehouse and city. That is, you need to obtain a five by four array by multiplying each element of the distance array by the per unit cost given in K2. Let us allocate the range C22:F26. Enter the formula: C22: =$K$2*C13
Copy this in all cells C22:F26
In the range E3:E8, compute the cost between each warehouse city pair for the given shipping plan, by multiplying the shipping quantity with the per unit shipping cost between the corresponding warehouse and city. Enter the formula: E3: =D3*Index($c$22:$f$26,b3,c3)
Copy the above formula to E4:E8
Your spreadsheet should now look like this Suppose rows and columns of the distance matrix are labeled with names of their respective warehouses and cities respectively; similarly, in the shipping plan, instead of warehouse and city numbers, the corresponding names are given. In this case, in each transaction, you need to convert the warehouse and city names to the row and column numbers in which their costs occur in the matrix. Your spreadsheet should now look like this Enter the following formula in the given cells:
Cell Formula Comments
C3 =Match(B3,$G$13:$G$17,0) Returns the position of BLR in
vector G3:G 17 Copy this to range C4:C8
E3 = Match(D3,$H$12:$K$12,0) Returns position of MUM in
vector H12:K 12 Copy this to range E4:E8
G3 =$M$3*$F$3*Index($H$13:$K$17,C3,E3) Copy this to range G4:G8
What have you done: You used a function that tells you the position of a given value within a vector of values. This capability is provided by the function MATCH.
Note that the two functions INDEX and MATCH are
somewhat opposite in their tasks: INDEX returns a value occurring at a specified location in a specified vector or a matrix, whereas MATCH returns the location in a vector where a given value occurs. Your final spreadsheet should now look like this Save the spreadsheet: SHIPPING.XLS