ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   keeping groups when filtering (https://www.excelbanter.com/excel-discussion-misc-queries/220364-keeping-groups-when-filtering.html)

JCT77

keeping groups when filtering
 
I have a spreadsheet set up where each column has a header. (Status,
Priority, Responsibility, etc). Then amongst my data I have header rows,
breaking them into groups (EE tasks, ME tasks, etc) I want to filter the rows
where the Status cell contains "complete", but keep the groups together with
the headers showing. Example is below.

View before filtering

Status Responsibility
EE tasks
complete Jim
delayed Tom
complete Dave
ME tasks
delayed Joe
cancelled Sara
complete Sally


View after filtering

Status Responsibility
EE tasks
complete Jim
complete Dave
ME tasks
complete Sally


What is the best way to accomplish this?

Bob Umlas, Excel MVP

keeping groups when filtering
 
For the filter of Status, you can do a Custom Filter, choosing Equals Complete
then select the Or button, and Ends With, and then "tasks"

"JCT77" wrote:

I have a spreadsheet set up where each column has a header. (Status,
Priority, Responsibility, etc). Then amongst my data I have header rows,
breaking them into groups (EE tasks, ME tasks, etc) I want to filter the rows
where the Status cell contains "complete", but keep the groups together with
the headers showing. Example is below.

View before filtering

Status Responsibility
EE tasks
complete Jim
delayed Tom
complete Dave
ME tasks
delayed Joe
cancelled Sara
complete Sally


View after filtering

Status Responsibility
EE tasks
complete Jim
complete Dave
ME tasks
complete Sally


What is the best way to accomplish this?


Alojz

keeping groups when filtering
 
Bob's suggestion works. For more complex filtering use advanced filter.
Above ur list insert several emty rows. Create here the area for filter
criteria. In first row type Status, bellow this cell place the list of ur
tasks vertically: EE tasks, ME tasks, etc.
To the next cell bellow type the status you want to see, in this case:
complete.
leave at least one row empty between criteria area and original list area.
Go to data-filter-advanced filter, assign criteria area, list area. That's
it!

Click yes if this is helpful.

"JCT77" wrote:

I have a spreadsheet set up where each column has a header. (Status,
Priority, Responsibility, etc). Then amongst my data I have header rows,
breaking them into groups (EE tasks, ME tasks, etc) I want to filter the rows
where the Status cell contains "complete", but keep the groups together with
the headers showing. Example is below.

View before filtering

Status Responsibility
EE tasks
complete Jim
delayed Tom
complete Dave
ME tasks
delayed Joe
cancelled Sara
complete Sally


View after filtering

Status Responsibility
EE tasks
complete Jim
complete Dave
ME tasks
complete Sally


What is the best way to accomplish this?



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com