+ Reply to Thread
Results 1 to 5 of 5

RE: paste formula and skip blanks

  1. #1
    Sean
    Guest

    RE: 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. #2
    Registered User
    Join Date
    04-04-2006
    Posts
    18
    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.

    Quote Originally Posted by Sean
    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
    Still using Excel 2000

  3. #3
    Peo Sjoblom
    Guest

    Re: paste formula and skip blanks

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


    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com


    "Sean" <[email protected]> wrote in message
    news:[email protected]...
    > 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
    >




  4. #4
    Crowbar via OfficeKB.com
    Guest

    RE: paste formula and skip blanks

    =IF(A1>0,(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

    [email protected]

    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...excel/200604/1

  5. #5
    Sean
    Guest

    Re: paste formula and skip blanks

    Thank you guys for your help! It works!!

    Sean


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1