Jescanilla
New Member
- Joined
- Aug 17, 2021
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
Hi everyone as the tittle says im trying to use twelve if statement to categorize different times but the formula its getting huge, im trying to do it separately and then unit it, but if i overlap a condition i start geting errors.
Its there a easy way to do it?
this is the table of conditions that im trying to do.
i couldnt copy the entire table cuz it was to wide but here its an example.
Its there a easy way to do it?
this is the table of conditions that im trying to do.
i couldnt copy the entire table cuz it was to wide but here its an example.
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D14 | D2 | =IF(AND(HOUR(B2)>=0,MINUTE(B2)>=0,HOUR(B2)<=0,MINUTE(B2)<=30),"PISO",IF(AND(HOUR(B2)>=0,MINUTE(B2)>=30,HOUR(B2)<=0,MINUTE(B2)<=59),"PRIMERA")) |
F2:F43 | F2 | =IF(AND(HOUR(B2)>=0,MINUTE(B2)>=0,HOUR(B2)<=0,MINUTE(B2)<=30),"PISO",IF(AND(HOUR(B2)>=0,MINUTE(B2)>=30,HOUR(B2)<=0,MINUTE(B2)<=59),"PRIMERA")) |
F44:F68 | F44 | =IF(AND(HOUR(B44)>=3,MINUTE(B44)>=30,HOUR(B44)<=5,MINUTE(B44)<=59),"RELEVO",IF(AND(HOUR(B44)>=4,MINUTE(B44)>=0,HOUR(B44)<=4,MINUTE(B44)<=29),"RELEVO")) |
G61:G75 | G61 | =IF(AND(HOUR(B61)>=5,MINUTE(B61)>=0,HOUR(B61)<=5,MINUTE(B61)<=30),"RELEVO") |
E9:E42 | E9 | =IF(AND(HOUR(B9)>=3,MINUTE(B9)>=30,HOUR(B9)<=5,MINUTE(B9)<=29),"RELEVO") |
E43 | E43 | =IF(AND(HOUR(B43)>3,MINUTE(B43)>=30,HOUR(B43)<=5,MINUTE(B43)<=29),"RELEVO") |
E44:E111 | E44 | =IF(AND(HOUR(B44)>=3,MINUTE(B44)>=30,HOUR(B44)<=5,MINUTE(B44)<=30),"RELEVO") |