+ Reply to Thread
Results 1 to 16 of 16

Modify formula to also return =1st, =2nd, =3rd, =4th

  1. #1
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Modify formula to also return =1st, =2nd, =3rd, =4th

    I have this formula =RANK(L29,(L29,T29,L49,T49))&LOOKUP(MOD(RANK(L29,(L29,T29,L49,T49)),5),{1,2,3,4;"st","nd","rd","th"}) that return 1st, 2nd, 3rd, 4th, it is possible to modify this formula to also return =1st, =2nd, =3rd, =4th if any of the values within L29,T29,L49,T49 are the same (tied)

    Thanks in advance for any help.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Attach a sample workbook.. so that we can see.. where the other RANKIng are displayed..

    Where do you want to display 1st, 2nd and so on..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Many thanks!! File attached,The formula will be in H15, P15, H35, P35 (blue stripe) and will make reference on cells L29,T29,L49,T49 (blue cells)

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    I don't know what is in your file but it sets off Office security warnings that are not just cautions about macros or content from the web.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    NDM - I often see this with .xls extensions. Is Excel defaulting to protected mode?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    I Have used 4 different Formula for all sections..

    check Each one carefully..
    • H 15 > =RANK(L29,($L$29,$T$29,$L$49,$T$49))+SUM(COUNTIF(INDIRECT({"T29","l49","t49"}),L29))
    • P 15 > =RANK(T29,($L$29,$T$29,$L$49,$T$49))+SUM(COUNTIF(INDIRECT({"l49","t49"}),T29))
    • H 35 > =RANK(L49,($L$29,$T$29,$L$49,$T$49))+SUM(COUNTIF(INDIRECT({"t49"}),L49))
    • P 35 > =RANK(T49,($L$29,$T$29,$L$49,$T$49))


    I hope you can manage the "St-Nd- part"

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Quote Originally Posted by Glenn Kennedy View Post
    NDM - I often see this with .xls extensions. Is Excel defaulting to protected mode?
    I'm always in protected view when I have downloaded a file from the web. I have downloaded many xls files without problem. This is the first time that I got an "in your face" warning about it in bright red. The usual warnings are in yellow and are about links or macros.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Needless to say, I haven't downloaded the attachment...

  9. #9
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Hi Debra Roy, thank you for your help but i can't manage the "1st,2nd,3rd,4rth or =1st,=2nd,=3rd,=4th, im not that good on excel.

    Regards.
    Last edited by score; 12-15-2014 at 03:54 PM.

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    If there are only 4 values you can use this formula for ranking L29

    =IF(OR(L29=T29,L29=L49,L29=T49),"=","")&CHOOSE(RANK(L29,(L29,T29,L49,T49)),"1st","2nd","3rd","4th")

    That will give you = if it's equal to any of the three other values, adjust for L49, T29 and T49
    Audere est facere

  11. #11
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Hi Glenn Kennedy, sorry about that, but i don't know why the warning on the file, i have uploaded it before and been downloaded with no warning from anyone, anyway i understand your position and really appreciate your intentions to help.

    Regards

  12. #12
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Thank you daddylonglegs, is no way to give =1st,=2nd,=3d,=4th and not just = if it's equal to any of the other three values?

  13. #13
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Hi newdoverman, sorry about that, but i don't know why the warning on the file, i have uploaded it before and been downloaded with no warning from anyone, anyway i understand your position and really appreciate your intentions to help.

    Regards

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Quote Originally Posted by score View Post
    ......is no way to give =1st,=2nd,=3d,=4th and not just = if it's equal to any of the other three values?
    Yes, that what it does - the formula returns 1st, 2nd, 4rd or 4th as previously but it will also give you an = with that, e.g. =1st, if there are matching values.

    Try it out and see if it does what you want........
    Last edited by daddylonglegs; 12-15-2014 at 04:27 PM.

  15. #15
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Way to go daddylonglegs, wonderful, thank you very much, it does what iwas lookin for, Cheers!!!
    Quote Originally Posted by daddylonglegs View Post
    Yes, that what it does - the formula returns 1st, 2nd, 4rd or 4th as previously but it will also give you an = with that, e.g. =1st, if there are matching values.

    Try it out and see if it does what you want........

  16. #16
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Modify formula to also return =1st, =2nd, =3rd, =4th

    Thanks to everyone who helped me on this thread, really appreciated!!!

+ 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. Replies: 11
    Last Post: 12-15-2014, 01:05 PM
  2. Excel 2003 formula - modify one cell, another cell track the modify date
    By baby0596cw in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-06-2014, 12:55 PM
  3. [SOLVED] Modify If formula to return N/A if value is Negatitve value
    By SVTF in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-26-2014, 09:12 PM
  4. Replies: 8
    Last Post: 05-14-2013, 12:36 AM
  5. [SOLVED] Modify formula to return the highest value
    By score in forum Excel General
    Replies: 2
    Last Post: 12-16-2012, 04:51 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