Kulraj Singh
New Member
This is the formula-
=IF(OR(TRIM(C2)="NCNS",TRIM(C2)="ABS",AND(OR(TRIM(C2)="TAR",TRIM(C2)="EO"),D2>240)),1,0.5)
I dont want none of the codes that are in there e.g NCNS, ABS, TAR EO but This is what I want to add or this is my requirement:
AB which is absent and would have value of 1
Si which is Sick and would have value of 1
Li which is late in would be value of 1/3 unless it goes over 240 min then it will be 1
Le which is left early would have value of 1/3 unless it goes over 240 min then it will be 1
Mip and Mop would have value of 1/3
Any help will be greatly appreciated. Also attaching a file where this will be used if that makes it more clear for you.
Thanks,
=IF(OR(TRIM(C2)="NCNS",TRIM(C2)="ABS",AND(OR(TRIM(C2)="TAR",TRIM(C2)="EO"),D2>240)),1,0.5)
I dont want none of the codes that are in there e.g NCNS, ABS, TAR EO but This is what I want to add or this is my requirement:
AB which is absent and would have value of 1
Si which is Sick and would have value of 1
Li which is late in would be value of 1/3 unless it goes over 240 min then it will be 1
Le which is left early would have value of 1/3 unless it goes over 240 min then it will be 1
Mip and Mop would have value of 1/3
Any help will be greatly appreciated. Also attaching a file where this will be used if that makes it more clear for you.
Thanks,