+ Reply to Thread
Results 1 to 10 of 10

find last input row.. copy down block of formulae to this row.

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    106

    find last input row.. copy down block of formulae to this row.

    See attached workbook: you will see the columns in yellow are where data will be inputted, all other columns contain formulae referenced to these yellow columns.

    What will normally happen is that the input columns (yellow) will all have data copied down to the same row numbers (in this case all inputted data ends at row 7.) The problem
    is that having all the formulae go down to row 25,000 makes the workbook a very large file.

    I am looking for this improvement:

    The formulae are only populating the first row.
    Data is inputed in all the input columns.

    Then this macro:
    a bit of VBA that identifies the last row, and then drags the formulae down to this row.

    Is there an easy way of doing so?

    Best wishes!

    M
    Attached Files Attached Files

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

    Re: find last input row.. copy down block of formulae to this row.

    Maybe:

    Please Login or Register  to view this content.
    Untested, try on a copy first.

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: find last input row.. copy down block of formulae to this row.

    Quote Originally Posted by JOHN H. DAVIS View Post

    Untested, try on a copy first.
    Many thanks for this. its not working though

    Please Login or Register  to view this content.
    Next rcell


    I'm getting syntax error on this. but everything else looks good.
    Last edited by niceguy21; 12-06-2012 at 12:12 PM.

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

    Re: find last input row.. copy down block of formulae to this row.

    What's it doing? How is it not working?

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: find last input row.. copy down block of formulae to this row.

    See edit above.

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: find last input row.. copy down block of formulae to this row.

    Quote Originally Posted by JOHN H. DAVIS View Post
    What's it doing? How is it not working?
    See edit above. I think the formula is too long to input.

    Also, its taking too long.. Thousands of lines of data will be inputted at any time!

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

    Re: find last input row.. copy down block of formulae to this row.

    Yes your formula may be too long, but when you place the formula in code, you have to double your quotations within the formula:

    Please Login or Register  to view this content.
    Depending on how large your file is this may speed it up a little.

  8. #8
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    106

    Wink Re: find last input row.. copy down block of formulae to this row.

    Quote Originally Posted by JOHN H. DAVIS View Post
    Depending on how large your file is this may speed it up a little.
    Nice work.

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

    Re: find last input row.. copy down block of formulae to this row.

    Sounds like you have it working. Glad to hear that, and thanks for the feedback.

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

    Re: find last input row.. copy down block of formulae to this row.

    Please acknowledge Forum Rule No. 9

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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