aamir
Board Regular
- Joined
- Feb 17, 2010
- Messages
- 116
i am using this formula which is working good but now i am confused with lots of IFs.
But now i have few more parameters
1. I want to check A2 for these two names only "Robert", & "Brian". if found then for them only D2 time starts from 7:00 to 16:00 & for Thursday 7:00 to 12:30.
2. If H2="KP", then timings totally change from 8:00 to 12:30 & again 16:00 to 20:00 except for Thursday from 08:00 to 12:30
3. if H2="KH" then timings are from 8:00 to 14:45.
Code:
IF(H2="KB",IF(AND(D2<=TIME(7,34,0),E2>=IF(C2="Thursday",TIME(12,30,0),TIME(16,15,0))),"Ontime","Late"),IF(AND(D2<=TIME(8,15,0),E2>=IF(C2="Thursday",TIME(12,30,0),TIME(16,0,0))),"Ontime","Late"))
1. I want to check A2 for these two names only "Robert", & "Brian". if found then for them only D2 time starts from 7:00 to 16:00 & for Thursday 7:00 to 12:30.
2. If H2="KP", then timings totally change from 8:00 to 12:30 & again 16:00 to 20:00 except for Thursday from 08:00 to 12:30
3. if H2="KH" then timings are from 8:00 to 14:45.