• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Weighted Average Using Dates

jdavis

New Member
I have this really ridiculous lengthy formula, Column N, that is calculating the number of days that a specific loan is open and creating a weighted average using A1 as the date for those days to be included. The resulting days are then divided by 365.25 to get a percent of year, Column O. That percentage is then multiplied by the Loan Value arriving at a Weighted Average - Loan Value.

Cut to the chase I need a shorter formula that calculates the days and then provides the Weighted Loan Value.

Thanks
 

Attachments

  • PML Weighted Average.xlsx
    11.6 KB · Views: 10
Awesome solution @Chihiro

Out of curiosity, I experimented with other alternatives. Here is one that tallies the results (not sure if it will work for all conditions).

=IFERROR(LOOKUP($A$1,C3:J3,D3:K3),C3)-$A$1
 
@r1c1
Cool. I should really learn use of LOOKUP and HLOOKUP. I tend to use INDEX,MATCH and VLOOKUP only for most of my work. ;)

@John Jairo V
Your solution I think is more flexible. I like it.
 
Back
Top