Applying points to ranked cells

llcamino

New Member
Joined
Mar 4, 2005
Messages
7
I'm trying to rank a group of 5 cells and assign a value to them. For example Cells B26:B30 I would like to assign the values as follows in Cells C26:C30.

Numbers in Column B must stay in their current cell.

Lowest Number from Column B receives a 10 in Column C
Next lowest in B gets 7 in C
5 in C
3 in C
1 in C

Is this possible?

Thanks in advance.
 
Not to step on Brian's toes, but the AVERAGE() function needs to be entered as an array formula (hence the curly braces). To do this press at the same time, CTRL+SHIFT+ENTER, once the formula is entered. If you copy the formula from Brian's sheet, you need to delete the curlys, and follow the array formula-entering process that I just mentioned.

Bubbis
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Unfortunately that forumla is not working. I think it may not work because the scores in column A are not necessarily going to sorted in order of highest to lowest.

Any other suggestions?
 
Upvote 0
What follows is something "borrowed" from Aladin. Taking the top nth score.
Book2
ABCDEFGHI
2NameScoreRankR-Rank5NameRank
3Smitty8155Anne11010
4Dan7522Dan277
5Aladin8366Zack345
6Zack7633Scott343
7Anne7211Smitty511
8Scott7634 
Sheet1


Formula in C3 and copied down

=IF(N(B3),RANK(B3,$B$3:$B$8,1),"")

Formula in D3 and copied down

=IF(N(B3),RANK(B3,$B$3:$B$8,1)+COUNTIF($B$3:B3,B3)-1,"")

E5 houses the number to rank

Formula in F5 and copied down

=IF(ROW()-ROW(F$3)+1<=$E$2,INDEX(A:A,MATCH(ROW()-ROW(F$3)+1,$D:$D,0)),"")

Formula in G3 and copied down

=IF(ROW()-ROW(G$3)+1<=$E$2,INDEX(C:C,MATCH(ROW()-ROW(G$3)+1,$D:$D,0)),"")

Formula in H3 array entered CTRL+SHIFT+ENTER and copied down

=AVERAGE(IF($G$3:$G$7=G3,$I$3:$I$7,""))

I3:I7 housing points
 
Upvote 0

Forum statistics

Threads
1,216,174
Messages
6,129,296
Members
449,498
Latest member
Lee_ray

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top