+ Reply to Thread
Results 1 to 4 of 4

How to delete multiple values in a column based on Criteria

  1. #1
    Registered User
    Join Date
    08-02-2010
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    7

    Post How to delete multiple values in a column based on Criteria

    Can any one help how to delete the multiple values in a single column leaving only particular value starting with "EXT".
    For Example: I am having an excel in column E,for each row i am having multiple values in E Column like General User;General ALL;EXT-Quanta. I need to delete the all values except the values starting with EXT in that column.

    please suggest how to delete the values by using macros or any other procedure..

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to delete multiple values in a column based on Criteria

    Hi,

    you could use a helper column with this formula:

    =if(left(E1,3)="EXT",1,0)

    copy the formula down, then sort by the new column, select all rows where the new column has a 0 as one block and delete.

  3. #3
    Registered User
    Join Date
    08-02-2010
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    7

    Post Re: How to delete multiple values in a column based on Criteria

    I tried with this formula for finding the values starting with "EXT" from the cell

    =MID(B2,FIND("EXT",B2),FIND(";",B2,(FIND("EXT",B2))))

    Its working fine when there is only one value starting with "EXT".

    In case, we have multiple values starting with EXT in one cell For eg:
    EXT-gen;rest;life;EXT-test

    Its giving this output:
    EXT-gen;

    Required output:
    EXT-gen;EXT-test

    Can anyone help with this formula...

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to delete multiple values in a column based on Criteria

    You're changing the goalposts during the game.

    Please upload a representative data sample in an Excel file and mock up your expected results. Although you say in your first post that you want to act on values that start with EXT, you second post suggests that you want to do something different altogether.

    Post a file. Nobody can read your mind.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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