+ Reply to Thread
Results 1 to 8 of 8

Trying to work out the average number between dates with others (found using a vlookup)

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Trying to work out the average number between dates with others (found using a vlookup)

    Hi all,

    I've got a bit of a challenge I can't work out.

    I have a list of dates in column A (Date Notified) and in column B a list of corresponding periods (Period Resolved), on a separate tab I have the date ranges for the periods (Start Date, End Date and Period)

    I need to work out the average number of days between the Date Notified and the End date of the Period Resolved, and I cannot figure it out. If it was just two lists of dates then I could use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    , but I need to factor in a lookup/index match I think to find out when each instance was resolved.

    I've attached a sample worksheet showing the layout.

    Any help would be appreciated.

    Thanks

    David
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to work out the average number between dates with others (found using a vlookup

    what is period?
    07/2014
    is that the first? last? something else?

    or between?
    8/09/2014 - 21/09/2014
    of which what number do you take?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Trying to work out the average number between dates with others (found using a vlookup

    Hi humdingaling,

    07/2014 is actually the pay period in which the instance was resolved, so 07/2014 started on 8/09/2014 and finished on 21/09/2014. The date I'm looking to find the average from in that instance would be the 1/8/14 (date notified) and 21/9/14 (the end date in the period 07/2014).

    I hope that makes sense.

    Thanks

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to work out the average number between dates with others (found using a vlookup

    ok so end date of that table

    before i start out doing something over the top...assume you cannot have a helper column?
    like attached
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Trying to work out the average number between dates with others (found using a vlookup

    Hi humdingaling,

    Unfortunately a helper column isn't feasible in this instance.

    Any help would be appreciated.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to work out the average number between dates with others (found using a vlookup

    using CSE (CTRL+SHIFT+ENTER) formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i left my checks in there so you can evaluate the answer
    they are not required in the formula itselfNo Days from Notified to Recovered v1.xlsx
    Last edited by humdingaling; 10-30-2014 at 09:56 PM.

  7. #7
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Trying to work out the average number between dates with others (found using a vlookup

    Hi humdingaling,

    Thanks for the solution, I've tried implementing it but I've come across an issue.

    The list of periods that I use goes all the way back to 2010, so I'll have 07/2010, 07/2011, 07/2012 etc.

    The lookup formula is now picking up one of the earlier similar periods, not looking for an exact match and this is throwing the figure way out.

    Any idea how I could incorporate a Vlookup or index match into the formula instead? I've had a play but to no avail.

    Thanks

    David

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to work out the average number between dates with others (found using a vlookup

    vlookup and index wont work with the solution i have
    reason being is the array gets stuck on the first value so the dates will be deducted from first result only

    some questions about your data
    is period sorted alphabetically by column C (as text)? as it is text not date

    would you ever have something that does not exact match to something in the table?
    because that would break things down

+ 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. Use Vlookup to take an average between 2 dates
    By coolwhip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2013, 05:44 PM
  2. want to average a bunch of values found with vlookup
    By EBos in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-14-2013, 10:06 PM
  3. VLookup problem, need to NOT output the number if found
    By TDunlap2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 12:37 PM
  4. How to work on Vlookup with Dates as criteria?
    By geng in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2010, 10:32 PM
  5. VLookup concatenating number of items found
    By Miguelre in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2005, 03:19 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