+ Reply to Thread
Results 1 to 5 of 5

Writing Position

Hybrid View

Shoaib7832 Writing Position 10-23-2017, 05:17 AM
Olly Re: Writing Position 10-23-2017, 05:23 AM
kev_ Re: Writing Position 10-23-2017, 05:32 AM
samba_ravi Re: Writing Position 10-23-2017, 05:37 AM
kev_ Re: Writing Position 10-23-2017, 06:25 AM
  1. #1
    Registered User
    Join Date
    10-23-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    1

    Unhappy Writing Position

    I want to write positions of students in this format
    NAME: MARKS POSITION
    Irfan 33 6
    maqsood 54 5
    rizwan 60 4
    mazhar 99 1ST
    saeed 25 7
    rasheed 68 3RD
    fareed 98 2ND
    bashir 21 8


    Using RANK(B1,B1:B9,0) it displays position 1,2,3 etc.. but i want the first three positions should be written as 1st, 2nd, 3rd and remaining position should be 4,5,6,7,8 etc..If anyone can help?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Writing Position

    Try:
    Formula: copy to clipboard
    =RANK($B2,$B$2:$B$9,0)&IFERROR(CHOOSE(RANK($B2,$B$2:$B$9,0),"st","nd","rd"),"")
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Writing Position

    or

    =IF(RANK(B1,$B$1:$B$9,0)<4,CHOOSE(RANK(B1,$B$1:$B$9,0),"1st","2nd","3rd"),RANK(B1,$B$1:$B$9,0))
    Last edited by kev_; 10-23-2017 at 06:17 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Writing Position

    or
    =RANK($B2,$B$2:$B$9,0)&IFERROR(INDEX({"st","nd","rd"},RANK($B2,$B$2:$B$9,0)),"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Writing Position

    or
    =IFERROR(CHOOSE(RANK($B2,$B$2:$B$9,0),"1st","2nd","3rd"),RANK($B2,$B$2:$B$9,0))

+ 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. Dynamic userform position based on widow position
    By Manish84 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2015, 07:47 AM
  2. Replies: 1
    Last Post: 07-27-2014, 10:57 AM
  3. Replies: 1
    Last Post: 06-22-2012, 08:59 PM
  4. Cell position according to active cell's position
    By EXCELOST in forum Excel General
    Replies: 3
    Last Post: 02-13-2011, 05:22 AM
  5. Position cell in top left position
    By Hein in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2009, 05:48 AM
  6. Replies: 5
    Last Post: 11-09-2007, 01:42 PM
  7. [SOLVED] Position of CellCursor on Screen (absolute position)
    By newsgroups@joerg-lensing.de in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2005, 10:25 PM

Tags for this Thread

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