#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default copying

i have data in a1:a31 and in a45 i am putting =a1. i then click the black
box at the bottom of a45 and drag until each successive cell contains the
information from a1:a31. some of the cells in the range a1:a31 are empty,
and when i copy the cells from a45:75, those corresponding cells have a 0 in
them. what IF statement do i need to add to a45 that keeps the same
formatting (?) or keeps the blank cell instead of adding the 0?

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default copying

You have a couple of choices: You can go into Tools-Options and tell Excel
to not display zero values, or you can wrap your =CellAddress formula in an
IF() to evaluate to an empty string"" if the referenced cell is empty.
Depends on your preferences.

The formula would be:

=IF(ISBLANK(A1),"",A1)

"scott" wrote:

i have data in a1:a31 and in a45 i am putting =a1. i then click the black
box at the bottom of a45 and drag until each successive cell contains the
information from a1:a31. some of the cells in the range a1:a31 are empty,
and when i copy the cells from a45:75, those corresponding cells have a 0 in
them. what IF statement do i need to add to a45 that keeps the same
formatting (?) or keeps the blank cell instead of adding the 0?

thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default copying

=IF(A1="","",A1)
--
David Biddulph

"scott" wrote in message
...
i have data in a1:a31 and in a45 i am putting =a1. i then click the black
box at the bottom of a45 and drag until each successive cell contains the
information from a1:a31. some of the cells in the range a1:a31 are empty,
and when i copy the cells from a45:75, those corresponding cells have a 0
in
them. what IF statement do i need to add to a45 that keeps the same
formatting (?) or keeps the blank cell instead of adding the 0?

thanks!



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
copying a row james b Excel Worksheet Functions 6 June 17th 08 09:41 PM
copying row to row zen Excel Discussion (Misc queries) 1 May 22nd 08 10:03 PM
Copying hassan el touby Excel Discussion (Misc queries) 6 January 8th 08 05:48 PM
copying the Hyperlink function result without copying the actual formula mcheng Excel Worksheet Functions 2 June 9th 07 02:43 AM
copying Pegasus Excel Discussion (Misc queries) 3 February 21st 06 12:52 PM


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

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"