A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Deleting rows based on column values



 
 
Thread Tools Display Modes
  #1  
Old February 6th, 2009, 12:55 AM posted to microsoft.public.excel.newusers
dazed and confused
external usenet poster
 
Posts: 19
Default Deleting rows based on column values

Have a spreadsheet with 30,000 rows. I need to delete rows that have
specific column values, for example:

Column A = 61
Column B = 60-67
Column C = PAY

Column A = 61
Column B = 70-73 or 100
Column C = CTF

Column A = 61
Column B = 72
Column C = WDI

Column A = 61
Column B = 84 or 120-126
Column C = JDO or JDG

.... And many more. If someone could point me in the right direction as to
how to set this up, it would be greatly appreciated.

Thank you so very much.
  #2  
Old February 6th, 2009, 06:19 AM posted to microsoft.public.excel.newusers
Max
external usenet poster
 
Posts: 8,574
Default Deleting rows based on column values

One way is via Autofilter

Try on a spare copy (always try things on a spare copy)
1. Apply Autofilter*, then filter it by your specific criteria** for cols A
to C
2. Select all the filtered rows (select the blue row headers) Right-click
Delete Row.

3. Re-set it to show all remaining rows via Data Filter Show All
Repeat to filter again by the next criteria set delete ... as required

*Ensure its correctly applied all the way through the data by selecting the
entire cols before clicking Data Filter Autofilter. Don't rely on Excel's
auto-sense. Intervening blank cells in data will disrupt the range covered

**Use the "Custom" bit in the autofilter dropdown. Since you have 30k rows
range, not all uniques may show in the dropdown (there's a limit of 1000
items in xl03 or earlier). Anyway, you would need the Custom Autofilter
dialog to specify a range of values to filter (eg: col B = 60-67)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"Dazed and Confused" wrote:
Have a spreadsheet with 30,000 rows. I need to delete rows that have
specific column values, for example:

Column A = 61
Column B = 60-67
Column C = PAY

Column A = 61
Column B = 70-73 or 100
Column C = CTF

Column A = 61
Column B = 72
Column C = WDI

Column A = 61
Column B = 84 or 120-126
Column C = JDO or JDG

... And many more. If someone could point me in the right direction as to
how to set this up, it would be greatly appreciated.

Thank you so very much.

  #3  
Old February 6th, 2009, 05:35 PM posted to microsoft.public.excel.newusers
dazed and confused
external usenet poster
 
Posts: 19
Default Deleting rows based on column values

Max, that was very helpful. It cut my clean up time by more than 60%.
Thanks again!

"Max" wrote:

One way is via Autofilter

Try on a spare copy (always try things on a spare copy)
1. Apply Autofilter*, then filter it by your specific criteria** for cols A
to C
2. Select all the filtered rows (select the blue row headers) Right-click
Delete Row.

3. Re-set it to show all remaining rows via Data Filter Show All
Repeat to filter again by the next criteria set delete ... as required

*Ensure its correctly applied all the way through the data by selecting the
entire cols before clicking Data Filter Autofilter. Don't rely on Excel's
auto-sense. Intervening blank cells in data will disrupt the range covered

**Use the "Custom" bit in the autofilter dropdown. Since you have 30k rows
range, not all uniques may show in the dropdown (there's a limit of 1000
items in xl03 or earlier). Anyway, you would need the Custom Autofilter
dialog to specify a range of values to filter (eg: col B = 60-67)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"Dazed and Confused" wrote:
Have a spreadsheet with 30,000 rows. I need to delete rows that have
specific column values, for example:

Column A = 61
Column B = 60-67
Column C = PAY

Column A = 61
Column B = 70-73 or 100
Column C = CTF

Column A = 61
Column B = 72
Column C = WDI

Column A = 61
Column B = 84 or 120-126
Column C = JDO or JDG

... And many more. If someone could point me in the right direction as to
how to set this up, it would be greatly appreciated.

Thank you so very much.

  #4  
Old February 6th, 2009, 10:47 PM posted to microsoft.public.excel.newusers
Max
external usenet poster
 
Posts: 8,574
Default Deleting rows based on column values

Welcome, glad it helped.
Thanks for rating and feedback.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"Dazed and Confused" wrote in
message ...
Max, that was very helpful. It cut my clean up time by more than 60%.
Thanks again!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.