Results 1 to 34 of 34

Find range of text, parse and copy (for..each?) rows until next range found

Threaded View

  1. #1
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Question Find range of text, parse and copy (for..each?) rows until next range found

    I've got an export from a program that will be pasted into an empty sheet. It'll look roughly like this:
    L17
    2-EW3A
    EW2A
    L18-37
    EW2A
    2-EW3A
    1-BW1.1A
    L38
    BW5.4A
    BW5.5A
    BW7.1A 3-5/8"SS/100mm XPS
    FW1A
    FW2
    L39
    FW2A
    PW4
    PW5
    2-PW5A
    PW8
    1-PW12.1A
    PW13.5A / 13.4A
    1-SW1
    2-SW2
    2-SW2 Elevator Front
    TB
    SH - PW2 2.5' ht
    RC
    VAN
    CLNG WR
    L40-43
    VAN
    RC
    PD
    HM
    L44
    RC
    Looking to have VBA run through that column; search for cells starting with L, parse the number range (ie 40-43), copying all to a new sheet.
    The new sheet will end up starting with L1, next row (then bunch of rows of copied text) then on another row L2 (bunch of rows), L3 (rows), L4 (rows), etc. etc.

    So the rows L40-43 above will end up looking as:
    L40
    VAN
    RC
    PD
    HM
    L41
    VAN
    RC
    PD
    HM
    L42
    VAN
    RC
    PD
    HM
    L43
    VAN
    RC
    PD
    HM
    Added an example .xls; sheet 1 shows what is imported, sheet 2 results needed.

    Sorry for the excessive rows in this post to explain.
    Attached Files Attached Files
    Last edited by purgamentum; 05-07-2020 at 02:30 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find substring in range and categorise cells in range based on substring found
    By Stavrosis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2020, 11:50 AM
  2. [SOLVED] find a range to insert a formula and copy it across for new rows
    By Ramzes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2017, 07:35 AM
  3. Find a string in specified cell range if found copy the cell
    By aykuncetinkaya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-03-2014, 06:12 PM
  4. [SOLVED] How to find text then select RANGE form the text found to lastrow of Column J
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 02:45 AM
  5. [SOLVED] To Find every instance of TEXT copy, repeat until no Find found
    By DadaaP in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 02:15 PM
  6. [SOLVED] Find cell in Range and If found then copy to next sheet
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2013, 10:56 AM
  7. .Find problem when the found range's rows go from single to double digits
    By alsega in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2012, 11:21 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