PC Review


Reply
Thread Tools Rate Thread

Advanced FIlter behaviour?

 
 
Jay
Guest
Posts: n/a
 
      1st Aug 2006
Today, whilst sorting a worksheet Excel behaved in a way I didn't expect.

Column F, rows 1 to 200, contained concatenations of the previous five
columns i.e

=A1&B1&C1&D1&E1
=A2&B2&C2&D2&E2

etc....down to =A200&B200&C200&D200&E200

What I wanted was a list of the unique values in F, so selected the
range F1:F200 and Data->Advanced Filter. I selected 'Unique Records
only' and to copy the filtered data under my range.

Wat Excel did, however, was copy the unique records from the A to E
cells being concatenated. So instead of a list pf unique records in one
column I had a 5 column list. Now it just so happens that this was
*very* useful to me.

It just really surprised me as I never expected it to filter the cells
being concatenated rather than the actual result of the concatenation.
WHy did it do this? How would I have filtered just the F column data?

Jay
 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      1st Aug 2006
If you selected F1:F200, that's the range that should have been
filtered. Perhaps the range changed when you opened the Advanced Filter
dialog box, and you didn't notice.

Also, if you're using the Advanced Filter, you should have a heading in
the first row. Otherwise, the first value will be treated as the
heading, and may be duplicated in the list.

Jay wrote:
> Today, whilst sorting a worksheet Excel behaved in a way I didn't expect.
>
> Column F, rows 1 to 200, contained concatenations of the previous five
> columns i.e
>
> =A1&B1&C1&D1&E1
> =A2&B2&C2&D2&E2
>
> etc....down to =A200&B200&C200&D200&E200
>
> What I wanted was a list of the unique values in F, so selected the
> range F1:F200 and Data->Advanced Filter. I selected 'Unique Records
> only' and to copy the filtered data under my range.
>
> Wat Excel did, however, was copy the unique records from the A to E
> cells being concatenated. So instead of a list pf unique records in one
> column I had a 5 column list. Now it just so happens that this was
> *very* useful to me.
>
> It just really surprised me as I never expected it to filter the cells
> being concatenated rather than the actual result of the concatenation.
> WHy did it do this? How would I have filtered just the F column data?
>
> Jay



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      1st Aug 2006
No, I did the same thing in several worksheets and the range didn't
change in the dialog box. I even entered it manually as a double-check

And I know about the header row, I just didn't mention it in my post.

Column F was definitely the range to be filtered but it definitely
returned the 5 columns (from the concatenation in the F column cells)?

Jay


Debra Dalgleish wrote:
> If you selected F1:F200, that's the range that should have been
> filtered. Perhaps the range changed when you opened the Advanced Filter
> dialog box, and you didn't notice.
>
> Also, if you're using the Advanced Filter, you should have a heading in
> the first row. Otherwise, the first value will be treated as the
> heading, and may be duplicated in the list.
>
> Jay wrote:
>> Today, whilst sorting a worksheet Excel behaved in a way I didn't expect.
>>
>> Column F, rows 1 to 200, contained concatenations of the previous five
>> columns i.e
>>
>> =A1&B1&C1&D1&E1
>> =A2&B2&C2&D2&E2
>>
>> etc....down to =A200&B200&C200&D200&E200
>>
>> What I wanted was a list of the unique values in F, so selected the
>> range F1:F200 and Data->Advanced Filter. I selected 'Unique Records
>> only' and to copy the filtered data under my range.
>>
>> Wat Excel did, however, was copy the unique records from the A to E
>> cells being concatenated. So instead of a list pf unique records in
>> one column I had a 5 column list. Now it just so happens that this
>> was *very* useful to me.
>>
>> It just really surprised me as I never expected it to filter the cells
>> being concatenated rather than the actual result of the concatenation.
>> WHy did it do this? How would I have filtered just the F column data?
>>
>> Jay

>
>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      1st Aug 2006
I think Excel saw it as a contiguous block of records and that's why
you also got columns A to E. If you insert a blank column between E and
F (so that F becomes G) and try it with just G then you will not get
the other columns.

Hope this helps.

Pete

