copying

S

scott

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!
 
D

Duke Carey

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top