Delete Row if cell contains text

Borborb

New Member
Joined
Feb 17, 2016
Messages
4
I have found several difference renditions close to what I am trying to do but it isn't working, so I figured it was time to ask.

I have a text file that I am importing into Excel. It then has approximately 100,000 lines and much of it is useless, and needs to be reduced. I use import manager to eliminate the columns to 2.

There is a variety of data that needs to be deleted.
1. I search by blank cells in A and delete row
2. I search by blank cells in B and delete row
3. I have to CTRL+F ALL the following (This is the beginning of various entries, essentially add * to all)
  • Ac
  • No
  • Inv
  • Esc
  • To
  • Rep
  • Ban
In reality, I need to delete every row where the value of the cell in A is not a number. The issue I have found with record macro, it doesn't like CTRL+F.

All said and done, if I manually clean this up, I'm left with about 11k lines.

I have attempted several options I have found on this site, and others, and keep coming up short. Any help would be greatly appreciated!
 
My script in Post #7 deletes the empty rows also
This did exactly what I needed, thank you. I think the biggest problem was searching Google. It was rather hard to articulate what I was trying to accomplish, but learned another aspect of an already useful tool that I use, the advanced search.

While the macros way still work, this eliminates everything but the blank rows, which I can then filter out in 1 more step.

This is definitely the quickest and simplest solution!
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,216,604
Messages
6,131,697
Members
449,666
Latest member
Tommy2Tables365

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top