Share via

Ranking Template

Anonymous
2020-01-12T20:10:30+00:00

There are a list of values in column A. This list of values can vary in length with a maximum number of 25. In other words, the list will not exceed row 26.

Column C ranks the values in column A accounting for duplicates. In other words, the ranking numbers in column C are consecutive. Also, the rankings are multiplied by a number shown in cell E1. In the example the number is 1.

I would like to create a standard formula in column C that would rank the values in column A regardless of the number of values in column A. The standard formula would account for a maximum number of values in column A of 25. The current formula in column C is:

=$E$1*(SUMPRODUCT((A2<=$A$2:$A$17)/COUNTIF($A$2:$A$17,$A$2:$A$17)))

It does not provide for this flexablity. It is currently set for 16 values (row 17). If I change the number of values in column A and do not change the range in formula in column C, I get a DIV/0! in column C.

I would like to create a template such that I can add a varying list of values in column A (and a number in cell E1) and have the ranking done automatically in column C with changing the range of possible values in column A.  

Any suggestions how the formula shown can be modified to accomplish this.

Thank you,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

14 answers

Sort by: Most helpful
  1. Anonymous
    2020-01-12T20:30:36+00:00

    Hello,

    Thanks for reaching out. I'm Fritzie, an Independent Advisor. I'll be happy to help you out today.

    For ranking, you might want to check these links:

    https://exceljet.net/excel-functions/excel-rank...

    https://www.contextures.com/excel-functions-ran...

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    Hope this helps.

    Have a nice day !

    Regards,

    Fritz :)

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-01-12T22:55:18+00:00

    Hi William

    Please try this formula in cell C2 and copy down

    C2=(RANK.EQ(A2,$A$2:$A$17,0)+COUNTIF($A$2:A2,A2)-1)*$E$1

    Change ranges as per your scenario

    Do let me know if you need more help

    Regards

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2020-01-12T22:47:51+00:00

    Instead of providing a specific suggestion for your simple example, I'm going to "throw the kitchen sink" at you. I have a huge collection of "tips" (links to articles). There are many ways to do ranking in Excel. This (I admit LARGE) collection of tips shows you (only) some of the ways you can do ranking in Excel.  Maybe you can find one that is a better fit for your specific need than a "simple" fix.

    .

    Personally, I'm a recent "religious convert" to PowerQuery and PivotTables. The beauty of those 2 tools is that if you data is constantly changing, it is easy to add new data and update the results after you do the initial setup.

    .

    So get ready, here is the collection (sorted alphabetically)...

    .

    15 Quick & powerful ways to analyze business data 2015 07 01****http://chandoo.org/wp/2015/07/01/how-to-analyze-business-data/

    Today let me share 15 quick, simple & very powerful ways to analyze business data. Ready? Let’s get started.

    .  *  Check out the distribution on this curve! .          *  Rank it / Sort it

    .  *  Top 5 it ----------------------------------------

    .

    A better chart to visualize “Best places to live” – Top 100 cities comparison Excel chart          2014 10 08****http://chandoo.org/wp/2014/10/08/top-100-cities-chart/

    Recently, I saw this chart on Economist website.

    It is trying to depict how various cities rank on livability indexand how they compare to previous ranking (2014 vs 2009). As you can see, this chart is not the best way to visualize “Best places to live”.  Its no fun criticizing someones work. Creating a better chart from this data,now thats awesome.

    .

    **Adding Up The Scores And Ranking For Position**Excel Video Duration: 00:04:26http://www.infiniteskills.com/training/microsoft-excel-2011-mac-training-video/adding-up-the-scores-and-ranking-for-position.html

    .

    Analysis ToolPakUse the Analysis ToolPak to perform complex data analysishttps://support.office.com/en-ie/article/use-the-analysis-toolpak-to-perform-complex-data-analysis-6c67ccf0-f4a9-487c-8dec-bdb5a2cefab6

    If you need to develop complex statistical or engineering analyses, you can save steps and time by using the Analysis ToolPak. You provide the data and parameters for each analysis, and the tool uses the appropriate statistical or engineering macro functions to calculate and display the results in an output table. Some tools generate charts in addition to output tables.

    Anova

    Correlation

    Covariance

    Descriptive Statistics

    Exponential Smoothing

    F-Test Two-Sample for Variances

    Fourier Analysis

    Histogram

    Moving Average

    Random Number Generation

    Rank and Percentile

    Regression

    Sampling

    t-Test

    z-Test

    Use the Rank and Percentile Tool from the Analysis ToolPak in Excel 2007 and Excel 2010 to create ranking tables2013 05 02             Robbie C Wilson

    https://turbofuture.com/computers/Use-the-Rank-and-Percentile-Tool-from-the-Analysis-ToolPak-in-Excel-2007-and-Excel-2010-to-create-ranking-tables

    n this hub, I will be investigating the Rank and Percentile Tool. Ranking allows you to rank all your data in order from highest to lowest and Percentile allows you to easily categorise your data into percentiles such as the top 25%, top 50% etc. o illustrate how to use this tool, I will work through an example. In my example, I have a class of 30 students. I have just got their latest results and want to rank them and assign them grades based on their ranking within the class. The top 10% get an A, the next 20% get a B, the next 20% get a C and the remainder get a D grade.

    .

    Break ties with helper column and COUNTIF****To break ties, you can use a helper column and the COUNTIF function to adjust values so that they don't contain duplicates, and therefore won't result in ties.

    ET MR Function Dictionary.docx..

    Calculate rank percentile of a list in Excel? .

    **Calculating Rank in Excel******         2010 03 22

    To do some research on sorting, I hauled one of the big, dusty Excel books off my shelf, to see if there were any scintillating sorting secrets to uncover. Under Sorting, I saw “rank…

    .

    Charticulator-

    https://Charticulator.com

    Create Bespoke Chart Designs, including ranking, without Programming (MS Research) – Web App.

    .

    conditional formatting data based on percentile rank in Excel? .

    Conditional Rank, the easy way****          2017 10 20

    https://chandoo.org/wp/pivot-table-rank-example/

    https://assets.chandoo.org/wp/wp-content/uploads/2017/10/conditional-ranking-using-pivot-tables.gif

    Hui posted about conditional rank formula (RANKIFS) using awesome SUMPRODUCT

    Of course, not everyone can whip up a sumproduct formula like that.

    Don’t worry. We got you covered. You can still get your conditional ranks, without array formulas. Simple, use pivot tables instead and “Show values as” selecting “Rank…”

    .

    Conditional Ranking In Excel Using Sumproduct Functionhttps://excelchamps.com/blog/conditional-ranking-sumproduct-rank-if/

    Have you ever faced a situation where you have to rank values by using some specific criteria. And if yes, then how you solved that problem, because you know there is no RANKIF function in Excel?

    Let me tell you something, whenever you want to create a conditional ranking based on a specific criterion or category wise ranking, the best way is to use SUMPRODUCT Function.v

    ET MR Serious Sorting.doc x.

    .

    create a chart in ranking order in Excel?

    .

    easily rank data by absolute value in Excel? .

    easily rank list without ties in Excel? .

    easily rank numbers skip blank cells in Excel? .

    Edward Tufte's Slopegraphs in Excelhttps://sites.google.com/site/e90e50fx/home/Edward-Tufte-slopegraphs-in-excel

    One of the strengths of Tufte's graph (perhaps the most important) is that we can immediately read the ranking of both the data.

    Another of the strengths is that with this chart we provide a lot of information using very little ink and colors - in a really clear structure.

    .

    Excel rankings with ordinal numbers, joint, equal and more

    https://office-watch.com/2018/excel-rankings-ordinal-numbers-joint-equal/

    Here’s a look at two things that you’d expect Excel to handle quickly and easily, but doesn’t.   Showing a ranking of items with equal ranks shown (3^rd^ equal etc) and ordinal numbers (1^st^, 2^nd^, 3^rd^ etc) or ordinal names (first, second, third etc). All are possible in Excel but strangely not provided by Microsoft directly.

    ET MR Function Dictionary.docx.

    Excel’s Rank/Rank.EQ function to show order, first, second etc.https://office-watch.com/2018/excels-rank-rank-eq-function-show-order-first-second-etc/

    Excel has a way to rank a series of values, showing which is top, middle and bottom. As usual, what appears to be a simple thing has extra features to cope with the real world like equal placings.

    Here’s a simple ranking.  As you can see, Excel has ranked the Value entries from 1 to 9. The Rank column goes from highest value to lowest for things like exam results, ‘Reversed Rank’ goes from lowest to highest for races, golf scores etc.

    ET MR Custom & Conditional Formats.docx  ET MR Function Dictionary.docx.

    Grant Distribution FN0011        2005  03 05

    uses ranking to distribute available funds to applicants, based on request amount. GrantDistrib.zip 4 kb 

    .

    Group- RANK function and rank by groups using SUMPRODUCT                     2018 11 19      Chris Menard

    https://www.youtube.com/watch?v=X4MGxa0prTw

    Excel's Rank function (RANK.EQ) will return the rank of a number in a list of numbers. The rank of a number is its size relative to other values in a list.

    .  *  SumProduct()

    .

    Group- Rank Items in Different Groups [3 Examples]          2016 09 09

    https://www.youtube.com/watch?v=uc-q1sR2CBo       (17MIN)

    Have you ever heard of the term "Rank and Yank"? It's a term that describes the process that some corporations use to rank their employees against each other and then get rid of the lower ranking ones. So the ones at the bottom get yanked! It's like the reality show Survivor! Well if you wanted to be an armchair judge and do some ranking with data you have the handy-dandy tool of Excel to make this happen. Let's Rank those bad, bad companies! This video show three examples of how to rank items based on a grouping. The example focuses on market capitalization of stocks from 2013 to 2015 and help to rank the top stocks for the year viewed.

    .  *  PivotTable + SumProduct()

    .  *  SumProduct()

    .  *  PowerPivot (data model)

    .

    Group- Rank values by group in Excelhttps://www.extendoffice.com/documents/excel/4319-excel-rank-by-group.html

    In this article, I will talk about ranking values by group in Excel

    .  *  SumProduct()

    .

    Group- Rank within Groups in Excel  2018 02 18

    https://www.myspreadsheetlab.com/rank-within-groups/

    How can we rank within groups in Excel? Most experts will tell you to use the SUMPRODUCT function. Why? It’s the only solution they know or maybe they’re concerned about compatibility. Is anyone still using Excel 2003? Let’s compare SUMPRODUCT and COUNTIFS.

    .  *  SumProduct()

    .  *  CountIfs()

    .

    Highlighting Outliers in your Data with the Tukey Methodhttp://datapigtechnologies.com/blog/index.php/highlighting-outliers-in-your-data-with-the-tukey-method/

    I just recently completed a project that required a set of “Rank and Stack” reports for the purposes of identifying poor performers and recognizing good performers. It became clear that some of the data points had values that were so far removed from the norm that they were throwing off the ranking.

    I used John Tukey’s method of leveraging the Interquartile Range. His method is applicable to most ranges since it isn’t dependent on distributional assumptions. It also ignores the mean and standard deviation, making it resistant to being influenced by the extreme values in the range.

    .

    Joint vs Equal rankings with Excel’s Rank() and Rank.EQ()

    https://office-watch.com/2018/joint-vs-equal-rankings-excels-rank-rank-eq/

    If you’d like to be really clever with Rank/Rank.EQ in Excel, here’s how to show different words for joint rankings (only two with the same rank) or equal rankings by three or more. It’s a small difference but can make your reports or merged documents look a lot more professional.

    ET MR Function Dictionary.docx.

    Joint vs Equal rankings with Excel’s Rank() and Rank.EQ()

    https://office-watch.com/2018/joint-vs-equal-rankings-excels-rank-rank-eq/

    If you’d like to be really clever with Rank/Rank.EQ in Excel, here’s how to show different words for joint rankings (only two with the same rank) or equal rankings by three or more. It’s a small difference but can make your reports or merged documents look a lot more professional.

    ET MR Function Dictionary.docx.

    Key influencers visualization     2019 10 21

    https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-influencers

    The key influencers visual helps you understand the factors that drive a metric you're interested in. It analyzes your data, ranks the factors that matter, and displays them as key influencers. For example, suppose you want to figure out what influences employee turnover, which is also known as churn. One factor might be employment contract length, and another factor might be employee age.

    .  *  When to use key influencers

    .  *  Features of the key influencers visual

    .  *  Analyze a metric that is categorical

    .  *  Interpret categorical key influencers

    .  *  Interact with other visuals

    .  *  Interpret continuous key influencers

    .  *  Binned continuous key influencers

    .  *  Interpret measures and aggregates as key influencers

    .  *  Interpret the results: Top segments

    .  *  Adding counts

    .  *  Analyze a metric that is numeric

    .  *  Interpret the results: Key influencers

    .  *  Interpret the results: Top Segments

    .  *  Analyze a metric that is a measure or a summarized column

    .  *  Considerations and troubleshooting

    .

    Many Ordinal RANK() options in Excel with joint, equal rankings, words and more 2018 01 16

    https://office-watch.com/2018/many-ordinal-rank-options-excel-joint-equal-rankings-words/

    In a previous article we looked at options for showing ordinal numbers in Excel, now we’ll go a step further to cope with joint or equal results plus special wording.

    On the left are the basic ordinal rankings, the next column has text to show equal rankings while column M shows joint and equal rankings.  The last two columns have words instead of values.

    ET MR Custom & Conditional Formats.docx.

    Pick Names Out Of A Hat With Excel Run time: 3:10****In this video, we look at how to simulate a drawing and pick winners in a contest with Excel, using the RAND and RANK functions together.

    .

    PivotTable- MyExcelOnline Pivot Table Intro Webinar 2019 01 26- 1hr30minhttps://www.myexcelonline.com/free-excel-pivottable-training

    This webinar is an intro to Pivot Tables and shills for his paid online training course (which IS probably well WORTH IT given quality of tips in this free sample)

    33:41 Difference from Previous Month: Drag another Sales to Values input. Right click on it > Value Field Settings > Show Values As tab > Show Values As drop down: “Difference From”, Base Field: “Month”, Base Item: “Previous”

    Value Field Settings > Show Values As Drop Down Options in place of “Difference From”:

    “No Calculation”, % of Grand Total, % of Column Total, % of Row Total, % of, % of Parent Row Total, % of Parent Column Total, % of Parent Total, Difference From, % Difference From, Running Total In, % Running Total In, Rank Smallest to Largest, Rank Largest to Smallest, Index

    PivotTable- Ranks and Exceptions that “Bubble Up” to Subtotals(PivotTable)       2013 09 17

    https://powerpivotpro.com/2013/09/ranks-and-exceptions-that-bubble-up-to-subtotals/

    The blue part of the formula, loosely translated, does this:

    For each product that is “valid” in the current measure cell, go find its rank amongst all products.  Then return the lowest such rank from all of those products.

    So, in essence, every product in the Products table gets ranked 3 times – once at each level of the pivot.  Don’t be shocked if this sometimes results in slow pivots.

    Now imagine you write another measure.  One that detects whether something is going wrong down in the details and then “bubbles that up” to a higher level.

    Bubbling Up Exceptions with “Sara Problem?”(Is there a Problem) / (bubble up ranks technique.)        2013 10 17

    https://powerpivotpro.com/2013/10/bubbling-up-exceptions-with-sara-problem/

    The Flag Appears at Top Level (Accessories), Telling You There’s a Problem Further Down.

    Expand Accessories and You See the Culprit is Bottles and Cages (Specifically Road Bottle Cage)

    Start With a “Sara Problem” Measure!

    Quick post today, continuing the saga of Anakin Skywalker.  An extension to the bubble up ranks technique.

    Let’s say you have a measure. Doesn’t matter what it is or how it’s calculated really, except that it reports on whether there’s a problem.  It returns 1 (or Yes or True) if there’s a problem, and 0 (or No/False) if there isn’t.  Or maybe it returns a “regular” number, but when it crosses a certain line, your business has decided that is Bad.

    .

    PivotTable- RANKX-apalooza: Within and Across Groups, With Filters, Etc. 2015 06 09          Rob Collie

    https://powerpivotpro.com/2015/06/rankx-apalooza-within-and-across-groups-with-filters-etc/

    One from the Reference Stacks

    I sometimes find RANKX() a bit perplexing.  So awhile back I made myself a workbook of examples, which I will share with you today:

    List of Stores, Grouped by Region, and then Ranked by Units Sold – Both Overall (vs. All Stores) and Within Region (Just vs Stores Within Same Region)

    .

    PivotTable- Tips to Make Best out of Pivot Tables

      *  Add Ranks in a Pivot Table

    PivotTable- Writing a RANK measure (and living to tell the tale)          March 8, 2010

    https://PowerPivotpro.com/2010/03/writing-a-rank-measure-and-living-to-tell-the-tale/

    DAX v1 has no RANK() function (corrected later). That’s right.  There wasn’t time to implement it in PowerPivot v1. Never fear, there’s a workaround… (now as an example of writing measures)

    Rank continued – dealing with unknown members March 11, 2010

    https://PowerPivotpro.com/2010/03/rank-continued-dealing-with-unknown-members/

    The problem from last time, remember my Rank report that started with #2? Well, the reason for that is that I have some unknown players.

    RANK measure finished             March 21, 2010

    https://PowerPivotpro.com/2010/03/rank-measure-finished/

    Last time, I’d written a mostly-working version of the measure that ranks a player by his Rushing Yards value, and that doesn’t return an error when I leave the Unknown player in the pivot. Must remove the Unknown player from rank consideration This turns out to be pretty tricky.

    .

    PoweQuery- Use Sum in Microsoft Excel Power Query – Running total and Rank data table using PowerQuery

    https://www.youtube.com/watch?v=KI5ZeoQhb9E&feature=youtu.be  8min

    e pq- Sum in Power Query.mp4 (downloaded)         

    we show you how to build an auto SUM and RANK using Power Query in Microsoft Excel. Szilvia takes you through setting up your data, pulling it into Power Query, promoting the first row to the header, unpivoting the results, and then combining them with group by.

    0:00 intro

    1:09 Start – Describe data source, a “scorecard”

    1:20 Select data to make Named range

    1:44 Load data to PowerQuery Data tab > Get Data command > From Other Sources option > Blank Query

    1:58 Open PowerQuery editor, Rename to query to something

    2:30 Load data to PQ  Excel.CurrentWorkbook(), shows schema of data in Worksheet, in this case the named range “scorecard”

    3:05 Set filter to keep out any new data not in the named range using Filter > Text Ranges > Equals > Drop to down select value “scorecard”

    3:30 Right click on “Content” column > select “Remove Others Columns”

    3:40 Expand “Content” to show all data in the range

    4:00 Replace generated column names with column names in first row: Home tab > Transform group > “Use First Row as Headers” drop down

    4:20 Unpivot: Click team (name) column, Transform tab > Any Column group > Unpivot Column command > Unpivot Other Columns

    4:55 almost ready to total, no “SumIfs()” in PQ, use GroupBy: Home tab > Transform group > Group By command > Group by: Team column, New column name: Running Total, Operation: Sum, Column: Value

    5:50 Now have a collapsed table of score sums, “Running Total”

    6:00 Before Ranking, have to Sort running totals, Click on DropDown in column heading, select sort

    6:22 Add rank column using add Index Column: Add column tab > General group > Index Column drop down > From 1

    6:50 Rename Index Colmn: Rank

    6:58 Close and Load back to worksheet: Home tab > Close & Load > to a table on current worksheet

    7:30 Update: change values in data range, right click on PQ generated Rank table, select “Refresh”

    .

    PowerBI-Ribbon charts in Power BI

    Ribbon charts show which data category has the highest rank (largest value). Ribbon charts are effective at showing rank change, with the highest range (value) always displayed on top for each time period.

    PowerQuery- Ranking Movie Grosses and Inflation: Methodology                   2012 04 05

    https://powerpivotpro.com/2012/04/movie-grosses-and-inflation-methodology/

    In the voting from the last post, the majority of respondents found the third ranking to be most realistic: I agree – this is the one that I personally found most consistent with reality.

    .

    quickly color ranking in Excel? .

    quickly rank a league table in Excel? .

    quickly rank a list by a specific value in Excel? .

    quickly rank closet to zero or a specific value in Excel? .

    quickly rank data across multiple ranges and sheets in Excel? .

    quickly rank non-continuous range in Excel? .

    quickly rank values ignore errors in Excel? .

    rank based on two columns in Excel? .

    rank data by alphabetical order in Excel? .

    rank data by occurrences in Excel? .

    rank data ignore zero values in Excel? .

    rank data in reverse order in Excel? .

    rank data with multiple references in Excel? .

    rank data without sorting in Excel? .

    rank duplicate values in Excel? .

    rank duplicate without skipping numbers in Excel? .

    Rank function example****https://exceljet.net/formula/rank-function-example

    .

    rank if greater than 0 in Excel?

    ...

    rank only visible cells in Excel?

    ..

    rank positive and negative numbers separately in Excel?

    ..

    Rank race results ****https://exceljet.net/formula/rank-race-results

    To rank a set of race times, where the lowest (fastest) time is ranked #1, you can use the RANK function.

    .

    rank range numbers uniquely without duplicates in Excel?

    ..

    rank values by group in Excel?

    ..

    rank values excluding subtotal in Excel?

    ..

    Rank Values With The Rank Function            (3MIN)****The RANK function gives you a way to rank values with a simple function that will dynamically calculate rank. If any value changes, you'll get a new rank automatically.

    .

    Rank with ordinal suffix****https://exceljet.net/formula/rank-with-ordinal-suffix

    To add an ordinal suffix to a number (i.e. 1st, 2nd, 3rd, etc.) you can use a formula based on the CHOOSE function to assign the suffix.

    .

    Rank without ties****To assign rank without ties, you can use a formula based on the RANK and COUNTIF functions. In the example shown, the formula in E5 is: = RANK ( C5 , points ) + COUNTIF ( $C$5:C5 , C5 ) - 1 where "points" is the named range How this formula works...

    .

    **RANK, RANK.AVG and RANK.EQ Functions**            2012 04 19   Mynda Treacy

    http://www.myonlinetraininghub.com/excel-rank-rank-avg-and-rank-eq-functions

    No prizes for guessing what the RANK functions do and I’ll cover them in a moment. But first you need to know that RANK.AVG and RANK.EQ are new jazzed up versions of RANK and are only available in Excel 2010 and onwards. RANK plain vanilla is still available in Excel 2010 for backward compatibility with […]

    .

    RankIfs or Conditional Rank      2017 10 19

    https://chandoo.org/wp/2017/10/19/formula-forensics-043-rankifs-or-conditional-rank/

    Excel has had a native Rank() since its very first versions. This function has been updated in 2010 to include Rank.eq and Rank.Avg.

    These functions allow you to Rank a list in either an Ascending or Descending order

    Recently on Linkedin I came across a formula at Excel Champs for calculating a Conditional Rank effectively a Rankif(). The Excel Champs post is based on Michael Girvin’s Youtube Videohttps://www.youtube.com/watch?v=rCeTG2k2T6I

    .

    **Split Golf Prize Money for Tied RANK with Excel****** September 20, 2010

    [https://contexturesblog.com/archives/2010/09/20/split-golf-prize-money-for-tied-rank-with-excel/](https://contexturesblog.com/archives/2010/09/20/split-go

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-01-12T21:45:23+00:00

    Can you share your workbook so I could check?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2020-01-12T21:14:59+00:00

    Fritz:

    I have general knowledge of the ranking formulas and sites but do not know how to solve this particular issue. Do you have any suggestions?

    Thank you,

    Was this answer helpful?

    0 comments No comments