marvin jones
Board Regular
- Joined
- Mar 16, 2016
- Messages
- 86
Hello There,
I have a massive IF nested formula that returns a value of 8 hours worked depending on the sum of other cells. So,
L20: IF the SUM of Q20, U20, Y20 equals 1 hour then return 7 hours | IF the SUM of Q20, U20, Y20 equals 2 hours then return 6 hours
L21: IF the SUM of Q21, U21, Y21 equals 1 hour then return 7 hours | IF the SUM of Q21, U21, Y21 equals 2 hours then return 6 hours
This is OK, but i need the hours to be split into quarters too. So,
L20: IF the SUM of Q20, U20, Y20 equals 1.25 hours then return 6.75 hours | IF the SUM of Q20, U20, Y20 equals 2.25 hours then return 5.75 hours
L21: IF the SUM of Q21, U21, Y21 equals 1.50 hour then return 6.50 hours | IF the SUM of Q21, U21, Y21 equals 0.50 hours then return 7.50 hours
This calculation works out a time for each employee each day, so a nested IF statement summing this up will just be too much.
Is there an easier way please?
Thank you,
I have a massive IF nested formula that returns a value of 8 hours worked depending on the sum of other cells. So,
L20: IF the SUM of Q20, U20, Y20 equals 1 hour then return 7 hours | IF the SUM of Q20, U20, Y20 equals 2 hours then return 6 hours
L21: IF the SUM of Q21, U21, Y21 equals 1 hour then return 7 hours | IF the SUM of Q21, U21, Y21 equals 2 hours then return 6 hours
This is OK, but i need the hours to be split into quarters too. So,
L20: IF the SUM of Q20, U20, Y20 equals 1.25 hours then return 6.75 hours | IF the SUM of Q20, U20, Y20 equals 2.25 hours then return 5.75 hours
L21: IF the SUM of Q21, U21, Y21 equals 1.50 hour then return 6.50 hours | IF the SUM of Q21, U21, Y21 equals 0.50 hours then return 7.50 hours
This calculation works out a time for each employee each day, so a nested IF statement summing this up will just be too much.
Is there an easier way please?
Thank you,