Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like a simple equation. With a complication. The Equation is simply
"=A1". The complication is that if A1 is blank, I want a blank cell, not zero ("0"). You can test for a blank cell with ISBLANK, but if you say "If(isblank(A1),"",A1), you don't get a blank cell, you get a cell containing no visible characters. -- Charles |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are discovering the falacies of Excel.
"MidlandC" wrote: I'd like a simple equation. With a complication. The Equation is simply "=A1". The complication is that if A1 is blank, I want a blank cell, not zero ("0"). You can test for a blank cell with ISBLANK, but if you say "If(isblank(A1),"",A1), you don't get a blank cell, you get a cell containing no visible characters. -- Charles |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Charles,
How can a cell be blank if it has a formula in it? You will need vba event code in the sheet module to accomplish what you want. -- Jim Cone Portland, Oregon USA "MidlandC" wrote in message I'd like a simple equation. With a complication. The Equation is simply "=A1". The complication is that if A1 is blank, I want a blank cell, not zero ("0"). You can test for a blank cell with ISBLANK, but if you say "If(isblank(A1),"",A1), you don't get a blank cell, you get a cell containing no visible characters. -- Charles |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If A1 contains only the empty string (""), then using ISBLANK(A1) will be true.
Excel sees "" as empty, but not 0. But, like Jim says, If you have a formula that returns "" when the If condition is False, then the cell is not empty because the formula is in it. In those cases, you would have to test for the Value instead of usint ISBLANK(). These are quirks in the Excel design, but usually, with a little planning, there are work-arounds that achieve the end quality product. You just have to be aware of what your worksheet contains when developing your formulas. "Jim Cone" wrote: Charles, How can a cell be blank if it has a formula in it? You will need vba event code in the sheet module to accomplish what you want. -- Jim Cone Portland, Oregon USA "MidlandC" wrote in message I'd like a simple equation. With a complication. The Equation is simply "=A1". The complication is that if A1 is blank, I want a blank cell, not zero ("0"). You can test for a blank cell with ISBLANK, but if you say "If(isblank(A1),"",A1), you don't get a blank cell, you get a cell containing no visible characters. -- Charles |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy cell to another that is blank | Excel Programming | |||
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste | Excel Programming | |||
Copy to first Blank cell in Colum C Non blank cells still exist be | Excel Programming | |||
Copy data in one cell to blank cell immediately below, repeat | Excel Worksheet Functions | |||
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. | Excel Discussion (Misc queries) |