ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do you subtract cells and then add those totals (https://www.excelbanter.com/excel-worksheet-functions/39581-how-do-you-subtract-cells-then-add-those-totals.html)

Debby_Jo

how do you subtract cells and then add those totals
 
I need a formulate to calculate the number of miles traveled per trip and
then have those differences totaled. I want to show the differences in one
cell and then the total will be at the bottom of the Excel spreadsheet

Bernard Liengme

In A1 enter starting mile reading. in B1 enter ending reading, in C1 enter
=B1-A1 to compute the distance travelled.
Enter values for other trips in the rows below. Copy the formula in C1 by
dragging the fill handle (little back square in lower right corner that
shows only when sell is selected)
I will assume you have 20 trips
In C21 enter =SUM(C1:C20) to get total mileage.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Debby_Jo" wrote in message
...
I need a formulate to calculate the number of miles traveled per trip and
then have those differences totaled. I want to show the differences in one
cell and then the total will be at the bottom of the Excel spreadsheet





All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com