ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   School teacher needs help! Need to filter all columns, not just o (https://www.excelbanter.com/excel-worksheet-functions/141390-school-teacher-needs-help-need-filter-all-columns-not-just-o.html)

Steve

School teacher needs help! Need to filter all columns, not just o
 
I have a list of students with their grades. I filter one of the grade
columns into ascending order of grades. But it just sorts that column while
all the others stay put. I want the whole lot to move together for the
obvious reason that I don't want the marks to be misallocated to the wrong
students!
eg TO FILTER into ascending order by COLUMN 2:

START WITH
Column 1 Column 2
Bob Smith C C
Sue Brown C B
Nancy Drew D A

SHOULD READ

Nancy Drew D A
Sue Brown C B
Bob Smith C C

NOT
Bob Smith C A
Sue Brown C B
Nancy Drew D C

Note I am using the FILTER function not the SORT funtion per se


Arvi Laanemets

School teacher needs help! Need to filter all columns, not just o
 
Hi


Your explanation is somehow messy! What do you do exactly?

When you apply AutoFilter feature (DataFilterAutoFilter) to your table,
then you don't sort anything - you only hide all rows not matching the
filter condition;
When you apply Advanced Filter feature (DataFilterAdvancedFilter) , then
you hide non-matchin rows again, or you copy matching rows to new location;
When you want to sort your table, use Sort feature (DataSort) instead.
(Select a single cell from your table, when there are no gaps (fully empty
rows or columns) in your table, or select the whole table before sorting -
when you select a non-single cell part of table instead, only this part will
be sorted);
When you want to copy rows matching some condition to new location sorted by
some column, and you need this as one-time action, sort your table before,
and then apply Advanced Filter;
When you need some part of your table matching some condition to be
displayed in new location, and sorted differently as source data, and
updatable, then use an ODBC Query: Create a named range which includes your
whole table including column headers (you MUST have an header row), and use
this named range as source table for ODBC query. In query properties, you
can set the query to be refreshed automatically after given time interval,
and/or on Open event - and you can refresh it manually too.



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Steve" wrote in message
...
I have a list of students with their grades. I filter one of the grade
columns into ascending order of grades. But it just sorts that column
while
all the others stay put. I want the whole lot to move together for the
obvious reason that I don't want the marks to be misallocated to the wrong
students!
eg TO FILTER into ascending order by COLUMN 2:

START WITH
Column 1 Column 2
Bob Smith C C
Sue Brown C B
Nancy Drew D A

SHOULD READ

Nancy Drew D A
Sue Brown C B
Bob Smith C C

NOT
Bob Smith C A
Sue Brown C B
Nancy Drew D C

Note I am using the FILTER function not the SORT funtion per se




Fred Smith

School teacher needs help! Need to filter all columns, not just o
 
"Note I am using the FILTER function not the SORT funtion per se"

That's your problem. Don't use Filter, use DataSort... Make sure you select the
entire table you want sorted, or, as most people do, just make sure the active
cell is somewhere in your table. Sort will normally figure out the appropriate
table to sort.


--
Regards,
Fred


"Steve" wrote in message
...
I have a list of students with their grades. I filter one of the grade
columns into ascending order of grades. But it just sorts that column while
all the others stay put. I want the whole lot to move together for the
obvious reason that I don't want the marks to be misallocated to the wrong
students!
eg TO FILTER into ascending order by COLUMN 2:

START WITH
Column 1 Column 2
Bob Smith C C
Sue Brown C B
Nancy Drew D A

SHOULD READ

Nancy Drew D A
Sue Brown C B
Bob Smith C C

NOT
Bob Smith C A
Sue Brown C B
Nancy Drew D C

Note I am using the FILTER function not the SORT funtion per se





All times are GMT +1. The time now is 04:27 PM.

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