+ Reply to Thread
Results 1 to 9 of 9

Formula to calculate Fuel Consumption

  1. #1
    Registered User
    Join Date
    02-02-2008
    Location
    Tirana, Albania
    MS-Off Ver
    MS Office 2016
    Posts
    21

    Help with Calculating Fuel Consumption

    I need some help in calculating automatically the fuel consumption per 100 kms in a worksheet that contains 31 rows (days of the month) and four columns as follows:
    1. Date (representing each day of the month)
    2. Fuel Tank filling in litres (usually shows 3-4 fillings in different days of the month)
    3. Kilometres Reading at the moment of fuel tank top-up
    4. The formula column, which needs to calcualate automatically the fuel consumption/100 kms whenever there are new entries in columns 2 and 3 as shown above.

    Normally to calculate the fuel consumption/100 kms is:
    x= litres x 100 kms / kms done

    The kms done is calcualted by deducting the Current Kms Reading from the previous Kms Reading.

    I have attached a zipped excel file as an example.

    I would appreciate your help

    Thanx
    Attached Files Attached Files
    Last edited by Biancodi; 02-02-2008 at 03:11 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I'd do it like this:
    Please Login or Register  to view this content.
    The formula in D3 and copied down is =100 * C3 / (B3 - B2)

  3. #3
    Registered User
    Join Date
    02-02-2008
    Location
    Tirana, Albania
    MS-Off Ver
    MS Office 2016
    Posts
    21
    Quote Originally Posted by shg
    I'd do it like this:
    Please Login or Register  to view this content.
    The formula in D3 and copied down is =100 * C3 / (B3 - B2)
    Thanx for simplifying the table. My table should show the calendaric days of the month in succession (30 or 31 days). The question is how to make the automated formula when there are blanks in different rows, as the vehicle does not need to top up everyday of the month.

    I would appreciate your help.
    Last edited by Biancodi; 02-02-2008 at 04:08 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In your spreadsheet in D4 and copy down,

    =IF( C4="", "", 100 * B4 / (C4 - MAX(C$3:C3) ) )

  5. #5
    Registered User
    Join Date
    02-02-2008
    Location
    Tirana, Albania
    MS-Off Ver
    MS Office 2016
    Posts
    21

    Fuel Calculation - Tried the formula, didn't get the result

    Quote Originally Posted by shg
    In your spreadsheet in D4 and copy down,

    =IF( C4="", "", 100 * B4 / (C4 - MAX(C$3:C3) ) )
    Thanks for providing the formula...I tried it but did not give the expected results.

    I have attached the excel form showing both the formula used as per your instruction and a new column showing the expected results, which do not match.

    I would appreciate if you can have a look at it and see if there is any solution.

    Thanx
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Put the formula in the first wookbook you posted.

  7. #7
    Registered User
    Join Date
    02-02-2008
    Location
    Tirana, Albania
    MS-Off Ver
    MS Office 2016
    Posts
    21

    Fuel Calculation

    Quote Originally Posted by shg
    Put the formula in the first wookbook you posted.
    That's marevellous!!!

    Sorry to keep bugging you...is there a way to link worksheets...I mean..to calculate the first topup of the second worksheet with the last one in the first worksheet (see the attached file)
    - and the final...final...is there a way to link workbooks???

    thank you very much...
    Attached Files Attached Files

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Sure there is, it would just be messy. That's why I suggested using the other format.

    Why does it need to be arranged like this?

  9. #9
    Registered User
    Join Date
    02-02-2008
    Location
    Tirana, Albania
    MS-Off Ver
    MS Office 2016
    Posts
    21

    Fuel Consumption

    Thank you for helping me with the formula. I am working as logistician with NGO's in different countries and I want to have national logistics staff to do the data entry. The reason that I need all the calendaric days is that I also add other columns to the worksheet such fuel price, total fuel cost, maintenance etc.

    In fact it would be useful for me to have workbook links rather than worksheet links, as I need several worksheets in one workbook.


    Each worksheet will represent one vehicle and there can possibly by 5 to 10 vehicles (worksheets) in one workbook.

    Each workbook will represent one month and I organise 12 months, as well as three, six, nine and twelve workbooks to give me automatic reports for the vehicles.

    I have already linked the workbooks for the information that I mentioned above. The fuel consumption/100 kms is a new information that I am planning to add on the worksheets.

    I have already protected the formula so that the national logistics staff can not enter dat in the formula columns.

    I have attached a workbook to give you an idea what I am trying to do (the workbook does not have the columns for the Odometre and the fuel consumption/100 kms). The attached workbook calculates the fuel consumption, but only on monthly basis, not on each topup days. I will need the fuel calculation for each topup days in order for logistics to understand what particular topup day shows high fuel consumption.

    I will appreciate if you can assist me in linking workbooks,

    Thanks again
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1