+ Reply to Thread
Results 1 to 4 of 4

Copy nonerror values from a column to new column, no blank cells in between

  1. #1
    Registered User
    Join Date
    11-12-2008
    Location
    melbourne
    Posts
    9

    Copy nonerror values from a column to new column, no blank cells in between

    I have a column of values generated by a formula, some of which may be errors. I want to have a simple way of starting at the top row and reproducing the nonerror values from that column into an adjacent column, but without any blank cells between the new columns values.

    Please Login or Register  to view this content.
    This code chops out the errors, but runs really slowly. Im sure there must be an easier way, can someone help me improve it. I thought the "=IsNA()" command could be used somehow.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy nonerror values from a column to new column, no blank cells in between

    Hello farmerdave,

    You probably need to disable calculations. Try this version.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-22-2009
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Office 2003 / Office 2007
    Posts
    114

    Re: Copy nonerror values from a column to new column, no blank cells in between

    No, the easiest way to do this is NOT to delete the cell, but to clear the cells contents then sort. This will do it in a blink of an eye. Deleting is a very slow process and is to be avoided unless you have a specific reason to do so.

    .ClearContents

    Edit: btw if you are trying to preserve the original order, you can insert and autofill a series, clear the row number that you inserted and the cell next to it, then sort what is left.

    This has the added benefit of not having to worry about changing calculation settings.
    Last edited by Marzuk; 09-24-2009 at 12:46 AM.

  4. #4
    Registered User
    Join Date
    11-12-2008
    Location
    melbourne
    Posts
    9

    Re: Copy nonerror values from a column to new column, no blank cells in between

    Thanks, will give these a try.

+ 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