Excel Magic Trick 810: RANKIF Function RANK IF: Ranking With Conditions

Sdílet
Vložit
  • čas přidán 26. 09. 2011
  • Download Excel Start File people.highline.edu/mgirvin/Y...
    Download file: people.highline.edu/mgirvin/E...
    1. There is no such thing as RANKIF Function, but you can use SUMPRODUCT to RANK with Conditions or Criteria
    2. See how to rank studnt's scores by department (like Marketing, Accounting, Finance, etc.)
    3. Arrays of TRUE and FALSE converted to 1 0 ones and zeroes using Double Negative
  • Věda a technologie

Komentáře • 47

  • @davida.taylor8444
    @davida.taylor8444 Před 4 lety +3

    An 8 year old video that came in handy in 2019. I'd love a Rankif function, but this works too! Plus, the double-negative trick now makes sense to me.

  • @felipescherer2131
    @felipescherer2131 Před 4 lety

    Finally I found a clear and simple explanation on how to use sumproduct to rank records taking into consideration their "group". In fact, using the examples I was able to find out how to look for more then on criteria and rank the records based on their row position using row(). Thanks a lot!

  • @slimbrown29
    @slimbrown29 Před 5 lety

    Thanks Mike. This solved a multiple criteria lookup problem that I was facing . I got two birds with one magic trick! Cheers!

  • @cleteboyer9
    @cleteboyer9 Před 10 lety +4

    This is terrific. I'm really getting a lot out of your videos!

  • @excelisfun
    @excelisfun  Před 13 lety

    @demouram , I am glad that the video helps!!!

  • @excelisfun
    @excelisfun  Před 12 lety

    You are welcome!

  • @Travel-Costa-Rica
    @Travel-Costa-Rica Před 9 lety

    Oh yes, this is great help!!! Thanks for making these available!!!

  • @BergTexas
    @BergTexas Před 11 lety

    Exactly what I was looking for. Easy to follow and implement. Thanks!

  • @excelisfun
    @excelisfun  Před 11 lety

    Cool! I am glad that this helped!

  • @zafranjones6203
    @zafranjones6203 Před 2 lety

    Genius. This is exactly what I needed. Thank you!

  • @excelisfun
    @excelisfun  Před 13 lety

    @kw42chan , you are welcome!

  • @RohitKshirsagar
    @RohitKshirsagar Před 6 lety

    This is awesome. Thanks for sharing !

  • @SyedMuzammilMahasanShahi

    Thanks for this wonderful video

  • @tjetjim
    @tjetjim Před 9 lety

    Wow - who figured this out? Thanks for posting and thanks for posting under RANKIF. It allowed me to find it.

  • @RobTaylor1985
    @RobTaylor1985 Před 2 lety

    This is an outstanding tutorial - really enjoyed your style and it helped my problem

  • @rahafissesprincess4813

    Thank you so much ❤

  • @excelisfun
    @excelisfun  Před 11 lety +1

    When I try it in the above example it does work. I am not sure what is happening with your formula.

  • @excelisfun
    @excelisfun  Před 11 lety

    Switch less than symbol to greater than.
    Try: =SUMPRODUCT(-- (C2=$C$2:$C$91),--(B2 **** $B$2:$B$91))+1
    **** means type greater than symbol

  • @DevonTuck
    @DevonTuck Před 7 lety

    Godlike!

  • @coolkidz33
    @coolkidz33 Před 12 lety

    Thanks for another awesome video. Let's say these are golf scores and you want the lower number to be #1 (vs where you want the higher number to be #1). It is easy with Rank. How would you do that with the sumproduct?

  • @qualityjuice
    @qualityjuice Před 12 lety

    brilliant - thanks

  • @14bc
    @14bc Před 11 lety

    I am looking to rank a bunch of values then write a formula based on the rank value. So for example (Rank 1 * Rank 2) / Rank 3 . So the position of rank 1, 2, 3 etc will change across the sheet but no matter what I need the lowest rank to be the denominator (for example). Clear as mud in a beer bottle I know but hopefully you or someone else might be able to help.

  • @krn14242
    @krn14242 Před 13 lety

    Hmmm, this may solve my Rank with multiple conditions issue. Thanks Mike..

  • @minoorek
    @minoorek Před 11 lety +1

    It's very useful function but i have problem. In your example there are two "marketing" with 3 rank (duplicates). I need extra column with absence and if there are duplicated ranks then better is with less absences.

  • @excelisfun
    @excelisfun  Před 12 lety

    See this video title:
    Excel Magic Trick 707: RANK with Criteria - SUMPRODUCT

  • @nachohaxor
    @nachohaxor Před 4 lety

    how would you ignore null values if the department column had blanks? because adding the 1 would rank everything with a null value as 1 therefore throwing off the rank. is there a way to wrap a condition around the sumproduct?

  • @firasalnaqeeb
    @firasalnaqeeb Před 7 lety

    I need to do ranking for families based on family size (from 1 to 9) and the family monthly income there is a chart for manual ranking has multiple rows each for the size of the family for ranking from 1 to 30.
    How can I do it on excel? can you help

  • @darwinchan5573
    @darwinchan5573 Před 13 lety

    video helps a lot, we can learn numerous tricks on youtube! thanks @excellsfun

  • @nandbengu7182
    @nandbengu7182 Před 11 lety

    THANKS

  • @johannaandersson1947
    @johannaandersson1947 Před 4 lety

    Hi, I love your videos they have helped me with several conundrums.
    Nevertheless, now I have encountered a challenge that I have not been able to solve. I need to rank a database with multiple criteria that sometimes displays the same value within the ranking range e.g. one customer has bought the same amount of eight different products with the same profitability and no other products. When I try to rank based on profitability per customer with sumproduct I get the ranking eight for this specific customer because all the eight product has the same profitability value. When I use rank.eq and the countifs function, as you show in “Excel magic trick1354…” it does not work and returns values greater than the number of products the customer has acquired. I also tried the countifs as a standalone function which worked for most of my dataset but not for the entire dataset which is very frustrating because I don’t understand why it is returning an incorrect value for some of our customers but not all.
    Unfortunately, I cannot sort my dataset.
    In a perfect world, my wish is to rank the dataset based on customer and profitability without duplicate ranking number ranging from 1 to X. However, I could live with duplicate rankings.
    The database is currently consisting of 50 000 rows and is growing day by day.
    I’m keeping my fingers crossed that you have a brilliant idea how to solve this issue!
    Kind regards,
    Johanna

  • @blakecrossley1200
    @blakecrossley1200 Před 10 lety +1

    How would you perform a rank with an "or" function. For example, in Column A are dates. Jan 28th, Jan 29th...etc. Column B, Away Games. Column C, Home Games. I'd like to rank (based on date) the Chicago Blackhawks games. Sometimes they appear in the away game column, sometimes in the home game column.

  • @venkataramana6548
    @venkataramana6548 Před 4 lety

    Its so cool.

  • @MonuMan5
    @MonuMan5 Před 12 lety

    I noticed in the situation where a department has a tie. It will still assign a value of 1 and then 2. How can you get this to show the same rank for duplicates?

  • @rebekahhasheminejad3572

    Love your videos. In this example, how do i change the top rank (#1) to be the smallest number, not the largest number on the list?

    • @JTN1101
      @JTN1101 Před 5 lety

      Change the "" in [array2]

  • @tylttran
    @tylttran Před 9 lety

    How come I can't get this to work on excel 2013?

  • @excelisfun
    @excelisfun  Před 13 lety

    @krn14242 , cool!!

  • @airjing15
    @airjing15 Před 8 lety +2

    What if there are 2 or more the same score and I don't want to skip ranks? e.g. 2 people in Fiance scored 100, and 1 person scored 99, I want the rank to be (1, 1, 2 ) instead of (1, 1, 3). Thanks!

  • @venkataramana6548
    @venkataramana6548 Před 4 lety

    Pls help to eliminate duplicate ranks

  • @kartickchakraborty9135

    Sir, would you kindly make a tutorial on this example through Power Query? But, if there is a Tie, then both should give the same Rank. For Example, If 3 out of 5 or 6 PolyScience Score 60 then, all 3 of them should give the same Rank. How should I do this through Power Query? I know, you're busy with other tutorials. But, still, please Sir

  • @imVNUTZ
    @imVNUTZ Před 9 lety

    This didn't rank the top score for each category. It just ranked the scores for the overall list.

    • @rbnmalvaez
      @rbnmalvaez Před 8 lety

      +imVNUTZ it ranked categories... you can see there are duplicates (11,14)