PC Review


Reply
Thread Tools Rate Thread

Copy a blank Cell

 
 
MidlandC
Guest
Posts: n/a
 
      13th Jan 2009
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 With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      13th Jan 2009
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

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      13th Jan 2009
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"
<(E-Mail Removed)>
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 With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      13th Jan 2009
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"
> <(E-Mail Removed)>
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy contents of a cell into a blank cell fire9990 Microsoft Excel Worksheet Functions 2 8th Jan 2010 04:58 PM
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste JenIT Microsoft Excel Programming 4 12th Apr 2007 08:56 PM
Copy to first Blank cell in Colum C Non blank cells still exist be =?Utf-8?B?VWxyaWsgbG92ZXMgaG9yc2Vz?= Microsoft Excel Programming 2 8th Oct 2006 07:35 PM
Copy data in one cell to blank cell immediately below, repeat =?Utf-8?B?SmVmZg==?= Microsoft Excel Worksheet Functions 1 19th May 2006 07:12 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. =?Utf-8?B?UVVFU1Q0MTA2Nw==?= Microsoft Excel Misc 1 15th Jan 2005 09:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.