Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

If function - Add if its blank, to return blank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Natalie - 09 May 2008 10:22 GMT
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!
Rick Rothstein (MVP - VB) - 09 May 2008 10:31 GMT
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

> Hi,
>
[quoted text clipped - 10 lines]
>
> Thanks in advance for any help provided!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.