+ Reply to Thread
Results 1 to 5 of 5

Creating Vlookup formula to aveage between two dates

Hybrid View

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    74

    Creating Vlookup formula to aveage between two dates

    So I'm attempting to do a vlookup that averages all the values between two dates.

    On Sheet 1 in A1 I have June 1 2012 and A4 I have June 5 2012. In another sheet I have the dates June 1-30 in cells A5-A35 with the data in cells B5-B35 corresponding with the date.

    I need help creating a formula that would do a vlookup of all values between June 1 and June 5 or whatever dates I put into A1 and A4 on Sheet 1, so that it would look up the B column values in Sheet 2 of June1-5 and average them out.

    I was currently doing it for one day using the formula =VLOOKUP($A$1,WEST!$A$5:$M$35,3,FALSE) but I need to do a month to date value.

    Any suggestions?
    Last edited by MROMAR; 06-13-2012 at 04:22 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Creating Vlookup formula to aveage between two dates

    Have a look at the AVERAGEIFS() function.

    http://www.excelfunctions.net/Excel-...-Function.html

  3. #3
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Re: Creating Vlookup formula to aveage between two dates

    When using Vlookup
    Example:

    A B
    1 5
    2 6
    3 7
    4 8
    5 9

    If I use vlookup (2.7,a,2,true) I get 6 or 7.
    i need get the average between 6 and 7 (i.e. (6+7)/2=6.5)
    Can this be done?

    Thank you.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Creating Vlookup formula to aveage between two dates

    medo,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Re: Creating Vlookup formula to aveage between two dates

    how can i create new thread

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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