Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Return Top values with changing criteria

You are welcome.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

wrote in message
...
On May 19, 7:59 pm, "Ashish Mathur" wrote:
Hi,

Try this.

Assume your data is in range C3:E14. In cell C18, enter Movie and in
cell
D18 enter Tuesday. In cell G18, enter =IF(C18="",G17,C18) and copy down
a
couple of rows. In cell C18, use this array formula (Ctrl+Shift+Enter)

=LARGE(($C$3:$C$14=LOOKUP(REPT("z",99),C$18:C18))* ($D$3:$D$14=LOOKUP(REPT("*z",99),D$18:D18))*($E$3: $E$14),COUNTIF(G$18:G18,G18))

Now you can copy this formula down as many rows. Also, keep adding more
criteria such as TV and Tuesday

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

wrote in message

...



I am trying to return the top N values from a list with corresponding
names. The criteria for ranking changes.
ColA:C contain my data (thousands of rows). ColD:E contain my
criteria (note below I want to return top 3 values). ColF sorts in
Top3 order.


ColA ColB ColC
ColD ColE ColF


Movie Friday $25
Movie Friday $26
Movie Friday $26
Movie Friday $25
Movie Friday $18
Movie Friday $18
TV Tues $12
Movie Tues $21
TV Tues $19
Movie Tues $19
TV Tues $21
Movie Tues $12


I would like to use a formla that can rank the data when the two
criteria in ColD & E are met. So when Movie and Friday show up in the
list of thousands, just return the top 3 values. Then when Movie and
Tues are met, return the top 3 values.


I know this can be done, but I am having trouble fixing my formulas
when the two criteria change.


Thanks in advance for your help.- Hide quoted text -


- Show quoted text -


Thanks for your help Ashish. That's what I needed.

Conor


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
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row Sam via OfficeKB.com Excel Worksheet Functions 5 February 9th 08 03:07 AM
Return all values found for criteria duketter Excel Discussion (Misc queries) 2 May 23rd 07 08:36 PM
Return across Row Numeric Values Matching EXACT Month & Year for Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 October 22nd 06 11:30 PM
Return Numeric Values Matching EXACT Date for Criteria Sam via OfficeKB.com Excel Worksheet Functions 4 October 20th 06 11:20 PM
Search multiple values to return single values JANA Excel Worksheet Functions 8 October 27th 05 04:26 PM


All times are GMT +1. The time now is 07:04 PM.

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"