+ Reply to Thread
Results 1 to 12 of 12

Formula Copied Down to Last Row - Executes first row copy only

  1. #1
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Formula Copied Down to Last Row - Executes first row copy only

    Can anyone let me know why this code is not working?? It copies formula from T2 to last row. Then at Last row the total is the SUM calculation we need......dont know where we are going wrong.....

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Formula Copied Down to Last Row - Executes first row copy only

    You don't seem to have any line of code that would copy down the formula from T2 though?
    I assume the last row always returns 2?
    Would need to know which column we can use to know what the last row is...
    Assuming for example that "S" always has data in the last row:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 04-24-2018 at 01:54 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Formula Copied Down to Last Row - Executes first row copy only

    we require that the formula in T2 be copied down to the end of last row. And at the end Last row we need to calculate total SUM of All...Enclosed worksheet...

  4. #4
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Q has data till last row....

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Will the formulas in your example in R5 and S5 already be there when the macro runs? Or will the macro add those formulas also?

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Please Login or Register  to view this content.
    Last edited by Arkadi; 04-24-2018 at 02:01 PM. Reason: Forgot code tags

  7. #7
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Formula Copied Down to Last Row - Executes first row copy only

    macro adds formula too....

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,521

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Or maybe
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Formula Copied Down to Last Row - Executes first row copy only

    ohhhh....thanks a tonne arkadi.......you are great... gave the solution at lightening speed.....itt works........ you deserve double rep..... hope they have double or treble reps to be given......))) thanks a lot once again.....

  10. #10
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Formula Copied Down to Last Row - Executes first row copy only

    thanks jolivanes...your code too is amazing....u simplified it more like a excel ninjaaaaaaaaaaa...... wowow... !! )))... given u too a rep...

  11. #11
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,521

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Thanks for letting us know that it worked to your liking and thanks for the rep.
    Good luck

  12. #12
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Formula Copied Down to Last Row - Executes first row copy only

    Thanks for the feedback and the rep

+ 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. [SOLVED] Macro that executes this formula and paste the value
    By ricdamiani in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-09-2016, 12:28 AM
  2. Replies: 3
    Last Post: 07-26-2014, 06:12 AM
  3. Replies: 1
    Last Post: 03-29-2014, 09:56 AM
  4. Replies: 2
    Last Post: 05-17-2013, 07:31 PM
  5. Formula Executes Inconsistently
    By rbytbs in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 06:59 PM
  6. copy insert copied row in new row
    By tfonas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 07:13 AM
  7. How can I copy and add a row with the copied information?
    By Tokumoto in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2009, 07:27 PM

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