I don't want to use Tools->Options to show the cells as empty rather than
0.00 because that will be so for the whole sheet, not just the one column I
am worrying about.
I am trying to update a protected sheet automatically from a second sheet
and only the 2 columns I am supposed to enter data into are unprotected (can
be changed). I have the whole thing working now with a macro except for the
cells which are supposed to remain empty. If I use "" then it messes up a
subsequent formula, and if I use 0 then it looks wrong (I want to place the
value in each cell of the column only if it meets a certain condition, else
leave it empty.
Is there a way to make a cell empty as opposed to just looking empty?
I tried to replace all 0 with <delete key> but that didn't work ...
Looking for ideas ...
TIA
Fran
Hi Frank,
If I understand correctly, then you want a function to return a NULL
value.
Unfortunately, no such worksheet function exists. This has been, in
my opinion, a serious omission in excel for many years.
As you correctly point out, an empty string ("") is not the same thing
as nothing or a NULL value, and nor is the numeric value zero.
As a workaround, could you use 'Not applicable' perhaps?
=(if a<>b,c,NA())
This works well in charting situations for example.
HTH,
Alan.
I am also surprised there seems to be no way to do this. There are many
references to empty cells but they really mean one that just looks empty.
Frank Livni
fr...@mstate.com
Multi-State Systems, Inc.
(916) 966-1519
"Alan" <al...@alan.alan> wrote in message
news:umeatp7...@TK2MSFTNGP12.phx.gbl...
You said:
> If I use "" then it messes up a subsequent formula
If that's the only reason you don't want to use "" then you should be able
to deal with that in your subsequent formula.
What is that formula? (and be very specific)
Biff
"Frank News" <news...@mstate.com> wrote in message
news:e1q4M27d...@TK2MSFTNGP12.phx.gbl...
Or maybe you could adjust the subsequent formulas:
Instead of =a1+b1+c1, you could use: =sum(a1:c1)
Instead of =A1+d1+g99, you could use: =n(a1)+n(d1)+n(g99)
--
Dave Peterson
Can't change format - it is locked.
Frank
"Dave Peterson" <ec3...@netscapeXSPAM.com> wrote in message
news:42BA955C...@netscapeXSPAM.com...
If you're using macros to fill these cells, you have two alternatives.
cellref.Value = Empty
cellref.ClearContents
Both work just fine on unlocked cells in protected worksheets.
Frank
"Harlan Grove" <hrl...@aol.com> wrote in message
news:1119560806.5...@z14g2000cwz.googlegroups.com...