Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sean
 
Posts: n/a
Default paste formula and skip blanks

dear all,

I want to paste the formula, but skip the blanks. Here is an example,

12 2 (=round(A1/7,0))
13 2
15 2
0
0
0
0
0
0
0

the second column is the formula. after calculating in B1 (round(A1/7,
0)), I copy B1 and then paste the whole B column. Instead of only
giving me 3 observations (B1~B3), excel also gives me zeros in the rest
of the cells. How do I ask excel not to paste these zeros?

Thank you for your help.

Sean

  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default paste formula and skip blanks

=IF(A1="","",ROUND(A1/7,0))


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Sean" wrote in message
oups.com...
dear all,

I want to paste the formula, but skip the blanks. Here is an example,

12 2 (=round(A1/7,0))
13 2
15 2
0
0
0
0
0
0
0

the second column is the formula. after calculating in B1 (round(A1/7,
0)), I copy B1 and then paste the whole B column. Instead of only
giving me 3 observations (B1~B3), excel also gives me zeros in the rest
of the cells. How do I ask excel not to paste these zeros?

Thank you for your help.

Sean



  #3   Report Post  
Posted to microsoft.public.excel.misc
Teodomiro
 
Posts: n/a
Default paste formula and skip blanks


Would an IF statement work for you?

=IF(A1=0,"",round(A1/7,0))

The formula will still occupy the cell, but nothing will be displayed
if the corresponding cell in column A is zero.

Sean Wrote:
dear all,

I want to paste the formula, but skip the blanks. Here is an example,

12 2 (=round(A1/7,0))
13 2
15 2
0
0
0
0
0
0
0

the second column is the formula. after calculating in B1 (round(A1/7,
0)), I copy B1 and then paste the whole B column. Instead of only
giving me 3 observations (B1~B3), excel also gives me zeros in the
rest
of the cells. How do I ask excel not to paste these zeros?

Thank you for your help.

Sean



--
Teodomiro


------------------------------------------------------------------------
Teodomiro's Profile: http://www.excelforum.com/member.php...o&userid=33140
View this thread: http://www.excelforum.com/showthread...hreadid=530604

  #4   Report Post  
Posted to microsoft.public.excel.misc
Crowbar via OfficeKB.com
 
Posts: n/a
Default paste formula and skip blanks

=IF(A10,(ROUND(A1/7,0)),"")

This formula will not display a 0 if A1 is empty so you can copy and paste
down


If you want to not include a formula at at you can use a macro.

If you want you can send me an example sheet and I will send you a macro
example of how else to fix it



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200604/1
  #5   Report Post  
Posted to microsoft.public.excel.misc
Sean
 
Posts: n/a
Default paste formula and skip blanks

Thank you guys for your help! It works!!

Sean

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 paste formula to skip rows Greg Excel Worksheet Functions 1 March 8th 06 09:41 PM
How can i get a IF formula to skip to the next reference box Craig Turley - Emerson Excel Worksheet Functions 0 February 16th 06 02:48 PM
I want to copy a formula n Excel but skip any blank cells Ann Excel Worksheet Functions 1 December 12th 05 06:55 PM
formula in excel to skip cells having - number and add only + anthonylaw Excel Worksheet Functions 3 October 25th 05 06:46 PM
Skip multiple blanks Pat Excel Discussion (Misc queries) 1 February 5th 05 09:00 PM


All times are GMT +1. The time now is 12:44 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"