Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default how to filter list based on multiple criteria

Date S/No Name Dept R/No
26/07/09 01 ABC M1 M001
26/07/09 02 DEF S1 S001
26/07/09 03 GHI A1 A001
27/07/09 04 DEF S1 S001
27/07/09 05 ABC M1 M001
27/07/09 06 GHI A1 A002

I have a long list of records as shown above, how can I copy the list to
another range with records for "Name", "Dept" and "R/No" not duplicated and
showing the latest S/No. In other words, Record 1 and Record 2 should not
appear as it is duplicated in Record 5 and Record 4 respectively.

The new list should only shows:

Date S/No Name Dept R/No
26/07/09 03 GHI A1 A001
27/07/09 04 DEF S1 S001
27/07/09 05 ABC M1 M001
27/07/09 06 GHI A1 A002

Thanks for any help i can get.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default how to filter list based on multiple criteria

Here's one play which delivers the new list that you seek

Assume the source table you posted is in A1:E7
In G2:
=IF(COUNTA(C2:E2)<3,"",IF(SUMPRODUCT((C2:C$7=C2)*( D2:D$7=D2)*(E2:E$7=E2))1,"",ROW()))
Leave G1 empty. This is the criteria col. It basically nails down your
definition of duplicates (from bottom-up).

In H2:
=IF(ROWS($1:1)COUNT($G:$G),"",INDEX(A:A,SMALL($G: $G,ROWS($1:1))))
Copy H2 to L2. Select G2:L2, copy down to L7. Format col H as dates.
Minimize/hide col G. Cols H to L will return the outputs that you seek.

Success? Click the YES below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"JSBPL" wrote:
Date S/No Name Dept R/No
26/07/09 01 ABC M1 M001
26/07/09 02 DEF S1 S001
26/07/09 03 GHI A1 A001
27/07/09 04 DEF S1 S001
27/07/09 05 ABC M1 M001
27/07/09 06 GHI A1 A002

I have a long list of records as shown above, how can I copy the list to
another range with records for "Name", "Dept" and "R/No" not duplicated and
showing the latest S/No. In other words, Record 1 and Record 2 should not
appear as it is duplicated in Record 5 and Record 4 respectively.

The new list should only shows:

Date S/No Name Dept R/No
26/07/09 03 GHI A1 A001
27/07/09 04 DEF S1 S001
27/07/09 05 ABC M1 M001
27/07/09 06 GHI A1 A002

Thanks for any help i can get.

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
Query criteria based on a changing criteria list bwilk77 Excel Discussion (Misc queries) 2 May 27th 09 04:03 PM
Copying data based on filter criteria no_rhythm Excel Worksheet Functions 1 January 10th 08 09:45 PM
Run Filter criteria based on data in range Mitch4 Excel Discussion (Misc queries) 0 October 17th 07 04:15 PM
Separating a List onto multiple worksheets in the same workbook based off 1 criteria DMRbaxter Excel Worksheet Functions 6 April 19th 07 01:36 PM
filter or format based on criteria in more than one column tabbicat Excel Worksheet Functions 4 March 13th 07 02:24 PM


All times are GMT +1. The time now is 08:34 AM.

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

About Us

"It's about Microsoft Excel"