+ Reply to Thread
Results 1 to 9 of 9

Copy and paste (values) to another sheet based on condition

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Cool Copy and paste (values) to another sheet based on condition

    Hi, I have worksheet1 where there is a data.
    I have a click button where only populated cells are copied and pasted to next sheet, however based on certain value of cells.
    That means if value condition is not met, then it will not copy the cells.
    While pasting it will paste with condition of next empty cells in a range.

    Sample is attached.
    Hope to get some help.
    Thanks
    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: Copy and paste (values) to another sheet based on condition

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,578

    Re: Copy and paste (values) to another sheet based on condition

    Pl paste the formula in A2 of Sheet2 and press Ctrl+Shift+Enter keys together.Then drag the formula across.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy and paste (values) to another sheet based on condition

    As an option, there is a button on sheet1.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Copy and paste (values) to another sheet based on condition

    Hi,
    Kvsrinivasmurthy, AB33 and John H Davis.

    What shall i say. All the solutions work perfectly.
    Thank you very very very much.
    All solutions have their unique utility and output.

    The formula works fine but since I have too many for mule in some other cells , it may not be possible to incorporate it.

    Solution by John works great , but if I run it twice , it copies data again and pastes it below the existing one.

    Solution by AB33 seems the best suited one for this issue. Every time I press button, it ignores what has been copied last time and does it again freshly.
    Therefore I will adapt solution be AB33.
    Once well done to everyone.
    I still have one more question on this and after that I will close it as solved.
    I have clicked * for everyone to express my gratitude.

    Well done again.
    Thanks
    Regards

  6. #6
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Smile Re: Copy and paste (values) to another sheet based on condition

    Hi AB33,
    Apology that I could not come back so soon.
    I was trying to learn your amazing code and try to understand it.
    Then I wanted to modify it, but I have failed drastically. But I have not given up.
    I have attached same file now ( with a difference) and need your BIG HELP to get this done so that my learning will get a big boost.
    I am closing the thread as it has solved the initial issue, however I am sure that you will help me to modify your Great code.
    Thanks again
    Regards
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Copy and paste (values) to another sheet based on condition

    My Greatest regards to kvsrinivasamurthy & JOHN H. DAVIS
    Your solution also were amazing, however my current learning need I have chosen AB33 first followed by great help from John.
    I sincerely hope for the best.
    kind regards

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy and paste (values) to another sheet based on condition

    Try the attached.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Copy and paste (values) to another sheet based on condition

    Hi AB33,
    Great help again.
    My words will ever fall short to thank you.
    Kind regards

+ 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. Automate copy and paste based on condition
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-13-2012, 01:48 PM
  2. Copy paste based on a condition
    By jay36429 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2011, 01:36 PM
  3. Copy-Paste range based on condition
    By Link in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2011, 01:10 PM
  4. Copy/Paste from one sheet to another based on condition
    By TheTempest in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2010, 01:13 PM
  5. Code: Copy and paste based on condition
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2010, 10:45 AM

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