Forum Discussion

fiegl_'s avatar
fiegl_
Copper Contributor
Jun 09, 2021
Solved

Excel Conditional Referencing Problem

Hi,   I have what is essentially a daily time sheet for employee's. Each sheet is for a day of the week. In one row across the top, I have a series of codes in the format of x.xx.xx. In a column on...
  • HansVogelaar's avatar
    HansVogelaar
    Jun 09, 2021

    fiegl_ 

     

    In B2 on the Total Hours sheet:

     

    =IFERROR(SUM(OFFSET(Monday!$E$27:$AB$27,0,MATCH(A2,Monday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Tuesday!$E$27:$AB$27,0,MATCH(A2,Tuesday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Wednesday!$E$27:$AB$27,0,MATCH(A2,Wednesday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Thursday!$E$27:$AB$27,0,MATCH(A2,Thursday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Friday!$E$27:$AB$27,0,MATCH(A2,Friday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Saturday!$E$27:$AB$27,0,MATCH(A2,Saturday!$E$5:$AB$5,0)-1,1,3)),0)+IFERROR(SUM(OFFSET(Sunday!$E$27:$AB$27,0,MATCH(A2,Sunday!$E$5:$AB$5,0)-1,1,3)),0)

     

    Fill down to B6.

Resources