Forum Discussion
Templar70
Jun 10, 2020Copper Contributor
Sum of Range based on numbers in a different row
Hi, I would appreciate any help I can receive on this spreadsheet, which is being used for tracking employee absence. I am trying to sum the total of a range.(the sum of the hours taken in the month...
- Jun 10, 2020
=SUM((B5:AF5="X")*(B$4:AF$4),B5:AF5)or for older versions of Excel:
=SUMPRODUCT((B5:AF5="X")*(B$4:AF$4),B5:AF5)
Detlef_Lewin
Jun 10, 2020Silver Contributor
=SUM((B5:AF5="X")*(B$4:AF$4),B5:AF5)or for older versions of Excel:
=SUMPRODUCT((B5:AF5="X")*(B$4:AF$4),B5:AF5)Templar70
Jun 10, 2020Copper Contributor
This is exactly what I needed. I'm using Office 365, so the first formula works perfectly. Thank you so much!!