excelisfunforeveryone
New Member
- Joined
- Aug 9, 2021
- Messages
- 2
- Office Version
- 2016
- Platform
- Windows
Hello,
I am trying to get Excel to calculate the following:
Weighted average for visible cells for each variable within Column K
Column K: Job #
Column L: Pay Rate
Column M: Frequency
Column N: Pay Rate * Freq (Helper column)(If necessary)
The following formula works for all cells within the worksheet. I need it to be applied to only visible cells after I use the filter
=SUMPRODUCT($M$14:$M$511*$L$14:$L$511*($K$14:$K$511=A1))/SUMIF($K$14:$K$511,A1,$M$14:$M$511)
I am referencing the column K variables by putting them into A1-8 (you see it referenced in A1)
Thanks for your help. It sounds like I have to use some sort of SUBTOTAL function but for the life of me, I can't get it to work.
Also feel free to correct my absolute references above. I'm not entirely sure I need them here.
I am trying to get Excel to calculate the following:
Weighted average for visible cells for each variable within Column K
Column K: Job #
Column L: Pay Rate
Column M: Frequency
Column N: Pay Rate * Freq (Helper column)(If necessary)
The following formula works for all cells within the worksheet. I need it to be applied to only visible cells after I use the filter
=SUMPRODUCT($M$14:$M$511*$L$14:$L$511*($K$14:$K$511=A1))/SUMIF($K$14:$K$511,A1,$M$14:$M$511)
I am referencing the column K variables by putting them into A1-8 (you see it referenced in A1)
Thanks for your help. It sounds like I have to use some sort of SUBTOTAL function but for the life of me, I can't get it to work.
Also feel free to correct my absolute references above. I'm not entirely sure I need them here.