Solved

Need to filter out certain rows in an excel spreadsheet

Posted on 2015-02-04
7
64 Views
Last Modified: 2015-02-12
I have a large spreadsheet to modify, but have included a small sample (attached) for explanation.

I only want certain rows.  

For example, I want Row 2 because there is a # sign in column A beside it.  I do NOT want Row 1 because there is a Row 2 where R1C2 matches R2C2.

Another Example:  I only want row 8, not row 7 or row 9, because a row exists with G0105 in column B and a # sign in column A.

I DO want the rows 14 through 18, however,because there are no rows where a # sign exists for those identifiers in column B.

So the # sign trumps all, but in addition I want to exclude any rows where there is a value in column C.

Does anyone know how to do this?
testing-sample-2.xlsx
0
Comment
Question by:Becky Edwards
  • 4
  • 3
7 Comments
 
LVL 25

Expert Comment

by:ProfessorJimJam
Comment Utility
run the macro in the attached workbook and it will do the job
testing-sample-2.xlsm
0
 

Author Comment

by:Becky Edwards
Comment Utility
I tried it, we are almost there!.  Except it removed all the rows where there were no # signs in the row.  I need those rows also, if no row exists for that Code (example G0108) with a # sign beside it.  

Example:
I DO want the rows 14 through 18, however,because there are no rows where a # sign exists for those identifiers in column B.
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
Comment Utility
i do not understand the requirement.

can u upload the file, by deleting all of the rows that need to be deleted and leave those need to stay.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:Becky Edwards
Comment Utility
I need EXCEL to evaluate each row and delete if necessary.  

In the attached file,
I do not need row one because row two exists, for G0101, with a # sign in column a. Delete row one.
I do not need row three because row four exists, for G0102, with a # sign in column a.  Delete row three.
The same for rows 5,6,7,8,9,10.  I want to keep the rows 6,8, 10 and delete rows 5,7,9.
I need row 11 for code G0106 because rows 12 and 13 for G0106 have modifiers in column C, so that disqualifies rows 12 and 13.  Delete rows 12 and 13.
I need row 14 - 18 because no row exists with a # sign for those codes in column B, G0108 through G0120.

Does this help?  Thank you for your patience!
0
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
Comment Utility
please see attached file.  run the macro "deleterows"
testing-sample-2.xlsm
0
 

Author Closing Comment

by:Becky Edwards
Comment Utility
Wow.  This is awesome.  You just corrected my huge spreadsheet in seconds.  Something the girl at work here takes hours to do by hand.  

I really appreciate your hard work, and the fact you are willing to share with others.

Your my hero.

Thank you ProfessorJimJam
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
Comment Utility
You are welcome.

Thanks for feedback.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Office 2010 is Microsoft's latest edition to their office productivity collection. It "promises to include rich and powerful new ways to deliver your best work". So to start off, I have to say that I'm slightly disappointed... That bei…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now