How to rank highest to lowest

Lisa_Doris
Lisa_Doris ✭✭✭✭
edited 10/02/21 in Formulas and Functions

I would like to rank a range where the #1 rank is the lowest number in a range. The formula I am using ranks the highest number as #1

=RANKEQ([Revenue Per Year]1, [Revenue Per Year]:[Revenue Per Year], 1)



Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @Lisa_Doris

    I hope you're having a fantastic weekend!

    Try something like this. (replaced the row reference number with @row instead)

    =RANKEQ([Revenue Per Year]@row, [Revenue Per Year]:[Revenue Per Year], 1)
    

    Did that work/help?

    I hope that helps!

    Be safe and have a fantastic weekend!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Lauren Dominique
    Lauren Dominique Overachievers

    Hi @Andrée Starå… I realize I am reviving this thread from a long time ago, but I wanted to confirm that I tried this solution and it did meet my need, though I am curious as to how to update the formula so the highest dollar amount is #1. When I added the formula to my sheet, it made the lowest dollar amount #1 and the highest dollar amount #12 (because I have 12 items on the sheet). I'd love to be able to have a report that only pulls over Ranks #1-10, with them being the highest 10 dollar amounts. Thoughts on how to reverse the formula?

    If this comment helped you, please help me and help others by using the buttons below if you found it 💡 Insightful or ❤️ Awesome!

  • Lauren Dominique
    Lauren Dominique Overachievers

    Disregard my follow-up question! After reading more about the RANKEQ function, I figured it out…. adding the 1 at the end of the formula sorts in ascending order, but putting 0 sorts it in descending!

    RANKEQ Function | Smartsheet Learning Center

    If this comment helped you, please help me and help others by using the buttons below if you found it 💡 Insightful or ❤️ Awesome!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!