+ Reply to Thread
Results 1 to 3 of 3

Copy from last row

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Copy from last row

    Hi,
    Please refer example file attached.

    In attachment I need a Macro to find last low and copy and paste.

    Need to find number in last row of column "B" from first table. Here it is B10. Please not the last row cell could change data to data. it could be B4 or B5 or B6 etc. But it will not go beyond row number 10.
    Copy the same and paste in B17

    Need to find number in last row of column "C" from first table. Here it is C10. Please not the last row cell could change data to data. it could be C4 or C5 or C6 etc. But it will not go beyond row number 10.
    Copy the same and paste in C17

    Need to find number in last row of column "D" from first table. Here it is D10. Please not the last row cell could change data to data. it could be D4 or D5 or D6 etc. But it will not go beyond row number 10.
    Copy the same and paste in B18

    Need to find number in last row of column "E" from first table. Here it is E10. Please not the last row cell could change data to data. it could be E4 or E5 or E6 etc. But it will not go beyond row number 10.
    Copy the same and paste in C18
    Attached Files Attached Files
    Last edited by saravanan1981; 04-14-2020 at 11:31 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy from last row

    B17: =INDEX($B$5:$G$10, MATCH("Grand Total", $A$5:$A$10, 0), 2)
    C17: =INDEX($B$5:$G$10, MATCH("Grand Total", $A$5:$A$10, 0), 3)

    B18: =INDEX($B$5:$G$10, MATCH("Grand Total", $A$5:$A$10, 0), 4)
    C18: =INDEX($B$5:$G$10, MATCH("Grand Total", $A$5:$A$10, 0), 5)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Copy from last row

    vba alternative
    Please Login or Register  to view this content.
    Last edited by nigelog; 04-15-2020 at 11:09 AM.

+ 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] Change Copy to Copy & Mirror Image the Copy
    By mills49 in forum Excel General
    Replies: 5
    Last Post: 08-21-2014, 05:25 AM
  2. Alter existing formula to copy specific cells in row instead of copy entire column
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-02-2014, 12:42 PM
  3. Replies: 1
    Last Post: 12-05-2013, 12:55 PM
  4. Save copy as, open copy, alter copy, save copy and close copy
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2013, 04:42 PM
  5. Replies: 3
    Last Post: 01-30-2013, 04:32 PM
  6. Copy one cell to an other but colors do not copy. While not using clipboard to copy.
    By chuckchuckit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2010, 03:08 AM
  7. EXCEL FILE a copy/a copy/a copy ....filename
    By ve in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-29-2005, 05:05 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