I am trying to write a formula that will calculate the following:
[ For all of the cells in col AJ on Data worksheet that have a value > 0 where col A in the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2 ],
[ sum the values from D2:D where the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2 ]
and
[ divide that by the sum of the values from C2:C where the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2]
so right now I am using this =IFERROR(SUMPRODUCT((PlayerName=$A5)*(GameDate>='TEAM SHEET'!$B$1)*(GameDate<='TEAM SHEET'!$B$2)*(COUNT02)), "-") to calculate the total number of instances in col AJ on Data worksheet for the name in A5.
I just need to combine each instance of that formula with summing all the cells in col D and dividing it by the sum of the cells in col C where it matches the name and date range...
I don't know if this will make sense without showing the workbook, but THANK YOU so much for the help!
[ For all of the cells in col AJ on Data worksheet that have a value > 0 where col A in the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2 ],
[ sum the values from D2:D where the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2 ]
and
[ divide that by the sum of the values from C2:C where the row matches the player name in A5 between the dates on worksheet TEAM SHEET B1:B2]
so right now I am using this =IFERROR(SUMPRODUCT((PlayerName=$A5)*(GameDate>='TEAM SHEET'!$B$1)*(GameDate<='TEAM SHEET'!$B$2)*(COUNT02)), "-") to calculate the total number of instances in col AJ on Data worksheet for the name in A5.
I just need to combine each instance of that formula with summing all the cells in col D and dividing it by the sum of the cells in col C where it matches the name and date range...
I don't know if this will make sense without showing the workbook, but THANK YOU so much for the help!