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 / October 2006

Tip: Looking for answers? Try searching our database.

check for two blank cells before populating a 3rd.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
slinger - 25 Oct 2006 19:21 GMT
I'm trying to do a chart using dates.  I would like to set it so that if A1,
or B1 is blank, then C1 is also blank. If BOTH A1 and B1 contain information,
then C1 = A1 + 1.

I have tried this, and it doesn't work.

=IF(AND(ISBLANK($A1)),(ISBLANK(B1))),"",($A1)+1

I have also tried a few other things, all of which don't work.

Any help would be greatly appreciated.
Dave F - 25 Oct 2006 19:25 GMT
=IF(COUNTBLANKS(A1:B1)=2,"",A1+1)

Enter in C1

Dave
Signature

Brevity is the soul of wit.

> I'm trying to do a chart using dates.  I would like to set it so that if A1,
> or B1 is blank, then C1 is also blank. If BOTH A1 and B1 contain information,
[quoted text clipped - 7 lines]
>
> Any help would be greatly appreciated.
Dave F - 25 Oct 2006 19:30 GMT
Should be: =IF(COUNTBLANK(A1:B1)=2,"",A1+1)

Also the formula you use below is almost correct.  If you want to use that
format then try this: =IF(AND(ISBLANK($A1),(ISBLANK(B1)),"",$A1+1)

Dave

Signature

Brevity is the soul of wit.

> =IF(COUNTBLANKS(A1:B1)=2,"",A1+1)
>
[quoted text clipped - 13 lines]
> >
> > Any help would be greatly appreciated.
Bernard Liengme - 25 Oct 2006 19:28 GMT
You had some problems with parentheses and inconsistent use of $s but, more
importantly, you need OR not AND.
IF A or B is blank then C is blank
=IF(OR(ISBLANK(A1),ISBLANK(B1)),"",A1+1)
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> I'm trying to do a chart using dates.  I would like to set it so that if
> A1,
[quoted text clipped - 9 lines]
>
> Any help would be greatly appreciated.
Biff - 25 Oct 2006 19:34 GMT
Try this:

>if A1, or B1 is blank

Does blank mean EMPTY?

One way:

=IF(OR(A1="",B1=""),"",A1+1)

Biff

> I'm trying to do a chart using dates.  I would like to set it so that if
> A1,
[quoted text clipped - 9 lines]
>
> Any help would be greatly appreciated.
Kevin Vaughn - 25 Oct 2006 19:36 GMT
It looks like you would want to use OR instead of AND.

=IF(OR(ISBLANK($A1),(ISBLANK(B1))),"",$A1+1)

However, as I recall from reading other posts re charting, I believe you
would want to return #n/a instead of null, so try changing "" in the formula
to na()

=IF(OR(ISBLANK($A1),(ISBLANK(B1))),NA(),$A1+1)

Also, if the blanks are results of formulas, try changing isblank(a1) to a1=
""

=IF(OR($A1 = "",B1 = ""),NA(),$A1+1)
Signature

Kevin Vaughn

> I'm trying to do a chart using dates.  I would like to set it so that if A1,
> or B1 is blank, then C1 is also blank. If BOTH A1 and B1 contain information,
[quoted text clipped - 7 lines]
>
> Any help would be greatly appreciated.
Bernard Liengme - 25 Oct 2006 20:14 GMT
Also note that if a formula returns an empty string (e.g let A2 have the
formula =IF(A1>5,A1,"") )
then function ISBLANK(A2) will always be FALSE no mater what A2 displays.
But =COUNTBLANK(A2) will be 1 if the IF fails.
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> I'm trying to do a chart using dates.  I would like to set it so that if
> A1,
[quoted text clipped - 9 lines]
>
> Any help would be greatly appreciated.
 
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.