+ Reply to Thread
Results 1 to 5 of 5

Custom sort rows

Hybrid View

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    Ottawa
    MS-Off Ver
    365
    Posts
    3

    Custom sort rows

    Each week i receive a spread sheet with many rows and columns of data.

    Im only interested in about 10 rows scattered throughout the sheet.

    In column "W" I scan and look for the rows I require. Im looking for words like MNBS and MNBC... Each row has a Key work that pertains to me.

    It there a script that I can make that will search the column "W" each week for words I look for, then just show me these rows.

    IE.. ( i don't know code so gone laugh) Get Row W MNBS,MNBC...

    Thank you

    Todd

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Custom sort rows

    No script needed, you can do that with advanced filter.

    https://support.office.com/en-us/art...ad=US&fromAR=1

    If the words you're looking for in column W are only part of the string in the cell, then you will need to use wildcard criteria, for example

    ="=*MNBS*"

  3. #3
    Registered User
    Join Date
    09-01-2016
    Location
    Ottawa
    MS-Off Ver
    365
    Posts
    3

    Re: Custom sort rows

    Thank you ...

  4. #4
    Registered User
    Join Date
    09-01-2016
    Location
    Ottawa
    MS-Off Ver
    365
    Posts
    3

    Re: Custom sort rows

    In my blank rows I can do the following

    Row 1 Cel W ="=MNBC"
    Row 2 Cel W ="=MNBS"

    and it filters great.

    How can i now just put then into just one command i.e.

    Row 1 Cel W ="=N=MNBC" AND "MNBS"...

    is this possible?

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Custom sort rows

    You could only do that if you wanted to filter rows that contain both strings (that is both in the same row).

    In that case the best way would depend on an additional criteria as well.

    If you want to filter for rows that contain both strings in a specific order, for example, show rows where MNBC is before MBNS in cel W, but hide rows where MNBC appears after MBNS then you would need to use something like ="=*MNBC*MNBS*"

    If you wanted to show rows that contain both in any order, then you would need to use the AND criteria method shown in the link.
    Last edited by jason.b75; 09-02-2016 at 02:29 PM.

+ 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. [SOLVED] Custom sort without custom list
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2016, 02:10 PM
  2. A very custom sort
    By dourpil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2015, 09:30 AM
  3. [SOLVED] How to do Custom Sort in VBA
    By sudharshan86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2014, 05:33 AM
  4. Create a Macro to perform a custom sort on varying number of rows
    By Shirley Munro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2013, 07:09 PM
  5. Challenged: ascending sort within custom sort
    By jhren in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2013, 12:35 PM
  6. Custom Sort
    By rsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2010, 07:39 AM
  7. Excel sort by Fill Color by custom list sort
    By Dash4Cash in forum Excel General
    Replies: 2
    Last Post: 07-29-2005, 06:05 PM

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