Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 271
Default Translate Forumula For Filtering

Hello All,

Teethless Mama helped me with formula yesterday.

Can someone translate/breakdown the formula please? See below

Thank you all!
In B1: =COUNTIF($A$1:A1,A1)1
Copy down as far as needed.

AutoFilter the TRUE value, then go to Edit Delete


"Susan" wrote:

Hello All,

Have 10 columns of data for each row(record). Dates, serial numbers, dollar
amts.
Sometimes a serial number is keyed twice. What is the best way to find if
there are duplicate serial numbers after keying about 500 records? Is there a
way to prevent?
Using Excel 2002.
Many thanks to all!

Susan


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Translate Forumula For Filtering

Presumably you want to see a list of duplicates from column A and then
get rid of them. The COUNTIF part of the formula will count how many
items are in the range, and when the formula gets copied down it will
become:

=COUNTIF($A$1:A2,A2)1
then
=COUNTIF($A$1:A3,A3)1
etc

So, on row 2 it will look to see if the value in A2 is contained
within the range A1:A2, and on row 3 it will compare A3 with the range
A1:A3 etc. Clearly, A2 will appear at least once in the range A1:A2
and A3 will appear at least once in the range A1:A3, but if these
values appear more than once in the range, then the COUNTIF function
will return a number greater than 1.

The formula as written is a kind of shorthand version of an IF
statement, i.e.:

=IF(COUNTIF($A$1:A1,A1)1,TRUE,FALSE)

It will return a value of TRUE if the COUNTIF function returns a
number greater than 1, and a FALSE value if the function returns 1. It
will return 1 (i.e. a FALSE value from the formula) only for the first
occurrence of a value in column A - all repeat occurrences will be
flagged as TRUE. So, if you then filter the TRUE values and delete
them, you will be left with the unique values.

Hope this helps.

Pete

On Mar 11, 8:35*pm, Susan wrote:
Hello All,

Teethless Mama helped me with formula yesterday.

Can someone translate/breakdown the formula please? *See below

Thank you all!
In B1: =COUNTIF($A$1:A1,A1)1
Copy down as far as needed.

AutoFilter the TRUE value, then go to Edit Delete



"Susan" wrote:
Hello All,


Have 10 columns of data for each row(record). Dates, serial numbers, dollar
amts.
Sometimes a serial number is keyed twice. What is the best way to find if
there are duplicate serial numbers after keying about 500 records? Is there a
way to prevent?
Using Excel 2002.
Many thanks to all!


Susan- Hide quoted text -


- Show quoted text -


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 271
Default Translate Forumula For Filtering

Thank you Pete!

"Pete_UK" wrote:

Presumably you want to see a list of duplicates from column A and then
get rid of them. The COUNTIF part of the formula will count how many
items are in the range, and when the formula gets copied down it will
become:

=COUNTIF($A$1:A2,A2)1
then
=COUNTIF($A$1:A3,A3)1
etc

So, on row 2 it will look to see if the value in A2 is contained
within the range A1:A2, and on row 3 it will compare A3 with the range
A1:A3 etc. Clearly, A2 will appear at least once in the range A1:A2
and A3 will appear at least once in the range A1:A3, but if these
values appear more than once in the range, then the COUNTIF function
will return a number greater than 1.

The formula as written is a kind of shorthand version of an IF
statement, i.e.:

=IF(COUNTIF($A$1:A1,A1)1,TRUE,FALSE)

It will return a value of TRUE if the COUNTIF function returns a
number greater than 1, and a FALSE value if the function returns 1. It
will return 1 (i.e. a FALSE value from the formula) only for the first
occurrence of a value in column A - all repeat occurrences will be
flagged as TRUE. So, if you then filter the TRUE values and delete
them, you will be left with the unique values.

Hope this helps.

Pete

On Mar 11, 8:35 pm, Susan wrote:
Hello All,

Teethless Mama helped me with formula yesterday.

Can someone translate/breakdown the formula please? See below

Thank you all!
In B1: =COUNTIF($A$1:A1,A1)1
Copy down as far as needed.

AutoFilter the TRUE value, then go to Edit Delete



"Susan" wrote:
Hello All,


Have 10 columns of data for each row(record). Dates, serial numbers, dollar
amts.
Sometimes a serial number is keyed twice. What is the best way to find if
there are duplicate serial numbers after keying about 500 records? Is there a
way to prevent?
Using Excel 2002.
Many thanks to all!


Susan- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Translate Forumula For Filtering

You're welcome - hope that explained it for you.

Pete

On Mar 11, 10:06*pm, Susan wrote:
Thank you Pete!



"Pete_UK" wrote:
Presumably you want to see a list of duplicates from column A and then
get rid of them. The COUNTIF part of the formula will count how many
items are in the range, and when the formula gets copied down it will
become:


=COUNTIF($A$1:A2,A2)1
then
=COUNTIF($A$1:A3,A3)1
etc


So, on row 2 it will look to see if the value in A2 is contained
within the range A1:A2, and on row 3 it will compare A3 with the range
A1:A3 etc. Clearly, A2 will appear at least once in the range A1:A2
and A3 will appear at least once in the range A1:A3, but if these
values appear more than once in the range, then the COUNTIF function
will return a number greater than 1.


The formula as written is a kind of shorthand version of an IF
statement, i.e.:


=IF(COUNTIF($A$1:A1,A1)1,TRUE,FALSE)


It will return a value of TRUE if the COUNTIF function returns a
number greater than 1, and a FALSE value if the function returns 1. It
will return 1 (i.e. a FALSE value from the formula) only for the first
occurrence of a value in column A - all repeat occurrences will be
flagged as TRUE. So, if you then filter the TRUE values and delete
them, you will be left with the unique values.


Hope this helps.


Pete


On Mar 11, 8:35 pm, Susan wrote:
Hello All,


Teethless Mama helped me with formula yesterday.


Can someone translate/breakdown the formula please? *See below


Thank you all!
In B1: =COUNTIF($A$1:A1,A1)1
Copy down as far as needed.


AutoFilter the TRUE value, then go to Edit Delete


"Susan" wrote:
Hello All,


Have 10 columns of data for each row(record). Dates, serial numbers, dollar
amts.
Sometimes a serial number is keyed twice. What is the best way to find if
there are duplicate serial numbers after keying about 500 records? Is there a
way to prevent?
Using Excel 2002.
Many thanks to all!


Susan- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
Formula to another forumula? 57Caddy Excel Discussion (Misc queries) 10 December 7th 07 04:51 PM
Need help with a look up forumula I haven't seen before Steven Leuck Excel Worksheet Functions 3 November 19th 07 07:00 PM
I Need a forumula or VBA code [email protected] Excel Discussion (Misc queries) 1 November 7th 07 08:56 PM
Need help making a forumula!!!! Dan Lieberman Excel Discussion (Misc queries) 15 September 3rd 05 10:19 PM
Help with FORUMULA LoriM Excel Discussion (Misc queries) 0 January 7th 05 07:31 PM


All times are GMT +1. The time now is 05:42 AM.

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"