Re: If function - Add if its blank, to return blank by Rick
Rick
Fri May 09 04:31:46 CDT 2008
This should take care of the blank problem...
=IF(A1="","",IF(A1="YES","NO","YES"))
However, it is unclear if you want "YES" as the result if anything other
than "NO" is entered in A1 (right now, that is what happens). If you want
this as a pure Yes/No toggle and blank for anything else...
=IF(A1="","",IF(A1="YES","NO",IF(A1="NO","YES","")))
Rick
"Natalie" <Natalie@discussions.microsoft.com> wrote in message
news:8B44A0D8-A1FD-40E0-A471-E4E2A5C49C2C@microsoft.com...
> Hi,
>
> I have put an If Function on the below formula, but I only want it to
> appear
> if the cell has an entry in it. For example
>
> CellA CellB
> Yes =IF(A1="YES","NO","YES")
>
> The above works, but it also puts in "Yes" if Cell A is blank, and I want
> to
> be blank if CellA is blank.
>
> Thanks in advance for any help provided!