+ Reply to Thread
Results 1 to 2 of 2

Calculate Average Price For Various Periods

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Calculate Average Price For Various Periods

    Hi everyone, looking for a little guidance on my problem. Trying to calculate the lost revenue value for when a piece of machinary is offline for a period of time based on the hrly price during that particular period. The machines come on/off line at various times during the year so i am trying to make this a bit dynamic so i only need to add new info and not have to change the formula

    Column F - Off date of machine
    Column G - Restart date of machine
    Column H - Hrly time
    Column I - Hrly price

    I thought this formula (an array) would work for me

    =average(if((Column H>=Column F) * (Column H<= Column G), Column I)) but it only calculates that average price for the first period and not new average prices for other periods.

    Any thoughts on what adjustments I can make to my formula or is there a better formula to use?

    Thanks for any assistance.
    Nish
    Last edited by Flanders; 02-14-2014 at 02:25 PM.

  2. #2
    Registered User
    Join Date
    02-14-2014
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Calculate Average Price For Various Periods

    Ok figured it out so I thought I would share with the rest.

    I just need to create the formula in my first cell and then drag and copy the formula down to the bottom of my data so that the formula would calcualte a new average price for the various new periods. Also added an iferror to the front of the formula to return 0 during sections with no data either price or time.

+ 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. [SOLVED] How to calculate a rolling average over X periods
    By Johnex777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2013, 10:37 AM
  2. calculate average of price extracted from multiple sheets automatically
    By Hello23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2012, 10:51 AM
  3. Replies: 6
    Last Post: 04-03-2012, 12:36 AM
  4. [SOLVED] Calculate average price of repeated items in list
    By watney971 in forum Excel General
    Replies: 3
    Last Post: 03-28-2012, 11:04 AM
  5. [SOLVED] calculate/convert volume price to monthly average price
    By Bultgren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 05:40 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