Unique Ranking with Multiple Criteria

chrysti

Board Regular
Joined
Dec 20, 2006
Messages
218
This is what I am currently using:
=SUMPRODUCT(--($E$2:$E$30000=$E2),--($F$2:$F$30000=$F2),--($O2<$O$2:$O$30000))+1

I am trying to rank store sales by style by units sold...this is working sort of...it won't break ties...I just want to get to my top 10 to 25

If any one can help...thank you in advance!!!
 

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.
Maybe (adjust the ranges to your case)
Excel 2007 or higher

A B C D
LocationGenderValueRanking
1M102
1M103
1M201
1M84
1F53
1F91
1F54
1F35
1F72
2M212
2M213
2M221
2F231
2F232
2F183

<colgroup><col style="WIDTH: 48pt" span="4" width="64"></colgroup><tbody>
</tbody>


Formula in D2
=COUNTIFS($A:$A,$A2,$B:$B,$B2,$C:$C,">"&$C2)+COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2,$C$2:$C2,$C2)

copy down

M.

Hi! Thanks for this advice! It worked for me as well but I'm super curious to understand how this formula works. I'm still trying to understand how a countif formula can rank them under multiple criteria?

Ed
 
Upvote 0
Please I need help.

Have this setup

A B C D E F
math science ICT total min rank

So I am ranking with the min. But when there is a tie I want to break it with the total. Please help
 
Upvote 0
Please I need help.

Have this setup

A B C D E F
math science ICT total min rank

So I am ranking with the min. But when there is a tie I want to break it with the total. Please help
 
Upvote 0
Hi! Thanks for this advice! It worked for me as well but I'm super curious to understand how this formula works. I'm still trying to understand how a countif formula can rank them under multiple criteria?

Ed

Hi Ed

COUNTIFS is the best tool to rank. The RANK function is very limited...
To understand the formula try the tool
Formulas > Formula Evaluation

M.
 
Upvote 0
Upvote 0
I cannot post the sample I have tried but it's not getting through
 
Upvote 0
You must post a sample if you want help. Try the ForumTools add-in for Excel (there's a link in my signature line).
 
Upvote 0
Please can I get an email so I can send it to you instead. I am trying to post it here but I am not able.

Thanjs
 
Upvote 0
No - that's against the forum rules. You can't attach a file here, but you could put it on a file-sharing site and post a link to it here.
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

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