Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Return only 1 record w/ multiple records?

Hello,

Here is what I am trying to achieve. For order with multiple oper, it only
returns one order with the lowest oper number. What can I do to achieve this.
Thanks

Table with the following data:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 5000 8951 1/4/08
ABC 205 6000 8951 1/8/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

result of query data I like to achieve:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
ABC 205 5000 8951 1/4/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

Records that are excluded:
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 6000 8951 1/8/08




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Return only 1 record w/ multiple records?

With the sample of data you show........

Select B1:B9 then DataFilterAdvanced Filter.

Unique Records only and either filter in place or copy to another location.

Returns.......

Part Order Oper WC Date
AAA 123 1000 8951 1/2/2008
ABC 205 5000 8951 1/4/2008
ABZ 314 1000 8951 1/3/2008
AAH 380 2000 8951 1/3/2008


Gord Dibben MS Excel MVP

On Thu, 28 Feb 2008 10:36:02 -0800, Cam wrote:

Hello,

Here is what I am trying to achieve. For order with multiple oper, it only
returns one order with the lowest oper number. What can I do to achieve this.
Thanks

Table with the following data:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 5000 8951 1/4/08
ABC 205 6000 8951 1/8/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

result of query data I like to achieve:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
ABC 205 5000 8951 1/4/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

Records that are excluded:
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 6000 8951 1/8/08




  #3   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Return only 1 record w/ multiple records?

Gord,

Thanks for the suggestion. But I need an extra step beyond filtering.
The method you shows only filter them, but the rest of the unused data
(rows) are hidden. But what I need to achieve is the completely delete those
hidden rows after filtering.

"Gord Dibben" wrote:

With the sample of data you show........

Select B1:B9 then DataFilterAdvanced Filter.

Unique Records only and either filter in place or copy to another location.

Returns.......

Part Order Oper WC Date
AAA 123 1000 8951 1/2/2008
ABC 205 5000 8951 1/4/2008
ABZ 314 1000 8951 1/3/2008
AAH 380 2000 8951 1/3/2008


Gord Dibben MS Excel MVP

On Thu, 28 Feb 2008 10:36:02 -0800, Cam wrote:

Hello,

Here is what I am trying to achieve. For order with multiple oper, it only
returns one order with the lowest oper number. What can I do to achieve this.
Thanks

Table with the following data:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 5000 8951 1/4/08
ABC 205 6000 8951 1/8/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

result of query data I like to achieve:
Part Order Oper WC Date
AAA 123 1000 8951 1/2/08
ABC 205 5000 8951 1/4/08
ABZ 314 1000 8951 1/3/08
AAH 380 2000 8951 1/3/08

Records that are excluded:
AAA 123 2000 8951 1/3/08
AAA 123 3000 8951 1/7/08
AAA 123 4000 8951 1/3/08
ABC 205 6000 8951 1/8/08





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
Need to color 1 record of each set of Duplicate Records nirod Excel Worksheet Functions 3 May 21st 07 02:36 PM
return multiple records matching multiple criteria Karthik Excel Worksheet Functions 2 March 22nd 06 04:42 PM
to make a single row record become multiple row records AskExcel Excel Worksheet Functions 0 February 24th 06 09:46 AM
how do I set a record keeping template for church records? Toopay Excel Discussion (Misc queries) 0 January 14th 06 06:59 PM
How to merge records into one record by customer's name? Newuser New Users to Excel 3 May 18th 05 04:49 AM


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