+ Reply to Thread
Results 1 to 8 of 8

Average Mileage

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Anaheim Hills, CA
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3

    Average Mileage

    I have a spread sheet that I am taking over and it includes average mileage.

    The only issue is that not all the data is the same. Some of the entries are for example 10,000 / YR while others are 500 / MON is there a way to calculate the average without having to reformat the entries that are different than the other. (the majority of the entries are /MON)

  2. #2
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Mileage

    Can you post an example file?

  3. #3
    Registered User
    Join Date
    04-06-2015
    Location
    Anaheim Hills, CA
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3

    Re: Average Mileage

    Sample SS info.docxAt Home Project 2.xlsx

  4. #4
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Mileage

    How do you want to calculate the average? by month or by year?

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Average Mileage

    Put this in J2 to tidy up your monthly km and copy down. it won't fix the example of the TOTAL in it but will tidy up most of your data
    by converting it all to Monthly data

    =IF(RIGHT(E2,LEN(E2)-FIND("/",E2)-1)="YR",LEFT(E2,FIND("/",E2)-1)/12,LEFT(E2,FIND("/",E2)-1)*1)
    Happy with my advice? Click on the * reputation button below

  6. #6
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Mileage

    Nevermind didnt see your last column

  7. #7
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Mileage

    I added a little to Crooza's formula to compensate for the values with "TOTAL"
    =IF(ISNUMBER(SEARCH("T", E2)), LEFT(E2, SEARCH("T", E2)-1)/ I2, IF(RIGHT(E2,LEN(E2)-FIND("/",E2)-1)="YR",LEFT(E2,FIND("/",E2)-1)/12,LEFT(E2,FIND("/",E2)-1)*1))

  8. #8
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Average Mileage

    Thanks phbryan for the tidy up.

+ 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. Replies: 5
    Last Post: 10-01-2012, 12:11 PM
  2. mileage
    By john14310 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2006, 08:20 PM
  3. [SOLVED] Gas Mileage
    By Lacreeda in forum Excel General
    Replies: 5
    Last Post: 05-13-2006, 10:55 PM
  4. [SOLVED] Gas Mileage
    By Patsy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2006, 01:00 PM
  5. [SOLVED] average 2 cells (Mileage Divide by Gallons in two cells
    By dip43 in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 11:10 PM

Tags for this Thread

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