Find all cells in column that row contains specific string and delete those rows.

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
180
I have a huge spreadsheet that has names, addresses, city, state and zip code, with phone numbers that will be five rows in one column. What I'm trying to do is remove the rows that contain a partial string of, "Funeral Homes in" and a wildcard for the additional string characters. I don't know if this is permitted in the same post but then would like to take the names, addresses... that are five rows and separate them into their own columns with another formula. There is a single empty row between the other five rows currently, or will be when I'm able to delete the "Funeral Homes in" rows. Thank you in advance for any and all assistance.
 

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,161
Office Version
  1. 365
Platform
  1. Windows
If you are truly interested in learning PQ, then pick up the book "M is for (Data) Monkey" by Ken Puls and Miguel Escobar. Available on Amazon and the home page on MrE in his bookstore.
 

Some videos you may like

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.

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
180
When I open the Power Query editor there are no menu items enabled. Where am I supposed to run the code for the query?? Thank you in advance as I have been doing this manually one row at a time.
 

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,161
Office Version
  1. 365
Platform
  1. Windows
Open Power Query/Get and Transform. Click on New Query.

Open blank query in the editor, launch Advanced Editor and paste in the following code.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,660
Messages
5,626,152
Members
416,165
Latest member
hamburger138

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
Top