Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
Hi all,
I have a number of columns which are linked to column A; specifically, the values are linked to be the same (C2 = A2, etc). Why on earth does Excel return a 0 when the source cell is, in fact, blank? This is so wrong! Hasn't anyone explained to Bill Gates that zero and null are two different things? How do I get round Excel's error? So far the only solution I found is using an If formula (=if(a2="","",a2) , but that's like killing a mosquito with a nuclear bomb! Any help would be greatly appreciated! Thanks! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
|
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
On Aug 5, 4:56*pm, Bob I wrote:
How about because it is a "User selectable option". How so? Where whould I choose this option in Excel 2007? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
Office button, Excel Options, Advanced, Display options for this
Worksheet, Show a zero in cells that have zero value. wrote: On Aug 5, 4:56 pm, Bob I wrote: How about because it is a "User selectable option". How so? Where whould I choose this option in Excel 2007? |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
There is a point to be made. Sometimes I want a 0 to display, as it is a
value, and sometimes I don't if a cell is null, for example. -- John C "Bob I" wrote: Office button, Excel Options, Advanced, Display options for this Worksheet, Show a zero in cells that have zero value. wrote: On Aug 5, 4:56 pm, Bob I wrote: How about because it is a "User selectable option". How so? Where whould I choose this option in Excel 2007? |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
Bob
That just hides or displays zeros. Does not explain why Excel treats a blank cell as zero. Gord Dibben MS Excel MVP On Tue, 05 Aug 2008 11:19:03 -0500, Bob I wrote: Office button, Excel Options, Advanced, Display options for this Worksheet, Show a zero in cells that have zero value. wrote: On Aug 5, 4:56 pm, Bob I wrote: How about because it is a "User selectable option". How so? Where whould I choose this option in Excel 2007? |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
On Aug 5, 5:19*pm, Bob I wrote:
Office button, Excel Options, Advanced, Display options for this Worksheet, Show a zero in cells that have zero value. Thanks for the tip. However, it doesn't fully work. My situation is: cell A2: blank ("") cell B2: =A2 cell C2: =B2 & " some other text" If I deselct the option you mention, B2 is shown as blank, but C2 is still shown as "0 some other text". In other words, Excel still considers B2 as containing a zero, regardless of whether it shows it or not. I still believe the whole concept is wrong: a blank is not a zero! I found a solution using an if formula, but still believe it's all absurd. One more reason to use databases rather than Excel every time I can... Thanks for your time, anyway! PS just to avoid any misunderstanding, I'm ****ed off at Excel, not at you: I do appreciate your help :) |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
I'm ****ed off at Excel
Welcome to the club! <VBG -- Biff Microsoft Excel MVP wrote in message ... On Aug 5, 5:19 pm, Bob I wrote: Office button, Excel Options, Advanced, Display options for this Worksheet, Show a zero in cells that have zero value. Thanks for the tip. However, it doesn't fully work. My situation is: cell A2: blank ("") cell B2: =A2 cell C2: =B2 & " some other text" If I deselct the option you mention, B2 is shown as blank, but C2 is still shown as "0 some other text". In other words, Excel still considers B2 as containing a zero, regardless of whether it shows it or not. I still believe the whole concept is wrong: a blank is not a zero! I found a solution using an if formula, but still believe it's all absurd. One more reason to use databases rather than Excel every time I can... Thanks for your time, anyway! PS just to avoid any misunderstanding, I'm ****ed off at Excel, not at you: I do appreciate your help :) |
#10
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
I suppose you may say that a Null has Zero value. It is not equal to a Zero.
John C wrote: There is a point to be made. Sometimes I want a 0 to display, as it is a value, and sometimes I don't if a cell is null, for example. |
#11
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
I suspect "Null" is the operative term as opposed to "blank"
Gord Dibben wrote: Bob That just hides or displays zeros. Does not explain why Excel treats a blank cell as zero. Gord Dibben MS Excel MVP On Tue, 05 Aug 2008 11:19:03 -0500, Bob I wrote: Office button, Excel Options, Advanced, Display options for this Worksheet, Show a zero in cells that have zero value. wrote: On Aug 5, 4:56 pm, Bob I wrote: How about because it is a "User selectable option". How so? Where whould I choose this option in Excel 2007? |
#12
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
Exactly my point: NULL<0
-- John C "Bob I" wrote: I suppose you may say that a Null has Zero value. It is not equal to a Zero. John C wrote: There is a point to be made. Sometimes I want a 0 to display, as it is a value, and sometimes I don't if a cell is null, for example. |
#13
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
All instances of a excel worksheet have a style of 'Normal'. That includes a
general format for each cell....well the general format despite what it says includes a number formatter..see http://office.microsoft.com/en-ca/ex...488311033.aspx You would have to create a custom format to show it as blank as the zero value of the general value format is to show zero. |
#14
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
The OP already explained that it has nothing to do with the display, it is
the contents which will not change using a custom format. -- Regards, Peo Sjoblom "desertres" wrote in message ... All instances of a excel worksheet have a style of 'Normal'. That includes a general format for each cell....well the general format despite what it says includes a number formatter..see http://office.microsoft.com/en-ca/ex...488311033.aspx You would have to create a custom format to show it as blank as the zero value of the general value format is to show zero. |
#15
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
In another words, yet another confirmation that Excel sucks and should
be avoided whenever possible. I do wonder how many mistakes would be avoided, and how many processes would be sped up, if all Excel users learnt to use databases properly :) On Aug 5, 9:21*pm, "Peo Sjoblom" wrote: The OP already explained that it has nothing to do with the display, it is the contents which will not change using a custom format. |
#16
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
|
#17
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
This quirk has driven me crazy through 5 versions of Excel. I often have a need for cells to return or repeat text strings based on the contents of cells contained in different worksheets or workbooks. It doesn't happen all the time (doesn't seem to be caused by various formatting of the cell - setting it as text or a number) but often when the cell recieving the data returns a "0" when the cell sending the data is empty. I've gotten around this by inserting a "space bar" key stroke in the cell sending the data. The esiest way to fix this problem (assuming that you're working with string text data and not numbers is to go into conditional formatting and set the cells to have a white font and not be seen or printed when the value in the cell is = 0. Hope this helps. An excellent link to explanation of conditional formatting:
http://www.contextures.com/xlCondFormat02.html Hope this helps! CL EggHeadCafe - .NET Developer Portal of Choice http://www.eggheadcafe.com/default.aspx?ref=ng |
#18
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why does Excel think blank = zero ?
I think that using a space character is a mistake. That will ruin formulas that
look like: =if(a1="","it's blank","it's not blank") I use a formula like this: =if(a1="","",a1) if I don't want to see those 0's. Using conditional formatting for this seems overkill to me. Charles, Leeuwenburg wrote: This quirk has driven me crazy through 5 versions of Excel. I often have a need for cells to return or repeat text strings based on the contents of cells contained in different worksheets or workbooks. It doesn't happen all the time (doesn't seem to be caused by various formatting of the cell - setting it as text or a number) but often when the cell recieving the data returns a "0" when the cell sending the data is empty. I've gotten around this by inserting a "space bar" key stroke in the cell sending the data. The esiest way to fix this problem (assuming that you're working with string text data and not numbers is to go into conditional formatting and set the cells to have a white font and not be seen or printed when the value in the cell is = 0. Hope this helps. An excellent link to explanation of conditional formatting: http://www.contextures.com/xlCondFormat02.html Hope this helps! CL EggHeadCafe - .NET Developer Portal of Choice http://www.eggheadcafe.com/default.aspx?ref=ng -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Index/match - make blank cells return a blank value. | Excel Worksheet Functions | |||
Average Formula to display blank cell if named range is blank | Excel Worksheet Functions | |||
Not showing blank and non blank items in filter mode for values | Excel Worksheet Functions | |||
how to get excel to display blank if reference cell blank | Excel Worksheet Functions | |||
conditional formatting:highlight row based on blank or non-blank c | Excel Discussion (Misc queries) |