Re: macro - delete row if cell contains string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You could use a helper column with formulas like:

=isnumber(search("/",a2))

Then drag it down the column.

Then apply data|filter|autofilter to that column.
Show the Trues and delete those visible rows.

alex.kemsley@xxxxxxxxxxxxxxxxx wrote:

Hi all,

Can some one help me please!
Here is a slightly more complex macro that I really need. I have a list
of domain names in excel for example:

1 www.throneofnails.com
2 www.throneofnails.com/info/index.html
3 www.fairkess.com/en/business/industrie.html
4 www.endlessdecor.com/Links.html
5 www.retractableawnings.com/resources.htm
6 www.ffbd-tm.com
7 www.ffbd-tm.com/test

I need a macro that will delete all the top level domain names eg
www.throneofnails.com and delete all files in that domain eg
www.throneofnails.com/info/index.html.

I need to be left with a list of only domain names like domain name 3,4
and 5.

I think it will probably have something to do with finding the cells
that dont contain a "/" then loading them into an array then deleting
all cells that contain the contents of that array.

Unfortunately I dont have the programing language to do this.

Your help would be much appreciated.

Many thanks

Alex Kemsley

--

Dave Peterson
.



Relevant Pages

  • macro - delete row if cell contains string
    ... Here is a slightly more complex macro that I really need. ... I think it will probably have something to do with finding the cells ... all cells that contain the contents of that array. ... Unfortunately I dont have the programing language to do this. ...
    (microsoft.public.excel.programming)
  • Re: leave cell blank and continue with formula
    ... Well...I just tried and it works even if you leave some cells blank. ... Dont ... forget to array enter it...CTRL+SHIFT+ENTER. ... I add the numbers of animals and lbs in the spreadsheet. ...
    (microsoft.public.excel.worksheet.functions)
  • RE: excel formulas
    ... converts a number from euros to a euro member ... Counts the cells that contain numbers in a database ... Specifies a logical test to perform ... Looks in the top row of an array and returns the value of the indicated cell ...
    (microsoft.public.excel.misc)
  • Re: excel formulas
    ... member currency, or converts a number from one euro member currency ... Counts the cells that contain numbers in a database ... Specifies a logical test to perform ... Looks in the top row of an array and returns the value of the ...
    (microsoft.public.excel.misc)
  • Re: Excel Cell Formats
    ... Disable the update of excel. ... Copy the cells from this new sheet to my selection ... Someone suggested that I create a dummy 2D array containing my ... new ordering, but for my selection only, not the entire row. ...
    (microsoft.public.excel.programming)