+ Reply to Thread
Results 1 to 4 of 4

average with changing start and end points

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Washington, DC
    MS-Off Ver
    2011
    Posts
    92

    average with changing start and end points

    Hi all,

    I'm trying to use an average function with adjustable start and end points in the array. I currently have two drop down lists to designate a starting date and an end date. I'd like the write a function that returns an average over the period. Any ideas?

    Thanks,

    Alex

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: average with changing start and end points

    It sounds like a variation on the approaches used in a similar post might work for you. Check these files out.

    http://www.excelforum.com/excel-form...ing-range.html

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: average with changing start and end points

    You can try AverageIFs

    =AVERAGEIFS(A1:A100,B1:B100,">="&D1,B1:B100,"<="&E1)

    A1:A100 is the range to average
    B1:B100 is the range of dates
    D1 is the Designated Start Date
    E1 is the Designated End Date

    Hope that helps.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: average with changing start and end points

    Quote Originally Posted by puzzlelover22 View Post
    Hi all,

    I'm trying to use an average function with adjustable start and end points in the array. I currently have two drop down lists to designate a starting date and an end date. I'd like the write a function that returns an average over the period. Any ideas?

    Thanks,

    Alex
    Can you upload a sample file?

+ 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: 4
    Last Post: 02-27-2014, 04:58 PM
  2. Replies: 4
    Last Post: 04-09-2013, 09:44 PM
  3. parsing a text file that has start and end points
    By goodman18 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2012, 10:00 AM
  4. Replies: 3
    Last Post: 08-16-2011, 09:37 AM
  5. Replies: 4
    Last Post: 05-30-2008, 10:39 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