RANK Formula with Criteria

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I need a Rank formula based on criteria

Here is a sample data (having Names in A2:A8 & Qty in D2:D8)

NAMES Qty
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]Peter[/TD]
[TD="width: 64, align: right"]25[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD="align: right"]99[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]36[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD="align: right"]48[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD="align: right"]99[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]

Required names (rank wise) based on sum of Quantites in Column D

In this case answer should be

John (coz john has the maximum qty of 147)
Peter (then peter with a qty of 126)
Mike (then Mike with a qty of 61)

Any help would be appreciated.

Regards,

Humayun
 
Last edited:
i will teach u how to use pivot table
1st select all sheet click insert =>click pivot table
m06kca
http://prntscr.com/m06lf6
http://prntscr.com/m06m80
http://prntscr.com/m06mp8
after this make sheet value mode by select copy pres control +alt +v
http://prntscr.com/m06njy
now short data by larg to smallest
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Both the formulas are working ok for me. If possible upload file

Hi kvsrinivasamurthy ,

I cant upload the file... but anyways i will stick to the first solution with the helper column as it is very fast as compared to the 2nd solution.
I will not be using the second code even if it works coz it takes a lot of time to calculate.

Thanks
 
Upvote 0
i will teach u how to use pivot table
1st select all sheet click insert =>click pivot table
m06kca
http://prntscr.com/m06lf6
http://prntscr.com/m06m80
http://prntscr.com/m06mp8
after this make sheet value mode by select copy pres control +alt +v
http://prntscr.com/m06njy
now short data by larg to smallest

Hi Aqeel,

I will have to see if i can use pivot table as there are also other formulas which are dependent on required result.
But surely i will have a look into it once i am done with the current work.

Regards,

Humayun
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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