dctaillefer
New Member
- Joined
- Apr 27, 2019
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
I am working on a spreadsheet for timetracking/productivity. In one sheet (People), I have the employee's name in column A6:A26, and day of the week in row 4 (monday column c, tuesday column d, etc).
This "people" sheet is where it would identify what "V"acation days people are absent, or if they are taking off a couple of hours (ie. 2).
Trying to bring this information to another sheet in the workbook that assigns work, and want to account for absences. So either if person A has a "V" meaning the whole day is off, this sheet would account for the full 6.5 hours day to be accounted for, or if they had "2", then only 2 hours would be deducted.
This is the below formula that I have.... right now it is taking the full vacation days and bringing them to the new sheet, but for blanks or partial days it is returning an error.
=IF(INDEX(People!$C$6:$G$26,MATCH($A10,People!$A$6:$A$26,0),MATCH($B10,People!$C$4:$G$4,0))="V",6.5,(OFFSET(INDEX(People!$C$6:$G$26,MATCH($A10,People!$A$6:$A$26,0),MATCH($A10,People!$C$4:$G$4,0)),0,2)))
Attached are two screen shots; first one is of the "people" sheet, and the second is of the "assignments" page that has the errors. Any help with why I'm getting an error would be greatly appreciated.
This "people" sheet is where it would identify what "V"acation days people are absent, or if they are taking off a couple of hours (ie. 2).
Trying to bring this information to another sheet in the workbook that assigns work, and want to account for absences. So either if person A has a "V" meaning the whole day is off, this sheet would account for the full 6.5 hours day to be accounted for, or if they had "2", then only 2 hours would be deducted.
This is the below formula that I have.... right now it is taking the full vacation days and bringing them to the new sheet, but for blanks or partial days it is returning an error.
=IF(INDEX(People!$C$6:$G$26,MATCH($A10,People!$A$6:$A$26,0),MATCH($B10,People!$C$4:$G$4,0))="V",6.5,(OFFSET(INDEX(People!$C$6:$G$26,MATCH($A10,People!$A$6:$A$26,0),MATCH($A10,People!$C$4:$G$4,0)),0,2)))
Attached are two screen shots; first one is of the "people" sheet, and the second is of the "assignments" page that has the errors. Any help with why I'm getting an error would be greatly appreciated.