+ Reply to Thread
Results 1 to 2 of 2

Filter ROWS based on the text-pattern at the start

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    7

    Filter ROWS based on the text-pattern at the start

    My MSOffice is Professional Plus 2010.

    If I have text data in COL A as following:

    -------------
    [01199] SPARE_uC_FPGA_3
    U20 K16 N2HET2[8] PASSIVE RM57L843
    U40 AD5 IO_L61N_VREF_2 PASSIVE XC6SLX150T

    [01200] SPARE_uC_FPGA_2
    U20 L16 N2HET2[9] PASSIVE RM57L843
    U40 AC5 IO_L61P_2 PASSIVE XC6SLX150T

    [01201] SPARE_uC_FPGA_1
    U20 M16 N2HET2[10] PASSIVE RM57L843
    U40 AC6 IO_L53N_2 PASSIVE XC6SLX150T

    [01202] SPARE_uC_CPLD_8
    U20 N16 N2HET2[11] PASSIVE RM57L843
    U30 13 IO_8 PASSIVE XA2C128

    [01203] SPARE_uC_CPLD_7
    U20 K4 N2HET2[15] PASSIVE RM57L843
    U30 12 IO_7 PASSIVE XA2C128

    [01204] SPARE_uC_CPLD_6
    U20 L4 N2HET2[16] PASSIVE RM57L843
    U30 11 IO_6 PASSIVE XA2C128

    [01205] SPARE_uC_CPLD_5
    U20 M4 N2HET2[17] PASSIVE RM57L843
    U30 10 IO_5 PASSIVE XA2C128

    -------------

    I want to copy-paste only those ROWs into some other COL which have starting text-pattern as follows:

    [xxxxx] <-- x's are numbers, so this is 5-digits number.

    Also copy-paste the text after removing the above text-pattern in the ROW.

    So for example:
    [01205] SPARE_uC_CPLD_5

    This will be copy-paste to a new COL as"
    SPARE_uC_CPLD_5


    OR alternatively if I can delete all ROWs which do not have above text-pattern at the start then I will also possibly get a list of ROWs with above text-pattern at the start.
    Last edited by linko; 12-09-2019 at 08:06 AM. Reason: included more detail.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Filter ROWS based on the text-pattern at the start

    You can use Advanced Filter, using pattern
    Please Login or Register  to view this content.
    See https://excel.solutions/advancedfilter20191209/ for a walkthrough.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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: 4
    Last Post: 01-11-2020, 02:38 PM
  2. Import data from a text file with pattern of rows with label and values
    By fpennelli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2018, 04:30 PM
  3. Macro to insert pattern based on value and select based on pattern
    By CB569 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2015, 12:36 PM
  4. [SOLVED] Lookup and return rows based on pattern start and pattern end
    By JDI in forum Excel General
    Replies: 18
    Last Post: 11-16-2014, 11:44 PM
  5. How to SUM from a different sheet based on text pattern?
    By techy86 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-14-2014, 04:54 PM
  6. Replies: 6
    Last Post: 08-23-2013, 07:56 AM
  7. Copy formula down rows based on pattern
    By briancb2004 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2007, 04:27 PM

Tags for this Thread

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