+ Reply to Thread
Results 1 to 5 of 5

Copy upwards from last row - need to stop copying when run into new value

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Lehi, UT
    MS-Off Ver
    Excel 2013
    Posts
    5

    Copy upwards from last row - need to stop copying when run into new value

    Hello,

    I've searched the internet and couldn't find a solution to this problem.
    I know hardly anything about VBA, but love how it automates things.


    Here's the problem:
    I have between 1 & 10 values on column A, which are distributed throughout the column.
    They are inconveniently at the bottom of the set of data which they are related to.

    Solution I'm hoping for:
    -Starting from last row that contains a value-
    -Copy that cell upwards until it runs into a cell that contains a value-
    -Then stop copying that cell, pick up the new value, and then copy the new cell value upwards-
    -Stop at A2.

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Copy upwards from last row - need to stop copying when run into new value

    Can you provide a sample workbook with your current layout? That would be most helpful.
    Click the * to give Rep to a post you like.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy upwards from last row - need to stop copying when run into new value

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-02-2014
    Location
    Lehi, UT
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Copy upwards from last row - need to stop copying when run into new value

    Thank you so much John!
    It worked beautifully!

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy upwards from last row - need to stop copying when run into new value

    You're welcome. Glad to help out and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to stop automatically filling when copying
    By clucas in forum Excel General
    Replies: 3
    Last Post: 02-14-2008, 01:47 PM
  2. how to stop someone from copying my protected files
    By smackerb in forum Excel General
    Replies: 2
    Last Post: 07-28-2006, 06:10 PM
  3. [SOLVED] how do I stop "copy" taking a picture instead of copying text
    By Martin Gray in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 09:10 AM
  4. Copying numbers down to a stop point
    By toesparkle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2005, 08:52 AM
  5. [SOLVED] Stop Copying at Specific Row
    By smandula in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2005, 10:06 AM

Tags for this Thread

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