Jay wrote:
> No, I did the same thing in several worksheets and the range didn't
> change in the dialog box. I even entered it manually as a double-check
>
> And I know about the header row, I just didn't mention it in my post.
>
> Column F was definitely the range to be filtered but it definitely
> returned the 5 columns (from the concatenation in the F column cells)?
>
> Jay
>
>
> Debra Dalgleish wrote:
> > If you selected F1:F200, that's the range that should have been
> > filtered. Perhaps the range changed when you opened the Advanced Filter
> > dialog box, and you didn't notice.
> >
> > Also, if you're using the Advanced Filter, you should have a heading in
> > the first row. Otherwise, the first value will be treated as the
> > heading, and may be duplicated in the list.
> >
> > Jay wrote:
> >> Today, whilst sorting a worksheet Excel behaved in a way I didn't expect.
> >>
> >> Column F, rows 1 to 200, contained concatenations of the previous five
> >> columns i.e
> >>
> >> =A1&B1&C1&D1&E1
> >> =A2&B2&C2&D2&E2
> >>
> >> etc....down to =A200&B200&C200&D200&E200
> >>
> >> What I wanted was a list of the unique values in F, so selected the
> >> range F1:F200 and Data->Advanced Filter. I selected 'Unique Records
> >> only' and to copy the filtered data under my range.
> >>
> >> Wat Excel did, however, was copy the unique records from the A to E
> >> cells being concatenated. So instead of a list pf unique records in
> >> one column I had a 5 column list. Now it just so happens that this
> >> was *very* useful to me.
> >>
> >> It just really surprised me as I never expected it to filter the cells
> >> being concatenated rather than the actual result of the concatenation.
> >> WHy did it do this? How would I have filtered just the F column data?
> >>
> >> Jay

> >
> >


 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      1st Aug 2006
I didn't *also* get columns A to E. I *only* got A to E, which were the
cells concatenated in the F column range I was filtering for unique values?

Jay


Pete_UK wrote:
> I think Excel saw it as a contiguous block of records and that's why
> you also got columns A to E. If you insert a blank column between E and
> F (so that F becomes G) and try it with just G then you will not get
> the other columns.
>
> Hope this helps.
>
> Pete
>
> Jay wrote:
>> No, I did the same thing in several worksheets and the range didn't
>> change in the dialog box. I even entered it manually as a double-check
>>
>> And I know about the header row, I just didn't mention it in my post.
>>
>> Column F was definitely the range to be filtered but it definitely
>> returned the 5 columns (from the concatenation in the F column cells)?
>>
>> Jay
>>
>>
>> Debra Dalgleish wrote:
>>> If you selected F1:F200, that's the range that should have been
>>> filtered. Perhaps the range changed when you opened the Advanced Filter
>>> dialog box, and you didn't notice.
>>>
>>> Also, if you're using the Advanced Filter, you should have a heading in
>>> the first row. Otherwise, the first value will be treated as the
>>> heading, and may be duplicated in the list.
>>>
>>> Jay wrote:
>>>> Today, whilst sorting a worksheet Excel behaved in a way I didn't expect.
>>>>
>>>> Column F, rows 1 to 200, contained concatenations of the previous five
>>>> columns i.e
>>>>
>>>> =A1&B1&C1&D1&E1
>>>> =A2&B2&C2&D2&E2
>>>>
>>>> etc....down to =A200&B200&C200&D200&E200
>>>>
>>>> What I wanted was a list of the unique values in F, so selected the
>>>> range F1:F200 and Data->Advanced Filter. I selected 'Unique Records
>>>> only' and to copy the filtered data under my range.
>>>>
>>>> Wat Excel did, however, was copy the unique records from the A to E
>>>> cells being concatenated. So instead of a list pf unique records in
>>>> one column I had a 5 column list. Now it just so happens that this
>>>> was *very* useful to me.
>>>>
>>>> It just really surprised me as I never expected it to filter the cells
>>>> being concatenated rather than the actual result of the concatenation.
>>>> WHy did it do this? How would I have filtered just the F column data?
>>>>
>>>> Jay
>>>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't advanced filter return filter results? =?Utf-8?B?amF3czQ1MTg=?= Microsoft Excel Worksheet Functions 6 12th Sep 2006 06:11 PM
Why won't advanced filter return filter results? =?Utf-8?B?amF3czQ1MTg=?= Microsoft Excel Worksheet Functions 0 11th Sep 2006 06:46 PM
How do I use advanced filter to filter for blank cells? =?Utf-8?B?TW9uaXF1ZQ==?= Microsoft Excel Misc 2 21st Mar 2006 06:43 PM
advanced filter won't allow me to filter on bracketed text (-456.2 =?Utf-8?B?THVjaWFub0c=?= Microsoft Excel Misc 2 7th Dec 2004 09:03 AM
automating data/filter /advanced filter copy Frank Microsoft Excel Worksheet Functions 2 7th Jan 2004 10:31 PM


Features
 

Advertising
 

Newsgroups
 


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