+ Reply to Thread
Results 1 to 4 of 4

Delete rows thar contains specific text and then paste 5 row data to col.

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Delete rows thar contains specific text and then paste 5 row data to col.

    Hi, can any Expert on this forum provide me code for :-

    01. DELETE ROWS THAT CONTAINS SPECIFIC TEXT,BLANK ROWS , ROWS WITH "----" & " =======" IN COL."A"

    2) NOW EACH RECORD IS OF 5 ROWS. CUT & PASTE DATA OF ROW 1 TO A1, ROW 2 TO B1, ROW 3 TO C1
    ROW 4 TO D1, ROW 5 TO E1 ON SHEET2

    3) NOW AGAIN REPEAT ABOVE PROCESS FOR SECOND RECORD,AFTER COMPLETING PROCESS REPEAT
    THIS PROCESS TILL LASR RECORD IS REACHED.

    4) THEN CONCAT A1,B1,C1,D1,E1 (DATA ON SHEET2) TO A1 OF SHEET3

    5) PASTE SPECIAL(PASTE VALUES)FOR DATA IN COL."A" FOR SHEET3 TO COL. "A" OF SHEET4

    SAMPLE SHEET WITH EXPECTED RESULT IS ATTACHED.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Delete rows thar contains specific text and then paste 5 row data to col.

    Sorry, I'm not helping here.

    NOW EACH RECORD IS OF 5 ROWS
    There are some rec which has 4 rows,
    for example column A row 52-55 and row 57-60.

    Anyway, maybe you can play around with this code :
    Please Login or Register  to view this content.
    For the criteria of row to be deleted, put your 6 criteria value from cell C1 to C6, blank is not included as a criteria.
    The code don't make a formula to sheet3, but directly put the concat value to sheet3, so there is no sheet4.
    Last edited by karmapala; 08-07-2020 at 05:09 PM.

  3. #3
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Re: Delete rows thar contains specific text and then paste 5 row data to col.

    Thanks for guidance.
    I am not getting desired solution to my problem. I think I have made question bit complicated. Let's make it simple.
    Line below each record is "------------------------------------" is record separator. code should search this record separator
    and wherever this record separator is found count the rows between "------" and paste it in sheet 2 side by side(transpose)
    i.e. PASTE DATA OF ROW 1 TO A1, ROW 2 TO B1, ROW 3 TO C1ROW 4 TO D1, ROW 5 TO E1 ON SHEET2. and then again repeat this process for second record and so on.
    Hoe above explanation will help you in providing solution.

  4. #4
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Re: Delete rows thar contains specific text and then paste 5 row data to col.


+ 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: 8
    Last Post: 09-20-2017, 02:09 AM
  2. Delete Rows with specific text in specific column
    By love2waltz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 10:16 AM
  3. [SOLVED] Delete rows fi specific text
    By blue.chio in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2013, 02:23 PM
  4. Find the row a specific text is in a data set & delete certain rows
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 03:52 PM
  5. [SOLVED] Delete rows that do not contain specific text
    By jahburt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-03-2012, 04:14 PM
  6. [SOLVED] Delete Rows With Specific Text
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2006, 10:50 AM
  7. Delete rows with specific text
    By MAYDAY in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-08-2005, 11:05 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