+ Reply to Thread
Results 1 to 3 of 3

Array Formula: Weighted Avg with Min/Max criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    15

    Array Formula: Weighted Avg with Min/Max criteria

    Hi,

    In cell $I$4 of the attached file, I need an array formula that will sum the calculated weighted averages of the total number of days from a given period that fall into each calander year and multiply that by the rate for each year. I may not have explained this correctectly, but basically I need a formula in cell $I$4 that returns a value that equals cell $I$6.

    Any help would be greatly appreciated!

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array Formula: Weighted Avg with Min/Max criteria

    One possibility

    Formula: copy to clipboard

    =SUM(IFERROR(DATE(1900,1,IF($D$2:$H$2<$B$4,$D$2:$H$2,$B$4)-IF($D$1:$H$1-1>$A$4,$D$1:$H$1-1,$A$4)),0)/($B$4-$A$4)*$D$4:$H$4)
    confirmed with CTRL + SHIFT + ENTER

  3. #3
    Registered User
    Join Date
    03-23-2011
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Array Formula: Weighted Avg with Min/Max criteria

    Thank you very much DonkeyOte! You are truely a life saver!

+ 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