+ Reply to Thread
Results 1 to 2 of 2

Using Rank and Right functions to find positions and attach suffixes to results

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    255

    Using Rank and Right functions to find positions and attach suffixes to results

    Good day all,
    Please in the attached file, I’m combining Rank and Right functions to see if I can add appropriate suffixes to my result. I want things like these:
    1st
    2nd
    3rd
    4th
    5th
    6th
    7th
    8th
    9th
    10th
    11th
    Etc.
    Please any help will be appreciated for the formular I currently have gives me only “th”

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Using Rank and Right functions to find positions and attach suffixes to results

    you need to change the rank to text format , i suspect

    =RIGHT(TEXT((RANK(A1,$A$1:$A$17,0)),0),1)

    =RANK(A1,$A$1:$A$117,0)&IF(OR(RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),2)="11",RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),2)="12",RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),2)="13"),"th",IF(RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),1)="1","st",IF(RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),1)="2","nd",IF(RIGHT(TEXT((RANK(A1,$A$1:$A$117,0)),0),1)="3","rd","th"))))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Rank with changing positions
    By jharaldson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 01:45 PM
  2. Replies: 2
    Last Post: 06-16-2013, 06:10 AM
  3. results program need to add class positions
    By Ger Rich in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2013, 08:11 PM
  4. Find different occurence of matches of numbers at positions
    By sans in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-11-2011, 08:19 AM
  5. Rank results
    By clundeen in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 05:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1