Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
LA LA is offline
external usenet poster
 
Posts: 1
Default copying blank cell

COPYING CONTENTS OF A BLANK CELL USING A FUNCTION DOES NOT
RESULT IN A BLANK CELL BUT A CELL WITH A DATE.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copying blank cell

=if(len(trim(A1))=0,"",A1)

But that only makes the cell look blank - it isn't blank because it contains
a formula. It won't contain a date unless you format it as a date. It would
contain zero if you used

=A1


--
Regards,
Tom Ogilvy



LA wrote in message
...
COPYING CONTENTS OF A BLANK CELL USING A FUNCTION DOES NOT
RESULT IN A BLANK CELL BUT A CELL WITH A DATE.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default copying blank cell

First - using all caps is considered shouting - please don't do that.

If you reference a blank cell, the value returned will be zero (for
numeric functions) or the null string.

A1: =J10

will display 0 if J10 is blank and A1 us formatted as General. Since
dates in XL are just integer offsets from a base date, 0 is
equivalent to 1/0/1900 (or 12/31/1899) in the 1900 system or
1/1/1904 in the 1904 system.

You can trap this condition using

A1: =IF(J10<"", J10, "")

which returns the null string instead of zero.

In article ,
"LA" wrote:

COPYING CONTENTS OF A BLANK CELL USING A FUNCTION DOES NOT
RESULT IN A BLANK CELL BUT A CELL WITH A DATE.

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
Skip Blank Cells While Copying A List shruthitulsi Excel Worksheet Functions 0 December 11th 10 04:52 AM
Keep Cell Data Blank when Copying It king60611 Excel Discussion (Misc queries) 5 January 8th 10 11:02 PM
finding last non-blank cell and then copying it to the next cell mike_vr Excel Discussion (Misc queries) 0 January 17th 08 05:02 PM
Copying to blank cells scorpiorc Excel Discussion (Misc queries) 3 December 6th 06 08:27 PM
Copying a Blank Cell FLKULCHAR Excel Worksheet Functions 5 September 19th 05 12:13 PM


All times are GMT +1. The time now is 11:54 AM.

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

About Us

"It's about Microsoft Excel"