+ Reply to Thread
Results 1 to 4 of 4

Find and Select Specific Rows with text

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    MN
    MS-Off Ver
    2010, 2013
    Posts
    29

    Find and Select Specific Rows with text

    Hi All,
    Trying to get a sales report for specific item - "TRAY OF 38 POTTED PLANTS - 1 SPECIES" and the Qty. I'd like to select all rows with TRAY OF 38 POTTED PLANTS - 1 SPECIES and one cell below that. My goal is to move these into it's own Worksheet so I can create a Pivot Table to summarize our sales. My issue is that I can only mass-select cells with text "TRAY OF 38 POTTED PLANTS - 1 SPECIES" but I don't know how to select cells with TRAY OF 38 POTTED PLANTS - 1 SPECIES and the row below those cells.
    The example attachment is a shortened report, actual report will have around 30,000 rows
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Find and Select Specific Rows with text

    If VBA is an option for you, some quite straightforward code could loop through the data and copy the relevant records to a separate sheet.

    I've added the code below to the attached copy of your file and you can run it by clicking the button I've added to the first sheet.
    Please Login or Register  to view this content.
    Does that help?

    BSB
    Attached Files Attached Files
    Last edited by BadlySpelledBuoy; 11-15-2021 at 02:52 PM.

  3. #3
    Registered User
    Join Date
    10-17-2014
    Location
    MN
    MS-Off Ver
    2010, 2013
    Posts
    29

    Re: Find and Select Specific Rows with text

    You're Amazing!!
    Thank you soooo much BSB!

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Find and Select Specific Rows with text

    Glad I could help.

    If the code runs slowly on your real data due to number of rows then you can try adding the lines in red in the version below to help speed it up a little.
    Please Login or Register  to view this content.
    BSB

+ 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. Find Specific Text in rows
    By jagadeesh.rt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2019, 02:54 PM
  2. How to find specific work and delete next two rows also select range with specific words
    By priyadharshane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2019, 03:08 AM
  3. Find rows that contain specific text
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2015, 03:41 AM
  4. Select or copy rows with specific text
    By rvdkaaij in forum Excel General
    Replies: 0
    Last Post: 07-13-2014, 10:45 AM
  5. Replies: 4
    Last Post: 11-13-2013, 11:15 AM
  6. Replies: 4
    Last Post: 09-18-2012, 10:54 AM
  7. Replies: 2
    Last Post: 07-14-2011, 02:27 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