+ Reply to Thread
Results 1 to 31 of 31

how to concatenate AND show ranking formulas

  1. #1
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    how to concatenate AND show ranking formulas

    Hi,
    I feel sure that someone can give me an example to solve my problem:
    I want to rank as per example AND also concatenate the names.

    I have made up a small example of what I mean, please someone give me an example as I am really struggling here.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Excel 2019 or something newer?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    office 365 I believe

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    OK - please check and then update your forum profile.

  5. #5
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    Done, Thanks Ali

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Try this:

    =LET(s,SORTBY(A2:E5,E2:E5,-1),r,SEQUENCE(ROWS(s),,1,1),"Rank "&r&" = "&INDEX(s,,1)&" "&INDEX(s,,2)&" "&INDEX(s,,5))
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    Another option
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    WOW, Ali, that just blew me away, been trying for days to do what you have done in minutes.
    Would you be able to put this into col F for me as per the example?

    Thanks so much.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    What do you mean?

    In F2 copied down:

    =RANK(E2,$E$2:$E$5)

    ???

    Or:

    ="Rank "&RANK(E2,$E$2:$E$5)&" = "&A2&" "&B2&" "&E2
    Last edited by AliGW; 08-15-2023 at 09:57 AM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Or use Fluff's without the SORT:

    =BYROW(CHOOSECOLS(A2:E5,1,2,5),LAMBDA(br,TEXTJOIN(" ",,"Rank",RANK(TAKE(br,,-1),E2:E5),"=",br)))

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    If you want it sorted as you originally showed, a slight tweak to my suggestion if you have more than 9 rows
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Or:

    =LET(s,A2:E5,r,BYROW(s,LAMBDA(r,RANK(TAKE(r,,-1),E2:E5))),"Rank "&r&" = "&INDEX(s,,1)&" "&INDEX(s,,2)&" "&INDEX(s,,5))

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Attached Files Attached Files
    Last edited by AliGW; 08-15-2023 at 11:44 AM. Reason: Correct workbook now attached.

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    This formula does exactly the same as the previous formulas in post 11 & post 12:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    Or a little bit shorter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    This formula does exactly the same as the previous formulas in post 11 & post 12:
    No, it doesn't, Hans - they do the same as posts #6 and #7. The sorting aspect is no longer required - the OP's workbook was misleading.

  16. #16
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    I see no difference in the result between the formulas in posts 6 and 7 and in posts 11 and 12.
    All formulas put rank 1 at the top.

    The formulas in posts 11 and 12 - contrary to what is said - do not show the result in the original order.
    [If you need the original order in that case only this suffice: =LET(v,E2:E13,"Rank "&RANK(v,v)&" = "&A2:A13&" "&B2:B13&" "&v)]

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Sorry - not post #11, but post#12 DOES show the result in the original order.

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    F
    G
    1
    Ranking
    2
    Rank 2 = Elvis Presley 23 =LET(s,A2:E5,r,BYROW(s,LAMBDA(r,RANK(TAKE(r,,-1),E2:E5))),"Rank "&r&" = "&INDEX(s,,1)&" "&INDEX(s,,2)&" "&INDEX(s,,5))
    3
    Rank 3 = Elton John 18
    4
    Rank 4 = Clint Eastwood 4
    5
    Rank 1 = John Wayne 66
    Sheet: Sheet1

  18. #18
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    In that case there is wrong Excel file attached in Post #12.

    Attached Excel file Post #12:
    Attached Images Attached Images

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    You're right about that! I've just changed it. Thanks.

  20. #20
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    Hi all,
    Been at work and only just had chance to look at the replies, Thanks to all for offering a solution they are all great.
    Can someone please look at my example shaded in yellow on the attached SS. This is ideally how I want the result to look.
    Not sure how to deal with the issue of having more than one answer showing the same visits though.
    Sure you guys know how to solve this, that`s why this is the No site for Excel

    Thanks in advance

    Tony
    Attached Files Attached Files

  21. #21
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Why did you ask for the convoluted concatenation when in fact you wanted the results in a table???

    Is this it now, or are you going to change the requirements again?

  23. #23
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    This formula takes into account that the rank number can be equal:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    Sorry, Ali, my bad.
    I should have been more clearer with my problem
    I do really appreciate any help given

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,813

    Re: how to concatenate AND show ranking formulas

    Check out HD's offerings above.

  26. #26
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    I do really appreciate any help given
    Did you try my suggestion in post#21?

  27. #27
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    @Fluff your formula in Post 21 returns always the numbers 1,2,3,4 and 5.
    Also when the rank is equal.

    My formula in post 23 returns the real rank number.

    @Tony Is this what you want?

    If so, please consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.

  28. #28
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    @Fluff your formula in Post 21 returns always the numbers 1,2,3,4 and 5.
    Also when the rank is equal.
    Very good point, didn't think of that.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  29. #29
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: how to concatenate AND show ranking formulas

    If I wanted to slightly change the results to show the top 10 instead of the top 5 what would I need to change? Would it be the 5 at the end of the formula to 10?

    Thanks again all for the fantastic help I have received

  30. #30
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: how to concatenate AND show ranking formulas

    Would it be the 5 at the end of the formula to 10?
    That's right.

  31. #31
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: how to concatenate AND show ranking formulas

    You are Welcome!

    Thanks for the feedback and rep . Glad to have helped.

+ 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. Chart to show Ranking Change
    By jp16 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-06-2018, 12:28 PM
  2. [SOLVED] Using formulas show the ranking wise top products qty month and status wise
    By Chinnavenky in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2016, 02:01 AM
  3. [SOLVED] Ranking Formula to show the top 25 from a list of 1000 - Any thoughts
    By JJFletcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2016, 04:27 PM
  4. Linked Ranking Formulas
    By SJB777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2014, 05:08 AM
  5. Ranking formulas
    By Samanthaffy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2014, 04:49 PM
  6. [SOLVED] Need Formulas to Hide Partial Concatenate Data and Help Determining Two Other Formulas
    By Mattdim805 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-13-2013, 04:11 PM
  7. Ranking Formulas
    By SJB777 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2013, 05:41 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