deleting lines based on the values of a column

Nils_Junker

Board Regular
Joined
Jun 2, 2023
Messages
80
Office Version
  1. 365
Platform
  1. Windows
hi everybody,
i have the following data (just a snippet, it goes further down)
AB
F000034602LE6300
F000034461LE6300
F000034603LE6300
7517701​
Dummy
F000044070LE6300
F000117104LE6300
F000115754LE6300
F000115752LE6300
F000035619LE6300
I want to delete all lines containing dummy in column B.
How do i do that (if possible without VBA)
Thanks for helping
BR
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You could use Power Query to filter it out and then it would create a new table that you can reference.
 
Upvote 0
hi everybody,
i have the following data (just a snippet, it goes further down)
AB
F000034602LE6300
F000034461LE6300
F000034603LE6300
7517701​
Dummy
F000044070LE6300
F000117104LE6300
F000115754LE6300
F000115752LE6300
F000035619LE6300
I want to delete all lines containing dummy in column B.
How do i do that (if possible without VBA)
Thanks for helping
BR
there are of course more lines containing the word Dummy in column B
 
Upvote 0
You can use the FILTER function again, just like I showed you on your other question, i.e.
1707235344967.png


Formula for cell D2:
Excel Formula:
=FILTER(A2:B10,B2:B10<>"Dummy")
 
Upvote 0
Or a quick and dirty manual method might be to apply an auto filter, filter column B to 'Dummy', delete the visible lines, remove the filter.
 
Upvote 0
can you explain me how exactly that works
Select columns B:C or however many columns you want to include in the filter.
Go to 'Data' in the ribbon.
Select the 'Filter' button.
Click the dropdown that appears in column B.
Untick 'Select All'.
Tick 'Dummy'.
Click 'OK'.
Select all of the rows that are now visible.
Right click and select 'Delete Row'
Hit the 'Filter' button again in the ribbon.
Done
 
Upvote 0
problem is that on the right there are important columns who have to match exactly to A and dB
I don't know what that means. What are you trying to say?

How about posting a more realistic example of your data?
Don't oversimplify it for our sake, or you may get an answer that works for your oversimplified example but not your real data.
And then show us what your expected result should look like.
 
Upvote 0

Forum statistics

Threads
1,215,879
Messages
6,127,518
Members
449,385
Latest member
KMGLarson

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