+ Reply to Thread
Results 1 to 11 of 11

Identify last cell in another column and copy data to that row in another column

  1. #1
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    42

    Identify last cell in another column and copy data to that row in another column

    Hi Wonderful People,
    I am a newbie in VBA and trying to automate my routine office work in excel. However I'm stuck at a place and not able to move forward and hence requesting your inputs.

    Problem -
    I've two columns A & B. Column B has some data. I need to find the last cell of column B and then copy paste the data from A1 till the last row of Column B.

    I was able to make my way thru finding the last cell in column B, however I couldnt copy paste the data in cell A1 to the last row.

    Please help.


    Thank you
    Varun

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Identify last cell in another column and copy data to that row in another column

    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Identify last cell in another column and copy data to that row in another column

    Hi Varun,

    See if this code makes sense:
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: Identify last cell in another column and copy data to that row in another column

    Do you want to copy A1:B and last row in B and paste it somewhere...
    Not sure what you want to do with it once copied...

    Please Login or Register  to view this content.
    I need to find the last cell of column B and then copy paste the data from A1 till the last row of Column B
    Or do you want to copy A1 to next available row in Column B
    Please Login or Register  to view this content.
    Last edited by sintek; 10-03-2020 at 10:20 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    42

    Re: Identify last cell in another column and copy data to that row in another column

    Hi Sintek,
    thank you very much for your response. I am attaching a sample sheet of what i want to automate. I wasn't able to achieve the desired result with the code snippet you have shared.

    Thank you
    VarunScreenshot 2020-10-03 at 9.33.17 PM.png
    Last edited by bavarunbansal; 10-03-2020 at 12:06 PM.

  6. #6
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    42

    Re: Identify last cell in another column and copy data to that row in another column

    Hi Marvin,
    I am attaching a sample screenshot for your reference. I am not able to achieve the desired result from your code.
    Attachment 698099

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Identify last cell in another column and copy data to that row in another column

    Hi Varun,

    From your question I thought column A was longer than B.

    To get a better answer you should supply a sample workbook instead of an image.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: Identify last cell in another column and copy data to that row in another column

    Copy This Text In A2??? to Last row in Col B?

    Please Login or Register  to view this content.

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Identify last cell in another column and copy data to that row in another column

    OKay, I think the OP want to fill column A to The last row in column B

    Please Login or Register  to view this content.
    Last edited by davesexcel; 10-03-2020 at 12:54 PM.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Identify last cell in another column and copy data to that row in another column

    If you click on your cell and then double-click the bottom right corner of that cell it will do what you want without VBA. See:
    https://www.bing.com/videos/search?q...01DC&FORM=VIRE

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Identify last cell in another column and copy data to that row in another column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] VB Code to copy paste data from column to another column based on content of cell
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2019, 08:50 PM
  2. Copy data and paste to another column incrementing that column to next empty cell
    By edens2021 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 11:43 AM
  3. [SOLVED] UNSOLVED - Identify highlighted cells in column, copy cell value to column B of active row
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2014, 04:42 AM
  4. Replies: 3
    Last Post: 06-22-2014, 08:55 AM
  5. copy data from one column to column on another sheet starting with first open cell
    By indiana115 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 05:50 PM
  6. Copy data from textbox1 to column A till end of cell data of column B
    By JoaoFerreira1985 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2013, 01:19 PM
  7. Identify Duplicates in columns and copy corresponding colums in next column
    By sreesatya in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2012, 01:02 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