+ Reply to Thread
Results 1 to 7 of 7

Formula to extrapolate dates

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Formula to extrapolate dates

    Hello

    I have some data that is in months, quarters and years. I have extrapolated the data out so that I know which months in which quarters and years it fits into. I now need to fit those months into the respective month and average out where there are over laps.

    See the attached spreadsheet. For example Row 7 contains values that will overlap with some of the rows above it. What I need to do is first put the value in column N for cell A3 and A7 into the April month below and then average the two.

    I need this to be automated so that it will look in each cell from A2 to L11 and fit them into the dates below.

    Thanks
    Ed
    Attached Files Attached Files
    Last edited by edwoody; 03-30-2011 at 02:08 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to extrapolate dates

    So in N16, you want 111.5? (120 + 103)/2 If not, can you give a specific result, naming cells, variables and results?

    Edit: Actually N16 is 2012, you would want that result in B16, yes?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to extrapolate dates

    If my assumptions above are correct, then in A16, dragged to the right, try

    =SUMPRODUCT(--($A$2:$M$11=A$15)*$N$2:$N$11)/SUMPRODUCT(--($A$2:$M$11=A$15))

    Does that work for you?

  4. #4
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Formula to extrapolate dates

    Thanks, the number is right but the result needs to go in B16 below Apr-11. So the formula needs to look for all the April values, average them and then slot them under Apr-11.

    Cheers

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Formula to extrapolate dates

    Seems to give me a DIV error and is picking up the month before not the month of April.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to extrapolate dates

    See attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Formula to extrapolate dates

    Great, thats perfect......I really need to learn more about SUMPRODUCT.

    Thanks a lot for your help.

    Cheers
    Ed

+ 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