Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Ranking within subgroups

I defined dynamic nameranges (OFFSET function), and would like to refer to
these ranges. A formula in a row should refer to a namerange depenent on a
textvalue in the prev. row.

Example :
A: B: C:
vessel1 =RANK(C1 ; [vessel1] ; 1) 8
vessel1 .... 15
..... .... 20
vessel2 =RANK(C1 ; [vessel2] ; 1) 3
vessel2 .... 7
..... .... 10
value in cells and nameranges are named identically,
table is in sorted order, OFFSET function , eg [vessel1] refers to C1:C3
does someone know how to get it worked or maybe an alternative solution ?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Ranking within subgroups

Stefan

Try this: =RANK($B$2:$B$7,B2)-COUNTIF($A$2:A2,A2)+COUNTIF($A$2:$A$7,A2)

Peter

"Stefan" wrote:

I defined dynamic nameranges (OFFSET function), and would like to refer to
these ranges. A formula in a row should refer to a namerange depenent on a
textvalue in the prev. row.

Example :
A: B: C:
vessel1 =RANK(C1 ; [vessel1] ; 1) 8
vessel1 .... 15
.... .... 20
vessel2 =RANK(C1 ; [vessel2] ; 1) 3
vessel2 .... 7
.... .... 10
value in cells and nameranges are named identically,
table is in sorted order, OFFSET function , eg [vessel1] refers to C1:C3
does someone know how to get it worked or maybe an alternative solution ?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Ranking within subgroups

Hi
I forgot to say enter on top row and copy down.

Peter

"Stefan" wrote:

I defined dynamic nameranges (OFFSET function), and would like to refer to
these ranges. A formula in a row should refer to a namerange depenent on a
textvalue in the prev. row.

Example :
A: B: C:
vessel1 =RANK(C1 ; [vessel1] ; 1) 8
vessel1 .... 15
.... .... 20
vessel2 =RANK(C1 ; [vessel2] ; 1) 3
vessel2 .... 7
.... .... 10
value in cells and nameranges are named identically,
table is in sorted order, OFFSET function , eg [vessel1] refers to C1:C3
does someone know how to get it worked or maybe an alternative solution ?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Ranking within subgroups

Ugh
It only works if the data is sorted by Type then Score, or (score within Type)

Peter

"Billy Liddel" wrote:

Hi
I forgot to say enter on top row and copy down.

Peter

"Stefan" wrote:

I defined dynamic nameranges (OFFSET function), and would like to refer to
these ranges. A formula in a row should refer to a namerange depenent on a
textvalue in the prev. row.

Example :
A: B: C:
vessel1 =RANK(C1 ; [vessel1] ; 1) 8
vessel1 .... 15
.... .... 20
vessel2 =RANK(C1 ; [vessel2] ; 1) 3
vessel2 .... 7
.... .... 10
value in cells and nameranges are named identically,
table is in sorted order, OFFSET function , eg [vessel1] refers to C1:C3
does someone know how to get it worked or maybe an alternative solution ?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Ranking within subgroups

Try this formula entered in B1 then copied down:

=SUMPRODUCT(--(A$1:A$10=A1),--(C1C$1:C$10))+1

Biff

"Stefan" wrote in message
...
I defined dynamic nameranges (OFFSET function), and would like to refer to
these ranges. A formula in a row should refer to a namerange depenent on a
textvalue in the prev. row.

Example :
A: B: C:
vessel1 =RANK(C1 ; [vessel1] ; 1) 8
vessel1 .... 15
.... .... 20
vessel2 =RANK(C1 ; [vessel2] ; 1) 3
vessel2 .... 7
.... .... 10
value in cells and nameranges are named identically,
table is in sorted order, OFFSET function , eg [vessel1] refers to C1:C3
does someone know how to get it worked or maybe an alternative solution ?






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
Ranking Subgroups that are above 750 SteveC Excel Discussion (Misc queries) 1 March 8th 07 08:15 PM
Calculating Percentiles for Subgroups SteveC Excel Discussion (Misc queries) 2 March 5th 07 05:50 PM
Ranking Curtis Excel Worksheet Functions 5 May 14th 06 03:59 AM
ranking tagraeff Excel Worksheet Functions 4 October 26th 05 11:59 AM
How do i group worksheets inside a workbook into subgroups? Legatha Excel Worksheet Functions 3 March 19th 05 01:51 AM


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