mattyhousecat
New Member
- Joined
- Nov 9, 2017
- Messages
- 11
Hello Friends, im actually a Wintel Server Admin / DBA who just got thrown a excel spreadsheet to fix, im not the strongest with formalue, i need to shorten the following code because its huge.
thanks in advance if someone can do it <3
=IF(ISBLANK([@[Assigned To]]),"Select staff",IF(AND(AX2=1,AY2<>"No"),"Yes",IF(AND(AX2=2,AY2<>"No",AZ2<>"No"),"Yes",IF(AND(AX2=3,AY2<>"No",AZ2<>"No",BA2<>"No"),"Yes",IF(AND(AX2=4,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No"),"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No"),"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No",BG<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No",BG<>"No",BH<>"No")"Yes","No")))))))))))
thanks in advance if someone can do it <3
=IF(ISBLANK([@[Assigned To]]),"Select staff",IF(AND(AX2=1,AY2<>"No"),"Yes",IF(AND(AX2=2,AY2<>"No",AZ2<>"No"),"Yes",IF(AND(AX2=3,AY2<>"No",AZ2<>"No",BA2<>"No"),"Yes",IF(AND(AX2=4,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No"),"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No"),"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No",BG<>"No")"Yes",IF(AND(AX2=5,AY2<>"No",AZ2<>"No",BA2<>"No",BB2<>"No",BC2<>"No",BD2<>"No",BE<>"No",BF<>"No",BG<>"No",BH<>"No")"Yes","No")))))))))))