Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Need help on filter or something similar

One approach ..

Assuming the source offload #s are in A2 down, with corresponding "reason"
in B2 down (A1:B1 are col headers)

First, sort both cols A and B by col A, descending.

Then place in C2:
=IF(B2="","",IF(COUNTIF($B$2:B2,B2)1,"",ROW()))
(Leave C1 blank)

Put in D2:
=IF(ROW(A1)COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROW( A1))))

Put in E2: =IF(D2="","",COUNTIF(B:B,D2))

Select C2:E2, copy down to last row of source data. Col D returns the unique
list of reasons sorted in descending order by the offload nos, while col E
yields the corresponding count of the reasons. D2:D11 gives you the top 10
reasons by the offload nos. If you want the top 10 reasons by their counts,
copy cols D and E & paste special as values elsewhere, then do a sort on both
cols by the counts col in descending order & pick off the first 10 reasons in
the reasons col.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"ekkeindoha" wrote:
What I would like to do are as follows. Lets say I got a list of reasons
entered for cargo offload and the pieces offloaded are also entered. Out of
this data I would like to get the top 10 reasons for offloads.

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
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


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