+ Reply to Thread
Results 1 to 7 of 7

Mileage worksheet help

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    60

    Mileage worksheet help

    Afternoon all,

    I am wanting to add figures together from different points on a spreadsheet and require your assistance please.

    I am requiring a formula to add mileage from the same vehicle over several dates and show it in a separate sheet.

    So here is an example matrix

    Date Vehicle Mileage
    07/08/2018 33104 4
    07/08/2018 33105 6
    08/08/2018 33104 5
    08/08/2018 33107 7
    09/08/2018 33104 8
    10/08/2018. 33106. 10
    10/08/2018. 33108. 9


    The result I would like is for a list of vehicles to show in a separate sheet, so on the next sheet within the workbook, the current list of vehicles would already be added in and within the next cell the total mileage total, and when I add each days mileage the sheet refreshes.

    Is there a formula out there that can help me please?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Mileage worksheet help

    Do you already have a list of vehicles in the other sheet?

    Are you likely to want this for a particular month, or year?

    Pete

  3. #3
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    60

    Re: Mileage worksheet help

    Hi Pete, I will create a list in the 3 columns going down vertically , and all I need to do I add up totals for each vehicle

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Mileage worksheet help

    You can use SUMIF for that, along these lines:

    =SUMIF(Sheet1!B:B,A2,Sheet1!C:C)

    where I've assumed that your existing sheet is called Sheet1, and your data is in columns A to C. I've also assumed that you have a list of vehicles starting in A2 of the second sheet, and that you place the formula in B2 of that sheet. Copy it down as required, to give you a total for each vehicle listed in column A.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    60

    Re: Mileage worksheet help

    Thanks Peter, will give it a go and let you know.

  6. #6
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    60

    Re: Mileage worksheet help

    Thanks Peter it worked a treat, thanks for your help

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Mileage worksheet help

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mileage Log with mileage known
    By Leathermyth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2016, 08:33 AM
  2. Mileage Log with mileage known
    By Leathermyth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2016, 06:24 AM
  3. Replies: 5
    Last Post: 10-01-2012, 12:11 PM
  4. mileage
    By john14310 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2006, 08:20 PM
  5. Gas Mileage
    By Lacreeda in forum Excel General
    Replies: 5
    Last Post: 05-13-2006, 10:55 PM
  6. [SOLVED] Gas Mileage
    By Patsy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2006, 01:00 PM
  7. Mileage log
    By ford52f1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2005, 11:09 AM

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