+ Reply to Thread
Results 1 to 4 of 4

Copy range after specific criteria is found

  1. #1
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    174

    Copy range after specific criteria is found

    Hi,

    I would like kindly ask you with my request and help me to write some macro which can cover it. Maybe it will be quite harder for me to explain it, but I try my best.

    I got some converted data from .pdf in excel (Sheet: "Case") and now I am trying to merge some important data together in 2nd sheet (Sheet: "Result").

    There are 2 tasks which need to be done.

    TASK 1:
    Step1: I need to find the first "key word" which is "Account"
    Step2: Copy names from column 'B' (highlighted by yellow) if there is a Actor condition in specific range (range = rows under "Account" up to first blank row. In my example, up to row 18)
    Step3: Paste it to sheet "Result" in cell 'C2'

    TASK 2:
    Step1: I need to find second "key word" which is "BATMAN"
    Step2: Copy list of masks from column 'E' (highlighted by yellow), where beginning of range is 2 rows under BATMAN and ended by last filled row in column "D" =
    Step3: Paste it to sheet "Result" after the last filled row in column 'C'

    I believe that attached example file where you can find highlighted cells in example sheets make more sense for you than my wording above :-).

    Thank you in advance
    Attached Files Attached Files

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

    Re: Copy range after specific criteria is found

    One way...
    Please Login or Register  to view this content.
    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!!!

  3. #3
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    174

    Re: Copy range after specific criteria is found

    Hi sintek,

    it looks amazing. I've tested it on my example, also tried to add some additional fields and it always showing what I wanted. Also code is in very user-friendly form, so I should be able to modify it for real project.
    I have no more words, just you are THE BOSS ;-).

    Thank you, I am going to close this thread as solved and of course send some reputation points for you.

    Once again THANK YOU VERY MUCH

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

    Re: Copy range after specific criteria is found

    .........................
    Thanks.png

+ 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. Replies: 3
    Last Post: 01-04-2020, 09:46 AM
  2. [SOLVED] Search for value in row. if found, copy column formulas into found column range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2017, 10:42 AM
  3. Replies: 10
    Last Post: 11-04-2015, 05:19 AM
  4. Replies: 4
    Last Post: 08-04-2014, 04:48 AM
  5. [SOLVED] Copy range based on specific criteria
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 07-03-2014, 05:06 PM
  6. [SOLVED] Would like to copy rows until specific value is found
    By caooi23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2013, 01:41 AM
  7. [SOLVED] Copy data to specific range in another Book based on conditional criteria
    By khatibcell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2013, 02:39 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