Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zeepowlee
 
Posts: n/a
Default Select Distinct Maximums

Hi all

I need to extract from a workbook the rows who are the maximums, by a field
B, between those having the same field A (numeric, length 12).

I.E:

Field A | Field B
800000111111 | 27000
800000111111 | 4000
800000222222 | 5000
800000222222 | 8000
800000222222 | 15000
800000222222 | 2000
800000222222 | 15000
800000222222 | 9000
800000222222 | 9000
800000333333 | 4500
800000333333 | 2700
800000333333 | 9800

I want to get a new sheet with
Field A | Field B
800000111111 | 27000
800000222222 | 15000
800000333333 | 9800


Thanks for help




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Select Distinct Maximums

I know you posted your request in the Worksheet Functions area, but I have to
mention that a Pivot Table would easily handle your request.

Select your data
DataPivot Table
Use Excel
Select your data
Click the [Layout] button

ROW: Drag the Field_A field here
DATA: Drag the Field_B field here
If it doesn't list as MAX of Field_B...dbl-click it and set it to Max
Click [OK]
Select where you want the Pivot Table...and you're done!

That will list each Field_A and the respective Max of Field_B.
To refresh the Pivot Table, just right click it and select Refresh Data

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Zeepowlee" wrote:

Hi all

I need to extract from a workbook the rows who are the maximums, by a field
B, between those having the same field A (numeric, length 12).

I.E:

Field A | Field B
800000111111 | 27000
800000111111 | 4000
800000222222 | 5000
800000222222 | 8000
800000222222 | 15000
800000222222 | 2000
800000222222 | 15000
800000222222 | 9000
800000222222 | 9000
800000333333 | 4500
800000333333 | 2700
800000333333 | 9800

I want to get a new sheet with
Field A | Field B
800000111111 | 27000
800000222222 | 15000
800000333333 | 9800


Thanks for help





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zeepowlee
 
Posts: n/a
Default Select Distinct Maximums


"Zeepowlee" wrote in message
...
Hi all

I need to extract from a workbook the rows who are the maximums, by a
field B, between those having the same field A (numeric, length 12).

I.E:

Field A | Field B
800000111111 | 27000
800000111111 | 4000
800000222222 | 5000
800000222222 | 8000
800000222222 | 15000
800000222222 | 2000
800000222222 | 15000
800000222222 | 9000
800000222222 | 9000
800000333333 | 4500
800000333333 | 2700
800000333333 | 9800

I want to get a new sheet with
Field A | Field B
800000111111 | 27000
800000222222 | 15000
800000333333 | 9800



Nobody can help?


thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Select Distinct Maximums

Can you not see Ron's reply? (I ask because I have found recently that
some of my postings are not visible on some newsgroup sites)

Pete

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
SELECT large amount of data in a worksheet OTS Excel Discussion (Misc queries) 3 August 13th 05 04:43 PM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
Select Rows dependant on certain field data Maddy New Users to Excel 1 July 27th 05 03:50 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Select all data, multiple rows George Wilson Excel Discussion (Misc queries) 6 December 5th 04 08:16 PM


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