Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Finding muliple duplicate records in spreadsheet

Advanced filter isn't the answer (I think)
Duplicate Row issue
5 Columns -- ECode, JCode, ECode, PPHrs, PPDate.
I will sometimes have several entries (updates) to the ECode, PPDate, and
PPHrs for some records. I need to compare the five columns for duplicates
and post the records with the greatest hours for the ECode, ECode, and PPDate
ECode JCode ECode PPHrs PPDate
54511 003690 027 1 01/09/09
54511 003690 027 3.5 01/09/09
54511 003690 027 11 01/09/09
54511 003690 027 16 01/23/09
54511 003690 027 8 02/20/09
54511 003690 027 8 02/20/09
54511 003690 027 12 02/20/09
54511 003690 027 16 03/06/09
54511 003690 027 8 03/20/09
54511 003690 027 16 03/20/09
54511 003690 027 40 03/20/09
54511 003690 027 5 04/03/09
54511 003690 027 5 05/01/09
54511 003690 032 8 03/20/09
54511 003690 837 24 02/06/09
I need to keep the highlighted rows and delete the other rows €“ or copy them
to another worksheet. The spreadsheet has about 16000 rows and 12 columns,
but these are the columns I need to work with..
Thanks in advance.. (PC, xcel 03)
ShagNasty€¦

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Finding muliple duplicate records in spreadsheet

When you tried advanced filter; what is going wrong..

DataFilterAdvanced FilterSelect Copy to another location..Select the list
range, Mention 'copy to' as (say cell G1). Check "Unique Records only'..OK

If this post helps click Yes
---------------
Jacob Skaria


"ShagNasty" wrote:

Advanced filter isn't the answer (I think)
Duplicate Row issue
5 Columns -- ECode, JCode, ECode, PPHrs, PPDate.
I will sometimes have several entries (updates) to the ECode, PPDate, and
PPHrs for some records. I need to compare the five columns for duplicates
and post the records with the greatest hours for the ECode, ECode, and PPDate
ECode JCode ECode PPHrs PPDate
54511 003690 027 1 01/09/09
54511 003690 027 3.5 01/09/09
54511 003690 027 11 01/09/09
54511 003690 027 16 01/23/09
54511 003690 027 8 02/20/09
54511 003690 027 8 02/20/09
54511 003690 027 12 02/20/09
54511 003690 027 16 03/06/09
54511 003690 027 8 03/20/09
54511 003690 027 16 03/20/09
54511 003690 027 40 03/20/09
54511 003690 027 5 04/03/09
54511 003690 027 5 05/01/09
54511 003690 032 8 03/20/09
54511 003690 837 24 02/06/09
I need to keep the highlighted rows and delete the other rows €“ or copy them
to another worksheet. The spreadsheet has about 16000 rows and 12 columns,
but these are the columns I need to work with..
Thanks in advance.. (PC, xcel 03)
ShagNasty€¦

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Finding muliple duplicate records in spreadsheet

Oops.. Ignore the previous post..I didnt notice the 'greatest hours'

Try the below

1. First thing is to change the column header so that there are no
duplicates. Now there are two Ecodes.
2. Assuming your data is from Col A to E, cut and paste Col D (hours) to the
right. So that ECode, JCode, "X"Code, PPDate are together..
3. Select the first four cellrange/columns. DataFilterAdvanced
FilterSelect 'Copy to another location'. Mention 'copy to' as (say cell G1).
Check "Unique Records only'..OK
4. Now you have a unique set of records in G:J columns...

5. Now use the below formula in K2 and copy that down.

=MAX(IF((A2:A100=G2)*(B2:B100=H2)*(C2:C100=I2)*(D2 :D100=J2),E2:E100))

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}"


If this post helps click Yes
---------------
Jacob Skaria


"ShagNasty" wrote:

