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 / March 2008

Tip: Looking for answers? Try searching our database.

returning blank cell when conditions not met

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kfarley - 15 Mar 2008 00:13 GMT
Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003
Tom Hutchins - 15 Mar 2008 00:26 GMT
Try

=IF(AND(LEN(C7)>0,LEN(D7)>0,LEN(E7)>0),IF(F7<3,3-F7,0),"")

Hope this helps,

Hutch

> Entered into G7 the following
> =IF(F7<3,3-F7,0)
[quoted text clipped - 5 lines]
> Any ideas. Since i can't seem to find a way to put in an else statement with
> excel 2003
Dave Peterson - 15 Mar 2008 00:30 GMT
=if(count(c7,d7,e7)<3,"",if(f7<3,3-f7,0))
or
=if(count(c7,d7,e7)<3,"",max(3-f7,0))

> Entered into G7 the following
> =IF(F7<3,3-F7,0)
[quoted text clipped - 5 lines]
> Any ideas. Since i can't seem to find a way to put in an else statement with
> excel 2003

Signature

Dave Peterson

BoniM - 15 Mar 2008 00:31 GMT
With this entered in cell G7

=IF(AND(C7="",D7="",E7=""),"",IF(F7<3,3-F7,0))

if C7:E7 are blank, G7 should be blank as well....
but with your formula, you should have seen 3 in the cells with no entries
in C7:E7.
if you want F7 to be blank instead of displaying a zero, in cell F7 enter
the following formula:

=IF(AND(C7="",D7="",E7=""),"",SUM(C7:E7))

> Entered into G7 the following
> =IF(F7<3,3-F7,0)
[quoted text clipped - 5 lines]
> Any ideas. Since i can't seem to find a way to put in an else statement with
> excel 2003
kfarley - 17 Mar 2008 23:24 GMT
Thanks guys I'll give it a try.

> Entered into G7 the following
> =IF(F7<3,3-F7,0)
[quoted text clipped - 5 lines]
> Any ideas. Since i can't seem to find a way to put in an else statement with
> excel 2003
 
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.