RBLuckett01
New Member
- Joined
- Jul 27, 2023
- Messages
- 9
- Office Version
- 365
- 2016
- Platform
- Windows
- Web
I am trying to change the formula on the second row for the Employees to sum the actual leave taken for the month in column NJ and then total up for the year in column NK. But this formula and data need to change through each page. The sheet is hanged to a different month by the arrows at the top of the excel page.
Secondly, I would also like to change the color of the leave breakup to match the leave taken for that month. So, green is 0-71 hours used, yellow is 72-119 hours used, red is 120-100000 hours used. I already have column NJ and NK setup that way to change the colors but I would also like the the letters to change as well if possible.
EDIT:
=SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)<>"")*(IF(OFFSET($A8,0,31*($A$3-1)+1,1,31)=Sheet1!$B$29,0.5,IF(OFFSET($A8,0,31*($A$3-1)+1,1,31)=Sheet1!$B$30,0.5,1))*(OFFSET($A$4,0,31*($A$3-1)+1,1,31)))) Month formula
=SUMPRODUCT((OFFSET($A8,0,1,1,372)<>"")*(IF(OFFSET($A8,0,1,1,372)=Sheet1!$B$29,0.5,IF(OFFSET($A8,0,1,1,372)=Sheet1!$B$30,0.5,1))*(OFFSET($A$3,0,1,1,372)))) Year formula
It will not allow me to post my screen shots
Secondly, I would also like to change the color of the leave breakup to match the leave taken for that month. So, green is 0-71 hours used, yellow is 72-119 hours used, red is 120-100000 hours used. I already have column NJ and NK setup that way to change the colors but I would also like the the letters to change as well if possible.
EDIT:
=SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)<>"")*(IF(OFFSET($A8,0,31*($A$3-1)+1,1,31)=Sheet1!$B$29,0.5,IF(OFFSET($A8,0,31*($A$3-1)+1,1,31)=Sheet1!$B$30,0.5,1))*(OFFSET($A$4,0,31*($A$3-1)+1,1,31)))) Month formula
=SUMPRODUCT((OFFSET($A8,0,1,1,372)<>"")*(IF(OFFSET($A8,0,1,1,372)=Sheet1!$B$29,0.5,IF(OFFSET($A8,0,1,1,372)=Sheet1!$B$30,0.5,1))*(OFFSET($A$3,0,1,1,372)))) Year formula
It will not allow me to post my screen shots
Last edited by a moderator: