ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Autofilter only sorts the columns inlcluded (version 2007) (https://www.excelbanter.com/excel-discussion-misc-queries/134954-autofilter-only-sorts-columns-inlcluded-version-2007-a.html)

David Fredriksson

Autofilter only sorts the columns inlcluded (version 2007)
 
In Excel 2003, the autofilter sorting function would sort the columns of the
whole sheet, even when the autofilter area only included i.e. the columns A
to F.

When doing the same in version 2007, only the columns included in the actual
autofilter range, is sorted...

Example:

A B C
1 x1 y3 z1
2 x2 y2 z2
3 x3 y3 z3

When having autofilter on only column A and sorting it descending you get
the following result in 2007:

A B C
1 x3 y1 z1
2 x2 y2 z2
3 x1 y3 z3

Whereas 2003 will give this result:

A B C
1 x3 y3 z3
2 x2 y2 z2
3 x1 y1 z1

Which is more correct...

Is this a new "feature" or a bug?

/David

Dave Peterson

Autofilter only sorts the columns inlcluded (version 2007)
 
In xl2003, if there was an empty column between the autofilter and the rest of
the data, then the rest of the data wasn't sorted.

If the filter range and the other data was touching, then the other data sorted
with the filter range.

But xl2007 does behave differently.

To call it a bug or a feature would depend on how you want it to work. (It sure
looks like xl2007's behavior would be what I want in most cases.)

I think the thing to remember is that there is a difference. And not to rely on
the same behavior.

David Fredriksson wrote:

In Excel 2003, the autofilter sorting function would sort the columns of the
whole sheet, even when the autofilter area only included i.e. the columns A
to F.

When doing the same in version 2007, only the columns included in the actual
autofilter range, is sorted...

Example:

A B C
1 x1 y3 z1
2 x2 y2 z2
3 x3 y3 z3

When having autofilter on only column A and sorting it descending you get
the following result in 2007:

A B C
1 x3 y1 z1
2 x2 y2 z2
3 x1 y3 z3

Whereas 2003 will give this result:

A B C
1 x3 y3 z3
2 x2 y2 z2
3 x1 y1 z1

Which is more correct...

Is this a new "feature" or a bug?

/David


--

Dave Peterson

David Fredriksson

Autofilter only sorts the columns inlcluded (version 2007)
 
Ok. So if I understand you correctly, there is no way to sort all columns in
2007?

Or do I misunderstand you...?

/David


"Dave Peterson" wrote:

In xl2003, if there was an empty column between the autofilter and the rest of
the data, then the rest of the data wasn't sorted.

If the filter range and the other data was touching, then the other data sorted
with the filter range.

But xl2007 does behave differently.

To call it a bug or a feature would depend on how you want it to work. (It sure
looks like xl2007's behavior would be what I want in most cases.)

I think the thing to remember is that there is a difference. And not to rely on
the same behavior.

David Fredriksson wrote:

In Excel 2003, the autofilter sorting function would sort the columns of the
whole sheet, even when the autofilter area only included i.e. the columns A
to F.

When doing the same in version 2007, only the columns included in the actual
autofilter range, is sorted...

Example:

A B C
1 x1 y3 z1
2 x2 y2 z2
3 x3 y3 z3

When having autofilter on only column A and sorting it descending you get
the following result in 2007:

A B C
1 x3 y1 z1
2 x2 y2 z2
3 x1 y3 z3

Whereas 2003 will give this result:

A B C
1 x3 y3 z3
2 x2 y2 z2
3 x1 y1 z1

Which is more correct...

Is this a new "feature" or a bug?

/David


--

Dave Peterson


Dave Peterson

Autofilter only sorts the columns inlcluded (version 2007)
 
Select the range you want to sort first, then use sort--not the sort under the
filter arrows.

Or include all the range in the filter???

David Fredriksson wrote:

Ok. So if I understand you correctly, there is no way to sort all columns in
2007?

Or do I misunderstand you...?

/David

"Dave Peterson" wrote:

In xl2003, if there was an empty column between the autofilter and the rest of
the data, then the rest of the data wasn't sorted.

If the filter range and the other data was touching, then the other data sorted
with the filter range.

But xl2007 does behave differently.

To call it a bug or a feature would depend on how you want it to work. (It sure
looks like xl2007's behavior would be what I want in most cases.)

I think the thing to remember is that there is a difference. And not to rely on
the same behavior.

David Fredriksson wrote:

In Excel 2003, the autofilter sorting function would sort the columns of the
whole sheet, even when the autofilter area only included i.e. the columns A
to F.

When doing the same in version 2007, only the columns included in the actual
autofilter range, is sorted...

Example:

A B C
1 x1 y3 z1
2 x2 y2 z2
3 x3 y3 z3

When having autofilter on only column A and sorting it descending you get
the following result in 2007:

A B C
1 x3 y1 z1
2 x2 y2 z2
3 x1 y3 z3

Whereas 2003 will give this result:

A B C
1 x3 y3 z3
2 x2 y2 z2
3 x1 y1 z1

Which is more correct...

Is this a new "feature" or a bug?

/David


--

Dave Peterson


--

Dave Peterson

Gord Dibben

Autofilter only sorts the columns inlcluded (version 2007)
 
If you have created a "list" under DataCreate list, only that list area will
sort.

Have you created a list with just column A?


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 08:31:38 -0700, David Fredriksson
wrote:

Ok. So if I understand you correctly, there is no way to sort all columns in
2007?

Or do I misunderstand you...?

/David


"Dave Peterson" wrote:

In xl2003, if there was an empty column between the autofilter and the rest of
the data, then the rest of the data wasn't sorted.

If the filter range and the other data was touching, then the other data sorted
with the filter range.

But xl2007 does behave differently.

To call it a bug or a feature would depend on how you want it to work. (It sure
looks like xl2007's behavior would be what I want in most cases.)

I think the thing to remember is that there is a difference. And not to rely on
the same behavior.

David Fredriksson wrote:

In Excel 2003, the autofilter sorting function would sort the columns of the
whole sheet, even when the autofilter area only included i.e. the columns A
to F.

When doing the same in version 2007, only the columns included in the actual
autofilter range, is sorted...

Example:

A B C
1 x1 y3 z1
2 x2 y2 z2
3 x3 y3 z3

When having autofilter on only column A and sorting it descending you get
the following result in 2007:

A B C
1 x3 y1 z1
2 x2 y2 z2
3 x1 y3 z3

Whereas 2003 will give this result:

A B C
1 x3 y3 z3
2 x2 y2 z2
3 x1 y1 z1

Which is more correct...

Is this a new "feature" or a bug?

/David


--

Dave Peterson




All times are GMT +1. The time now is 09:48 PM.

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