View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default Extracting row with lagest amount

Hi,

As a first step, please type a heading name for each of the 12 columns. Now
type the heading of column 1 and column 2 in cell N1:O1

Now go to Data Filter Advanced Filter and select Copy to another
location. In he list box, give the range reference of the first column.
Leave the criteria box blank and in the Copy to box, select N1:O1. Please
check the box for unique records only and click on OK.

This will give you all the unique Vehicle ref numbers - suppose this range
is N1:O50.

Now in P2, use =max(if(($A$1:$A$4000=N2),$C$1:$C$4000)). Please note that
this is an array formula, so please use Ctrl+Shift+Enter.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve Walford" wrote in message
...
Hope someone can help

Using Excel 2002

I have a large spread sheet, which details the amount of fuel issued
to individual vehicles over a set period (monthly)

The sheet has twelve columns and aprox 4,000 rows, I have only shown
three columns below

Fleet is a unique vehicle reference, in theory that vehicle could fuel
up every day

I need to extract a the complete row for each fleet number that has
the highest amount of fuel against it

ie rows marked *

Fleet Driver Fuel

01486 CLUBLEY J 44.02
01486 CLUBLEY J 48.11
01486 CLUBLEY J 50.02 *
01487 PINDER G 32.02
01487 PINDER G 35.00
01487 PINDER G 40.00
01487 PINDER G 42.79
01487 PINDER G 43.01 *
01488 BREDDY M 23.49
01488 BREDDY M 33.56
01488 BREDDY M 49.76 *
01492 JBUTTERIL 39.13 *
01493 GREEN A 0.00
01493 GREEN A 32.29
01493 GREEN A 36.20
01493 GREEN A 37.00
01493 GREEN A 42.39 *
01495 FIRTH C 29.29
01495 SUTTON M 30.37
01495 FIRTH C 37.33
01495 FIRTH C 38.05
01495 FIRTH C 41.63 *
01496 Pardoe W 28.75
01496 LILLEY M 32.92
01496 SUTTON M 33.00
01496 STONE G 35.99 *

Hope this makes sense

Many thanks in anticipation


Steve