Hi Umesh,
You should be able to use a formula like:
=IF(UPPER(F4)="Y","Fill",IF(UPPER(F4)="N","NA", "ERROR"))
For the shading, use conditional formatting. However, your prescription for this isn't the same as your prescription for the IF test. For the IF test you allow only Y/N, but for the conditional format you say "cell F4 is either Yes or Y". If 'Yes' and 'No' are allowed, you need to change the IF test to:
=IF(OR(UPPER(F4)="Y",UPPER(F4)="YES"),"Fill",IF(OR (UPPER(F4)="N",UPPER(F4)="NO"),"NA", "ERROR"))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|