Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Ranking based on conditions

In column A I have unique IDs (10001 up to 19999).
In column B I have countries,
In column C I have fruit names,
In column D I have values (between 1 and 10000)

If I have a unique ID - lets say ID 14592
It's corresponding country is Australia, and corresponding fruit is Pear,
and corresponding value is 1000

I want to know its rank in its class.
- its rank for all Pears
- its rank for all Australians
- its rank for all Australian Pears.

Can someone help with the formula for this? Say the ID (14592) is entered
in F1

Thanks in advance!

Daniel


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Ranking based on conditions

Assuming that the fruit name is also in F2

=IF(C1<$F$2,"",MATCH(D1,LARGE(IF($C$1:$C$25="Pear s",$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($C$1:$C$2 5,$F$2)))),0))

=IF(A1<$F$1,"",MATCH(D1,LARGE(IF(($A$1:$A$25=$F$1 ),$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($A$1:$A$25 ,$F$1)))),0))

=IF(OR(C1<$F$2,A1<$F$1),"",MATCH(D1,LARGE(IF(($C $1:$C$25=$F$2)*($A$1:$A$25=$F$1),$D$1:$D$25),ROW(I NDIRECT("1:"&SUM(($C$1:$C$25=$F$2)*($A$1:$A$25=$F$ 1))))),0))

all array formulae

(and not a SUMPRODUCT in sight)


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Daniel Bonallack" wrote in
message ...
In column A I have unique IDs (10001 up to 19999).
In column B I have countries,
In column C I have fruit names,
In column D I have values (between 1 and 10000)

If I have a unique ID - lets say ID 14592
It's corresponding country is Australia, and corresponding fruit is Pear,
and corresponding value is 1000

I want to know its rank in its class.
- its rank for all Pears
- its rank for all Australians
- its rank for all Australian Pears.

Can someone help with the formula for this? Say the ID (14592) is entered
in F1

Thanks in advance!

Daniel




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Ranking based on conditions

Hi Bob

This returned me with a blank cell - would it be possible to send you my
country/fruit example?

regards
Daniel


"Bob Phillips" wrote:

Assuming that the fruit name is also in F2

=IF(C1<$F$2,"",MATCH(D1,LARGE(IF($C$1:$C$25="Pear s",$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($C$1:$C$2 5,$F$2)))),0))

=IF(A1<$F$1,"",MATCH(D1,LARGE(IF(($A$1:$A$25=$F$1 ),$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($A$1:$A$25 ,$F$1)))),0))

=IF(OR(C1<$F$2,A1<$F$1),"",MATCH(D1,LARGE(IF(($C $1:$C$25=$F$2)*($A$1:$A$25=$F$1),$D$1:$D$25),ROW(I NDIRECT("1:"&SUM(($C$1:$C$25=$F$2)*($A$1:$A$25=$F$ 1))))),0))

all array formulae

(and not a SUMPRODUCT in sight)


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Daniel Bonallack" wrote in
message ...
In column A I have unique IDs (10001 up to 19999).
In column B I have countries,
In column C I have fruit names,
In column D I have values (between 1 and 10000)

If I have a unique ID - lets say ID 14592
It's corresponding country is Australia, and corresponding fruit is Pear,
and corresponding value is 1000

I want to know its rank in its class.
- its rank for all Pears
- its rank for all Australians
- its rank for all Australian Pears.

Can someone help with the formula for this? Say the ID (14592) is entered
in F1

Thanks in advance!

Daniel





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Ranking based on conditions

Of course, juts pop it in the post.

Bob


"Daniel Bonallack" wrote in
message ...
Hi Bob

This returned me with a blank cell - would it be possible to send you my
country/fruit example?

regards
Daniel


"Bob Phillips" wrote:

Assuming that the fruit name is also in F2

=IF(C1<$F$2,"",MATCH(D1,LARGE(IF($C$1:$C$25="Pear s",$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($C$1:$C$2 5,$F$2)))),0))

=IF(A1<$F$1,"",MATCH(D1,LARGE(IF(($A$1:$A$25=$F$1 ),$D$1:$D$25),ROW(INDIRECT("1:"&COUNTIF($A$1:$A$25 ,$F$1)))),0))

=IF(OR(C1<$F$2,A1<$F$1),"",MATCH(D1,LARGE(IF(($C $1:$C$25=$F$2)*($A$1:$A$25=$F$1),$D$1:$D$25),ROW(I NDIRECT("1:"&SUM(($C$1:$C$25=$F$2)*($A$1:$A$25=$F$ 1))))),0))

all array formulae

(and not a SUMPRODUCT in sight)


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Daniel Bonallack" wrote in
message ...
In column A I have unique IDs (10001 up to 19999).
In column B I have countries,
In column C I have fruit names,
In column D I have values (between 1 and 10000)

If I have a unique ID - lets say ID 14592
It's corresponding country is Australia, and corresponding fruit is
Pear,
and corresponding value is 1000

I want to know its rank in its class.
- its rank for all Pears
- its rank for all Australians
- its rank for all Australian Pears.

Can someone help with the formula for this? Say the ID (14592) is
entered
in F1

Thanks in advance!

Daniel







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Ranking based on conditions

Daniel,

Please use the gmail account mentioned in my postings, I am having horrific
spam problems in my main accounts at the moment.

Bob


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
Total or Count based on multiple conditions CC Excel Discussion (Misc queries) 4 May 17th 06 10:50 PM
Cell values based upon multiple conditions Ryan M via OfficeKB.com New Users to Excel 2 July 19th 05 02:10 AM
Add cells from a range based on 2 conditions from 2 other ranges Kelly Excel Worksheet Functions 3 July 7th 05 07:40 PM
How do I calculate sum based on 3 conditions? MNSNOWGAL Excel Worksheet Functions 4 January 19th 05 11:35 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"