Deleting rows with data that includes _xx_ or hiding them using AutoFilter

mkrautler

New Member
Joined
Dec 4, 2019
Messages
16
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hi, I desperately need help and I have tried most of the recommendations I have found but either I am not doing it correctly (which is usually the case) or they don't work for my situation. I have a spreadsheet that is pulled from a data source in CSV format which includes over 10,000 rows. I need to show the rows that ONLY start with REQ in column A (CaseName) and have the rows that start with JOB_, PRJ_ and CMP_ in column A deleted or not shown (hidden) through autofilter.

I tried to record a macro while manually attempting to use the autofilter process but it gave me an error message "Too many line continuations" due to what I assume is all the '_' in the cells. Is there any way to get around this so that I can show ONLY the rows that begin with REQ in column A? This report is manually generated three times daily and this is the last step in automating the process so that I will no longer have to do any of the editing manually.

Thank you in advance, I really appreciate any help you can give or point me in a better direction.

1580132567898.png


Thank you greatly, I truly appreciate it!!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
VBA Code:
Sub mkrautler()
   Range("A1").AutoFilter 1, "req*"
End Sub
 
Upvote 0
OMG, it was THAT easy?!?! You are incredible!! I literally tried like 10 different suggestions and none worked this well, I can't believe I didn't try this first! Thank you, thank you, thank you!!!!! I would say I love you but I don't want to cross any lines....hahahaha
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,535
Messages
6,114,198
Members
448,554
Latest member
Gleisner2

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