Cole Parker
New Member
- Joined
- Jun 2, 2022
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Using a sample data set below:
I need to get a weighted average for adjusting rates in the future.
The rate will be tethered to Cell B2 which is NY Prime + the spread column, with a cap of max increase of 2% over their CURRENT rate, but i need a weighted average of the spread by the column E, Current Balance... i will leave a legend for the prime, so i can update the prime rate, update the data, and have a rolling repricing schedule - mid month and end of month.
I had a pretty decent if statement that added my prime rate cell, but when i add the weighted average and the max 2% threshold over the current rate, i am stuck mentally.
This formula gave me the average of all the spread rates (UNWEIGHTED) with a date range.
Clearly i just summed if the date was less than 9/15 it added the spread column, then divided by the count of anything less than 9/15 then added the prime rate i had inserted into B2.
=((SUMIF('Monthly Data'!F:F,"<9/15/2022",'Monthly Data'!M:M))/(COUNTIF('Monthly Data'!F:F,"<9/15/2022")))+B2
Suggestions?
I need to get a weighted average for adjusting rates in the future.
The rate will be tethered to Cell B2 which is NY Prime + the spread column, with a cap of max increase of 2% over their CURRENT rate, but i need a weighted average of the spread by the column E, Current Balance... i will leave a legend for the prime, so i can update the prime rate, update the data, and have a rolling repricing schedule - mid month and end of month.
I had a pretty decent if statement that added my prime rate cell, but when i add the weighted average and the max 2% threshold over the current rate, i am stuck mentally.
This formula gave me the average of all the spread rates (UNWEIGHTED) with a date range.
Clearly i just summed if the date was less than 9/15 it added the spread column, then divided by the count of anything less than 9/15 then added the prime rate i had inserted into B2.
=((SUMIF('Monthly Data'!F:F,"<9/15/2022",'Monthly Data'!M:M))/(COUNTIF('Monthly Data'!F:F,"<9/15/2022")))+B2
Suggestions?