Rank by sumifs (To Get unique rank count to each line)

Pinkal

New Member
Joined
May 2, 2014
Messages
3
Hello Experts,

CASE: I have Five projects but having different revenue generation for each, So I need to find out the best project by Cumulative Revenue and give them the rank (1 to 5).

Requirement: Want to get Ranking from 1 to 5 against each project based on their cumulative Revenue without help of Pivot and extra columns.


[TABLE="width: 251"]
<tbody>[TR]
[TD]Client :Project #[/TD]
[TD]Revenue[/TD]
[TD]Rank Me[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$345.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$1,769.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$363.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$314.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$284.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$190.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$2,350.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$164.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$90.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$38.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$38.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$20.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$14.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 3[/TD]
[TD="align: right"]$113.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Project 5[/TD]
[TD="align: right"]$1,398.00[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I have been searching for solution in various sites, but couldn't find any scenario which address the three criteria: sum of Revenue + repeat names + Ranking..

Please help.


Outcome should be like this :

However i have done this by creating Pivot and then vloomup but idea is that how can i do it without having an extra column or pivot.


[TABLE="width: 251"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Client :Project #[/TD]
[TD]Revenue[/TD]
[TD]Rank Me[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$345.00[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$1,769.00[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD="align: right"]$363.00[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$314.00[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$284.00[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$190.00[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$2,350.00[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD="align: right"]$164.00[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$90.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$38.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$38.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$20.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Project 4[/TD]
[TD="align: right"]$14.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Project 3[/TD]
[TD="align: right"]$113.00[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Project 5[/TD]
[TD="align: right"]$1,398.00[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Copy E2:F2 down.
Excel Workbook
ABCDEF
1Client :Project #RevenueProjectCum$Rank
2Project 1$345.00Project 1$2,477.002
3Project 1$1,769.00Project 2$3,302.001
4Project 1$363.00Project 3$113.005
5Project 2$314.00Project 4$200.004
6Project 2$284.00Project 5$1,398.003
7Project 2$190.00
8Project 2$2,350.00
9Project 2$164.00
10Project 4$90.00
11Project 4$38.00
12Project 4$38.00
13Project 4$20.00
14Project 4$14.00
15Project 3$113.00
16Project 5$1,398.00
Sheet1
 
Upvote 0
Copy E2:F2 down.
Sheet1

*ABCDEF
Client :Project #Revenue*ProjectCum$Rank
Project 1*Project 1
Project 1*Project 2
Project 1*Project 3
Project 2*Project 4
Project 2*Project 5
Project 2****
Project 2****
Project 2****
Project 4****
Project 4****
Project 4****
Project 4****
Project 4****
Project 3****
Project 5****

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:106px;"><col style="width:69px;"><col style="width:23px;"><col style="width:61px;"><col style="width:69px;"><col style="width:37px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="align: right"]$345.00 [/TD]

[TD="align: right"]$2,477.00 [/TD]
[TD="align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="align: right"]$1,769.00 [/TD]

[TD="align: right"]$3,302.00 [/TD]
[TD="align: right"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="align: right"]$363.00 [/TD]

[TD="align: right"]$113.00 [/TD]
[TD="align: right"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="align: right"]$314.00 [/TD]

[TD="align: right"]$200.00 [/TD]
[TD="align: right"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="align: right"]$284.00 [/TD]

[TD="align: right"]$1,398.00 [/TD]
[TD="align: right"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="align: right"]$190.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="align: right"]$2,350.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="align: right"]$164.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="align: right"]$90.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="align: right"]$38.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="align: right"]$38.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]13[/TD]

[TD="align: right"]$20.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]14[/TD]

[TD="align: right"]$14.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]15[/TD]

[TD="align: right"]$113.00 [/TD]

[TD="bgcolor: #cacaca, align: center"]16[/TD]

[TD="align: right"]$1,398.00 [/TD]

</tbody>

Spreadsheet Formulas
CellFormula
E2=SUMIF($A$2:$A$16,D2,$B$2:$B$16)
F2=RANK(E2,$E$2:$E$6)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Hello JoeMo,

Thank your reply, however I need only one formula which can give me the rank.. what you have shared is supporting column D and E, Can we get formula where we don't need to have supporting column.

Thank you.
 
Upvote 0
Hello JoeMo,

Thank your reply, however I need only one formula which can give me the rank.. what you have shared is supporting column D and E, Can we get formula where we don't need to have supporting column.

Thank you.
You could hide the supporting columns with this.
Excel Workbook
ABCDEFGH
1Client :Project #RevenueRankProjectCum$Rank
2Project 1$345.002Project 1$2,477.002
3Project 1$1,769.002Project 2$3,302.001
4Project 1$363.002Project 3$113.005
5Project 2$314.001Project 4$200.004
6Project 2$284.001Project 5$1,398.003
7Project 2$190.001
8Project 2$2,350.001
9Project 2$164.001
10Project 4$90.004
11Project 4$38.004
12Project 4$38.004
13Project 4$20.004
14Project 4$14.004
15Project 3$113.005
16Project 5$1,398.003
Sheet1
 
Upvote 0
Hello Barry,
your one cell formula addressed my requirement and its working as i wanted. Thank you so much.

@JoeMo, Thank you so much for your replies.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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