Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copy a blank Cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Copy a blank Cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Copy a blank Cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Copy a blank Cell

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cell to another that is blank Mickey[_2_] Excel Programming 5 July 15th 07 12:55 PM
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste JenIT Excel Programming 4 April 12th 07 08:56 PM
Copy to first Blank cell in Colum C Non blank cells still exist be Ulrik loves horses Excel Programming 2 October 8th 06 07:35 PM
Copy data in one cell to blank cell immediately below, repeat Jeff Excel Worksheet Functions 1 May 19th 06 07:12 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"