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 / New Users / December 2007

Tip: Looking for answers? Try searching our database.

How to generate a truly empty cell - "" does not work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paulkaye - 10 Dec 2007 15:36 GMT
"" generates a zero-length string, not a truly empty cell. This is
causing problems elsewhere. I'd like to find an output for an IF
statement that will give me a truly empty cell. The current formula
is:

=IF(COUNT(C24:C29)>0,SUM(C24:C29),"")

Any ideas? If it involves a macro (as I think it might, having read
other posts), please explain how to implement it.

Thanks!
Niek Otten - 10 Dec 2007 15:46 GMT
<This is causing problems elsewhere>

It shouldn't. Don't use ISBLANK(A1), use A1=""

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| "" generates a zero-length string, not a truly empty cell. This is
| causing problems elsewhere. I'd like to find an output for an IF
[quoted text clipped - 7 lines]
|
| Thanks!
Niek Otten - 10 Dec 2007 15:54 GMT
I just found out about the other thread you had already.

Five experts put efforts in answering your question. You turned your back on them and started a new thread.

Instead, try formulating your requirements more clearly. Not your question, but what you're trying to achieve.

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| <This is causing problems elsewhere>
|
[quoted text clipped - 11 lines]
||
|| Thanks!
JE McGimpsey - 10 Dec 2007 15:49 GMT
Please don't keep starting new threads - it just tends to fragment any
answers you get, and to waste the time of those answering questions that
have already been answered.

If C24:C29 are calculated values, then put something like this in the
worksheet code module (right-click the worksheet tab and choose View
Code):

   Private Sub Worksheet_Calculate()
       With Range("C24:C29")
           If Application.Count(.Cells) > 0 Then
               Range("C30").Value = Application.Sum(.Cells)
           Else
               Range("C30").ClearContents
           End If
       End With
   End Sub

If the values in C24:C29 are manually entered, use the Worksheet_Change
event instead - something like:

   Private Sub Worksheet_Change(ByVal Target As Excel.Range)
       With Range("C24:C29")
           If Not Intersect(.Cells, Target) Is Nothing Then
               If Application.Count(.Cells) > 0 Then
                   Range("C30").Value = Application.Sum(.Cells)
               Else
                   Range("C30").ClearContents
               End If
           End If
       End With
   End Sub

In article
<20800e76-969f-46c2-a75f-405a5ae459b7@p69g2000hsa.googlegroups.com>,

> "" generates a zero-length string, not a truly empty cell. This is
> causing problems elsewhere. I'd like to find an output for an IF
[quoted text clipped - 5 lines]
> Any ideas? If it involves a macro (as I think it might, having read
> other posts), please explain how to implement it.
paulkaye - 10 Dec 2007 16:12 GMT
Niek,

Great idea. It's made things a little less clean but it works -
thanks.

JE,

No probs - my apologies. I'm not really sure how everyone is viewing
this group and it seemed as though if the thread gets too old, it
drops off the radar. I'm using Google Groups where a new post to a
thread does not put it back to the top of the list.

Thanks guys,

Paul

> Please don't keep starting new threads - it just tends to fragment any
> answers you get, and to waste the time of those answering questions that
[quoted text clipped - 41 lines]
> > Any ideas? If it involves a macro (as I think it might, having read
> > other posts), please explain how to implement it.
JE McGimpsey - 10 Dec 2007 16:26 GMT
Well, there are various methods that "everyone is viewing this group"
with, but most of the 'regulars' are generally using some sort of
newsreaders (or OE) which can thread by reference or subject, rather
than a web portal like Google Groups. So *most* replies within threads
don't go unnoticed, even if the reply doesn't appear at "the top of the
list" (in my newsreader, newer posts are at the *bottom* of the list).

In article
<3d344db5-23e7-46ae-909c-48825cac65e0@w40g2000hsb.googlegroups.com>,

> I'm not really sure how everyone is viewing
> this group and it seemed as though if the thread gets too old, it
> drops off the radar. I'm using Google Groups where a new post to a
> thread does not put it back to the top of the list.
Pete_UK - 10 Dec 2007 19:01 GMT
I usually use Google Groups (unless it is acting up), and the latest
post (not just the latest thread) is shown first - click on Sort by
Reply in the left panel.

Pete

> Niek,
>
[quoted text clipped - 59 lines]
>
> - Show quoted text -
Bob Phillips - 10 Dec 2007 19:19 GMT
Paul,

I gave a solution in the other thread, no VBA.

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Niek,
>
[quoted text clipped - 57 lines]
>> > Any ideas? If it involves a macro (as I think it might, having read
>> > other posts), please explain how to implement it.
joeu2004 - 10 Dec 2007 22:31 GMT
> No probs - my apologies. I'm not really sure how everyone is viewing
> this group and it seemed as though if the thread gets too old, it
> drops off the radar. I'm using Google Groups where a new post to a
> thread does not put it back to the top of the list.

I use Google Groups, too.  Simply click on "Sort by: Latest Message".

Rate this thread:






 
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.