Advanced filter isn't the answer (I think)
Duplicate Row issue
5 Columns -- ECode, JCode, ECode, PPHrs, PPDate.
I will sometimes have several entries (updates) to the ECode, PPDate, and
PPHrs for some records. I need to compare the five columns for duplicates
and post the records with the greatest hours for the ECode, ECode, and PPDate
ECode JCode ECode PPHrs PPDate
54511 003690 027 1 01/09/09
54511 003690 027 3.5 01/09/09
54511 003690 027 11 01/09/09
54511 003690 027 16 01/23/09
54511 003690 027 8 02/20/09
54511 003690 027 8 02/20/09
54511 003690 027 12 02/20/09
54511 003690 027 16 03/06/09
54511 003690 027 8 03/20/09
54511 003690 027 16 03/20/09
54511 003690 027 40 03/20/09
54511 003690 027 5 04/03/09
54511 003690 027 5 05/01/09
54511 003690 032 8 03/20/09
54511 003690 837 24 02/06/09
I need to keep the highlighted rows and delete the other rows €“ or copy them
to another worksheet. The spreadsheet has about 16000 rows and 12 columns,
but these are the columns I need to work with..
Thanks in advance.. (PC, xcel 03)
ShagNasty€¦

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Finding muliple duplicate records in spreadsheet

Change to absolute reference

=MAX(IF(($A$2:$A$16000=G2)*($B$2:$B$16000=H2)*($C$ 2:$C$16000=I2)*($D$2:$D$16000=J2),$E$2:$E$16000))

--
If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Oops.. Ignore the previous post..I didnt notice the 'greatest hours'

Try the below

1. First thing is to change the column header so that there are no
duplicates. Now there are two Ecodes.
2. Assuming your data is from Col A to E, cut and paste Col D (hours) to the
right. So that ECode, JCode, "X"Code, PPDate are together..
3. Select the first four cellrange/columns. DataFilterAdvanced
FilterSelect 'Copy to another location'. Mention 'copy to' as (say cell G1).
Check "Unique Records only'..OK
4. Now you have a unique set of records in G:J columns...

5. Now use the below formula in K2 and copy that down.

=MAX(IF((A2:A100=G2)*(B2:B100=H2)*(C2:C100=I2)*(D2 :D100=J2),E2:E100))

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}"


If this post helps click Yes
---------------
Jacob Skaria


"ShagNasty" wrote:

Advanced filter isn't the answer (I think)
Duplicate Row issue
5 Columns -- ECode, JCode, ECode, PPHrs, PPDate.
I will sometimes have several entries (updates) to the ECode, PPDate, and
PPHrs for some records. I need to compare the five columns for duplicates
and post the records with the greatest hours for the ECode, ECode, and PPDate
ECode JCode ECode PPHrs PPDate
54511 003690 027 1 01/09/09
54511 003690 027 3.5 01/09/09
54511 003690 027 11 01/09/09
54511 003690 027 16 01/23/09
54511 003690 027 8 02/20/09
54511 003690 027 8 02/20/09
54511 003690 027 12 02/20/09
54511 003690 027 16 03/06/09
54511 003690 027 8 03/20/09
54511 003690 027 16 03/20/09
54511 003690 027 40 03/20/09
54511 003690 027 5 04/03/09
54511 003690 027 5 05/01/09
54511 003690 032 8 03/20/09
54511 003690 837 24 02/06/09
I need to keep the highlighted rows and delete the other rows €“ or copy them
to another worksheet. The spreadsheet has about 16000 rows and 12 columns,
but these are the columns I need to work with..
Thanks in advance.. (PC, xcel 03)
ShagNasty€¦

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Finding muliple duplicate records in spreadsheet

Hello,

Maybe my UDF Pstat can help you he
http://www.sulprobil.com/html/pstat.html

Regards,
Bernd
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
Finding duplicate records that are not exact matches but very clos Carol Excel Discussion (Misc queries) 1 January 9th 09 04:47 PM
Finding duplicate records Susan Excel Worksheet Functions 4 March 10th 08 10:07 PM
Finding duplicate numbers in a spreadsheet wintergems Excel Worksheet Functions 2 January 18th 08 03:40 PM
Finding duplicate records in multiple worksheets HR Guy Excel Discussion (Misc queries) 2 September 22nd 05 03:45 PM
Finding duplicate records in Excel KG Excel Discussion (Misc queries) 2 December 22nd 04 07:44 PM


All times are GMT +1. The time now is 09:15 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"