Help?
I have created a mileage chart for site to site distances. The sites are listed horizontally and vertically. The bottom half is the distances between sites, the top half is for the cost. It's this that I am trying to calculate.
B2 = distance 1 = 100
B3 = distance 2 = 150
B4 = distance 3 = 200
B5 = distance 4 = 130
B6 = distance 5 = 50
Horizontally, I want a formula that will read the columns down and calculate the cost hoizontally. In the first cost cell reference A2, I have the formula:
=IF(B2>50,(B2+50)/2,50)
If the mileage is over 50 miles, the cost is £50+£0.50/additional mile. If less than 50 miles, it's a static cost of £50.
When I try to autofill the formula horizontally, it changes the cell references horizontally (C2,D2,E2,etc). I want to fill to the right but have it calculate using b3,b4,b5,etc.
Can anyone help?
I have created a mileage chart for site to site distances. The sites are listed horizontally and vertically. The bottom half is the distances between sites, the top half is for the cost. It's this that I am trying to calculate.
B2 = distance 1 = 100
B3 = distance 2 = 150
B4 = distance 3 = 200
B5 = distance 4 = 130
B6 = distance 5 = 50
Horizontally, I want a formula that will read the columns down and calculate the cost hoizontally. In the first cost cell reference A2, I have the formula:
=IF(B2>50,(B2+50)/2,50)
If the mileage is over 50 miles, the cost is £50+£0.50/additional mile. If less than 50 miles, it's a static cost of £50.
When I try to autofill the formula horizontally, it changes the cell references horizontally (C2,D2,E2,etc). I want to fill to the right but have it calculate using b3,b4,b5,etc.
Can anyone help?