#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default rank

my post from function's division:

Hi,
I have sum data of five columns:

col1 col2 col3 col4 col5 sum_of_5_columns item
5 6 6 20 30 67 1
6 5 6 25 20 62 3*
3 5 4 28 22 62 2
etc..

*less sum of last three columns

I used function LARGE but occured the same result in
sum_of_5_columns. i don't want equal position..

I'd like create (in column item) function with show
position from max to min sum_of_5_columns.
If sums are equal then count sum of last three columns
(3,4,5)
If sums are still equal then count sum of last two columns
(4,5)
If sums are still equal then count value of five column (5)

Remark: My data can't be sort by excel.

Any help in function or VBA function will be appreciated.


I use excel 2k.
Best Regards
Mark

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default rank

Mark,

For your example table of numbers in A2:E4 (with headers in A1:E1):

F2: =SUM(A2:E2)
G2: =SUM(C2:E2)
H2: =SUM(D2:E2)
I2:
=RANK(F2,$F$2:$F$4)+RANK(G2,$G$2:$G$4)/10+RANK(H2,$H$2:$H$4)/100+RANK(E2,$E$
2:$E$4)/1000
J2: =RANK(I2,$I$2:$I$4,TRUE)

Copy these formulas down to match your data.

Note that if you have more than 10 values (but less than 100), you will need
to use 100, 10000, and 1000000 as your divisors in the formula in cell I2:
For up to 1000 values, use 1000, 1000000, and 1000000000 as the divisors,
and so on....

HTH,
Bernie
MS Excel MVP

'"Mark" wrote in message
...
my post from function's division:

Hi,
I have sum data of five columns:

col1 col2 col3 col4 col5 sum_of_5_columns item
5 6 6 20 30 67 1
6 5 6 25 20 62 3*
3 5 4 28 22 62 2
etc..

*less sum of last three columns

I used function LARGE but occured the same result in
sum_of_5_columns. i don't want equal position..

I'd like create (in column item) function with show
position from max to min sum_of_5_columns.
If sums are equal then count sum of last three columns
(3,4,5)
If sums are still equal then count sum of last two columns
(4,5)
If sums are still equal then count value of five column (5)

Remark: My data can't be sort by excel.

Any help in function or VBA function will be appreciated.


I use excel 2k.
Best Regards
Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default rank


Hi,
a modification of Bernie Deitrick code:

G2: =1000*SUM(A2:E2)+100*SUM(C2:E2)+10*SUM(D2:E2)+E2
H2: =RANK(G2,$G$2:$G$4,0)

Adjust $G$2:$G$4 in RANK(G2,$G$2:$G$4) to match your data range, the
copy down.

Jare

--
Jare
-----------------------------------------------------------------------
Jarek's Profile: http://www.excelforum.com/member.php...info&userid=96
View this thread: http://www.excelforum.com/showthread.php?threadid=27691

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default rank

Hi Jarek!
Your assistance is very profesional,
thank you for helping!

Best Regards
Mark


-----Original Message-----

Hi,
a modification of Bernie Deitrick code:

G2: =1000*SUM(A2:E2)+100*SUM(C2:E2)+10*SUM(D2:E2)+E2
H2: =RANK(G2,$G$2:$G$4,0)

Adjust $G$2:$G$4 in RANK(G2,$G$2:$G$4) to match your data

range, then
copy down.

Jarek


--
Jarek
----------------------------------------------------------

--------------
Jarek's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=965
View this thread:

http://www.excelforum.com/showthread...hreadid=276917

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default rank

Thanx Bernie for you assistance!
Best Regards
Mark

-----Original Message-----
Mark,

For your example table of numbers in A2:E4 (with headers

in A1:E1):

F2: =SUM(A2:E2)
G2: =SUM(C2:E2)
H2: =SUM(D2:E2)
I2:
=RANK(F2,$F$2:$F$4)+RANK(G2,$G$2:$G$4)/10+RANK

(H2,$H$2:$H$4)/100+RANK(E2,$E$
2:$E$4)/1000
J2: =RANK(I2,$I$2:$I$4,TRUE)

Copy these formulas down to match your data.

Note that if you have more than 10 values (but less than

100), you will need
to use 100, 10000, and 1000000 as your divisors in the

formula in cell I2:
For up to 1000 values, use 1000, 1000000, and 1000000000

as the divisors,
and so on....

HTH,
Bernie
MS Excel MVP

'"Mark" wrote in message
...
my post from function's division:

Hi,
I have sum data of five columns:

col1 col2 col3 col4 col5 sum_of_5_columns item
5 6 6 20 30 67 1
6 5 6 25 20 62 3*
3 5 4 28 22 62 2
etc..

*less sum of last three columns

I used function LARGE but occured the same result in
sum_of_5_columns. i don't want equal position..

I'd like create (in column item) function with show
position from max to min sum_of_5_columns.
If sums are equal then count sum of last three columns
(3,4,5)
If sums are still equal then count sum of last two

columns
(4,5)
If sums are still equal then count value of five column

(5)

Remark: My data can't be sort by excel.

Any help in function or VBA function will be

appreciated.


I use excel 2k.
Best Regards
Mark



.

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
rank the numbers / range of data using 'RANK' and 'ABS' KP Excel Worksheet Functions 1 March 8th 08 05:50 PM
RANK, duplicate ranking but no gaps in rank arron laing Excel Worksheet Functions 4 June 14th 06 07:57 AM
Rank where lowest value is highest rank mile3024 Excel Worksheet Functions 2 December 9th 05 10:57 PM
Does Correl/Rank combo work eg CORREL(cols E & H) where E&H=RANK(. Emmanuel Excel Worksheet Functions 3 November 12th 05 03:33 PM
Rank items, select one start date, have remaining dates follow based on rank rob normerica Excel Discussion (Misc queries) 1 August 15th 05 09:36 PM


All times are GMT +1. The time now is 12:55 AM.

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"