May 07 2020 06:40 AM
Trying to develop a formula for a sheet where the data represents month at a time sick leave occurrences by day shift or night shift by day of week. Data is extracted from HR system showing date for each month, shifts (D1/D2/N1/N2) and number of SL absences. Can an array be setup to automatically sum/calculate the total SL absences for each shift type by day of week, i.e. # absences for a D1 shift on Sundays, # absences for a D2 shift on a Sunday, # absences for a N1 shift on a Sunday, etc.
May 07 2020 10:16 AM
May 07 2020 02:30 PM
Hi Sergei,
Thank-you, that gives the number of occurrences of Shifts for Day of Week but atm does not add (SUM) the actual occurrences of sick leave absences (rows labelled # SL), which are on the next row under each of the SHIFT rows within the table. Any further help would be appreciated.
May 07 2020 08:40 PM
Is there a way of SUM'ing the row below the applicable cell using some sort of 'row+1' for those cells found which meet the criteria?
May 08 2020 12:13 AM
SolutionOops, I missed that.
Formula could be
=SUMPRODUCT(IF(NOT(ISNUMBER($C$6:$AR$27)),,$C$6:$AR$27)*($C$5:$AR$26=G$32)*($C$3:$AR$3="Su"))
if you are on Excel without supporting Dynamic Arrays, use it as array formula, i.e. with Ctrl+Shift+Enter
May 08 2020 05:40 AM
Many thanks, perfect!
May 08 2020 01:36 PM
@BigAl-MFS , you are welcome
May 08 2020 12:13 AM
SolutionOops, I missed that.
Formula could be
=SUMPRODUCT(IF(NOT(ISNUMBER($C$6:$AR$27)),,$C$6:$AR$27)*($C$5:$AR$26=G$32)*($C$3:$AR$3="Su"))
if you are on Excel without supporting Dynamic Arrays, use it as array formula, i.e. with Ctrl+Shift+Enter