Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 14
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   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 14
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   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
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!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing rows based on other column values jonny Excel Worksheet Functions 7 January 28th 09 11:45 PM
Deleting rows based on values in a a cell in the row Martin New Users to Excel 1 January 25th 09 11:46 AM
Deleting Rows based on Column Critieria blackmanofsteel40 Excel Discussion (Misc queries) 1 September 7th 07 09:05 PM
Deleting rows based on IF statement simmerdown Excel Discussion (Misc queries) 1 September 9th 05 02:18 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM


All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"