+ Reply to Thread
Results 1 to 3 of 3

Weighted Average

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Weighted Average

    I have specific speed data for a route broken down into specific sections e.g. Point 1 to Point 2: 100m/hr, Point 2 to Point 3: 200m/hr.

    The route has since been revised therefore the sections have been updated e.g. Point 1 to Point 1.5, Point 1.5 to Point 2.5, Point 2.5 to Point 3.

    However, speed data has not been revised so I must apply weighted averaging to give each revised section a new speed. For example, using the revised data above, I would now have:

    Point 1 to Point 1.5 100m/hr (as point 1 to point 1.5 fall within the original breakdown therefore speed designation remains the same)
    Point 1.5 to Point 2.5: 150m/hr (weighted average of original section speed)
    Point 2.5 to Point 3: 200m/hr (as point 2.5 to point 3 fall within the original breakdown therefore speed designation remains the same)

    I would like to apply a formula in my dataset to calculate the new weighted average speed throughout. Can anyone help me with this?

    Please see attached spreadsheet which indicates the Original Dataset with original route breakdown and speed and the New Dataset with new route breakdown.

    I have also included a diagram as it is difficult to explain.

    Capture.JPG

    Thanks for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,944

    Re: Weighted Average

    Sorry - I needed to change this after my initial post. The average speed in the middle section is not 150 - it is 133, since speeds are not directly averagable - for example, if your speed for 1 mile is 1 mph, and your speed for the second mile is 60, then the average is not 30.5 - it takes you an hour and one minute to travel 2 miles, for an average speed of 2/(1+ 1/60), or 1.96 mph.

    In cell I6 (the time of the first segment):

    =(VLOOKUP(F6,A:B,2)-F6)/VLOOKUP(F6,A:D,4)

    In cell J6 (the time of the second segment):

    =(G6-VLOOKUP(F6,A:B,2))/VLOOKUP(G6,A:D,4)


    In cell K6 (the average speed):

    =H6/(I6+J6)

    Copy those down - not sure how you want to handle text values and data outside the original data set..... And I should note that your segments for the second set cannot include more than one speed change.
    Last edited by Bernie Deitrick; 03-26-2018 at 12:25 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Re: Weighted Average

    Thankyou very much that is extremely useful.
    Last edited by AliGW; 03-27-2018 at 03:32 AM. Reason: Unnecessary quotation removed.

+ 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: 0
    Last Post: 02-15-2018, 03:04 AM
  2. Query regarding Calculating Weighted average value or average value in Percentage.
    By adamsmith1337 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2016, 07:56 AM
  3. [SOLVED] Average Percentage (weighted average) but I want to exclude N/A
    By mespinoza in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 12-28-2015, 02:53 PM
  4. Converting Weighted Average to Average If
    By renstoecklin1991 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2015, 02:51 PM
  5. Weighted average?
    By GWB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2010, 10:50 AM
  6. [SOLVED] Weighted average
    By Pierre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-03-2006, 10:40 AM
  7. [SOLVED] What is this kind of average called?-weighted average
    By havocdragon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2005, 01:05 PM

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