View Single Post
 
Old 05-21-2012, 06:28 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote