Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Filter for frist record in a sorted list

I am trying to use a computed/calculated filter for a list of records sorted
by the first column. The first column has SSNumbers with multiple duplicates.
I want to filter for just the first SSNs of those duplicates - so a unique
list of SSN and what comes with that record.

This is what I came up with:
1. =$A2<$A1 or =$A2<$A3 (but this leaves either the first or the last
unique entry out).
2. =COUNTIF(SA$2:A2,A2)=1 (but then I get all the first duplicates together,
and no other records).

What should I have done instead?

Thanks so much for your solution.

Gerry
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Filter for frist record in a sorted list

for your second equation, you should have two results 1s and 0s
the 1s shoul dbe bothe the first duplicate and the unique records
are yoiu using autofilter to then select what you want or what are you doing
after you have applied the euation.

you could also use advanced filter to select a unique lis of serial numbers
and then use Vlookup t select the first instancwe of match.

"Gerry Verschuuren" wrote:

I am trying to use a computed/calculated filter for a list of records sorted
by the first column. The first column has SSNumbers with multiple duplicates.
I want to filter for just the first SSNs of those duplicates - so a unique
list of SSN and what comes with that record.

This is what I came up with:
1. =$A2<$A1 or =$A2<$A3 (but this leaves either the first or the last
unique entry out).
2. =COUNTIF(SA$2:A2,A2)=1 (but then I get all the first duplicates together,
and no other records).

What should I have done instead?

Thanks so much for your solution.

Gerry

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Filter for frist record in a sorted list

I use an advanced filter with the formula in the filter. So the formula does
not give me 0's and 1's by only TRUE or FALSE for the 1st record. Then I
apply the filter and do not get what I expect.

"bj" wrote:

for your second equation, you should have two results 1s and 0s
the 1s shoul dbe bothe the first duplicate and the unique records
are yoiu using autofilter to then select what you want or what are you doing
after you have applied the euation.

you could also use advanced filter to select a unique lis of serial numbers
and then use Vlookup t select the first instancwe of match.

"Gerry Verschuuren" wrote:

I am trying to use a computed/calculated filter for a list of records sorted
by the first column. The first column has SSNumbers with multiple duplicates.
I want to filter for just the first SSNs of those duplicates - so a unique
list of SSN and what comes with that record.

This is what I came up with:
1. =$A2<$A1 or =$A2<$A3 (but this leaves either the first or the last
unique entry out).
2. =COUNTIF(SA$2:A2,A2)=1 (but then I get all the first duplicates together,
and no other records).

What should I have done instead?

Thanks so much for your solution.

Gerry

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Filter for frist record in a sorted list

rather than using these equations with advanced filter,
I assume your data is sorted
I would use a helper column and change your equaition
to
in row 1 1
in row 2 =if(A2=A1,"",1)
copy row two down
use auto filter on the helper column and select the 1s
if not sorted
in the helper column row 1
=countif(A$1:A1,A1)
autofilter select 1s

"Gerry Verschuuren" wrote:

I use an advanced filter with the formula in the filter. So the formula does
not give me 0's and 1's by only TRUE or FALSE for the 1st record. Then I
apply the filter and do not get what I expect.

"bj" wrote:

for your second equation, you should have two results 1s and 0s
the 1s shoul dbe bothe the first duplicate and the unique records
are yoiu using autofilter to then select what you want or what are you doing
after you have applied the euation.

you could also use advanced filter to select a unique lis of serial numbers
and then use Vlookup t select the first instancwe of match.

"Gerry Verschuuren" wrote:

I am trying to use a computed/calculated filter for a list of records sorted
by the first column. The first column has SSNumbers with multiple duplicates.
I want to filter for just the first SSNs of those duplicates - so a unique
list of SSN and what comes with that record.

This is what I came up with:
1. =$A2<$A1 or =$A2<$A3 (but this leaves either the first or the last
unique entry out).
2. =COUNTIF(SA$2:A2,A2)=1 (but then I get all the first duplicates together,
and no other records).

What should I have done instead?

Thanks so much for your solution.

Gerry

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter record on color scheme Prashant Excel Worksheet Functions 1 May 12th 06 12:17 PM
Sorted list G Chartrand Excel Discussion (Misc queries) 2 April 28th 06 05:07 PM
Record count in filter mode jlt Excel Discussion (Misc queries) 1 March 16th 06 10:44 PM
advance filter excluding record Souris Excel Discussion (Misc queries) 2 October 9th 05 03:53 AM
Why does my advance filter only show one record? Kyri Excel Discussion (Misc queries) 1 March 25th 05 03:13 AM


All times are GMT +1. The time now is 11:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"