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.


Client :Project #RevenueRank Me
Project 1$345.00
Project 1$1,769.00
Project 1$363.00
Project 2$314.00
Project 2$284.00
Project 2$190.00
Project 2$2,350.00
Project 2$164.00
Project 4$90.00
Project 4$38.00
Project 4$38.00
Project 4$20.00
Project 4$14.00
Project 3$113.00
Project 5$1,398.00

<tbody>
</tbody>


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.


Client :Project #RevenueRank Me
Project 1$345.002
Project 1$1,769.002
Project 1$363.002
Project 2$314.001
Project 2$284.001
Project 2$190.001
Project 2$2,350.001
Project 2$164.001
Project 4$90.004
Project 4$38.004
Project 4$38.004
Project 4$20.004
Project 4$14.004
Project 3$113.005
Project 5$1,398.003

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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
1Client :Project #Revenue*ProjectCum$Rank
2Project 1$345.00 *Project 1$2,477.00 2
3Project 1$1,769.00 *Project 2$3,302.00 1
4Project 1$363.00 *Project 3$113.00 5
5Project 2$314.00 *Project 4$200.00 4
6Project 2$284.00 *Project 5$1,398.00 3
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 ****

<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>
</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
If you want a single formula for ranking try this formula in C2 copied down

=SUMPRODUCT((SUMIF(A$2:A$16,A$2:A$16,B$2:B$16)*(MATCH(A$2:A$16,A$2:A$16,0)=ROW(A$2:A$16)-ROW(A$2)+1)>SUMIF(A$2:A$16,A2,B$2:B$16))+0)+1
 
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,215,660
Messages
6,126,082
Members
449,286
Latest member
Lantern

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