+ Reply to Thread
Results 1 to 12 of 12

Display Name of 1st through Last

  1. #1
    Registered User
    Join Date
    02-28-2024
    Location
    New Jersey, US
    MS-Off Ver
    2019
    Posts
    4

    Display Name of 1st through Last

    Hi

    I have a set of data that from a survey linked to names. I have the formulas to pull the rankings but when there is a tie that occurs, it takes the name twice. Is there a way to have it display both names when it is a tie?
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Display Name of 1st through Last

    in cell K2 use the following formula:

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


    drag across and down

    currently names will be spearated by a <space>. You can change this by changeing the red quotation marks to whatever you would prefer.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    Try:
    PHP Code: 
    =WRAPROWS(TEXTSPLIT(TEXTJOIN("|",,BYROW(B2:I20,LAMBDA(bi,TEXTJOIN("|",,TAKE(SORT(VSTACK($B$1:$I$1,bi),2,-1,TRUE),1))))),"|"),8
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    And, with column and row headings:

    PHP Code: 
    =VSTACK({"Ideal Boss Survey","Highest",2,3,4,5,6,7,8},HSTACK(A2:A20,WRAPROWS(TEXTSPLIT(TEXTJOIN("|",,BYROW(B2:I20,LAMBDA(bi,TEXTJOIN("|",,TAKE(SORT(VSTACK($B$1:$I$1,bi),2,-1,TRUE),1))))),"|"),8))) 

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    Please see Master (TMS) in updated sample workbook.
    Attached Files Attached Files

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

    Re: Display Name of 1st through Last

    None of the suggestions made so far will work in Excel 2019 - they all use functions that exist only in 2024 and 365.

    https://bettersolutions.com/excel/fu...-functions.htm
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    Oops. I didn't check the profile, I just saw the solution from dosydos and went from there

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Display Name of 1st through Last

    Here is solution for older version:
    Attached Files Attached Files
    Never use Merged Cells in Excel

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    Thanks zbor.

    To keep it simple, just add +COLUMN()*EXP(-20) to the first row: =Jeff!B2+COLUMN()*EXP(-20), =Ana!B2+COLUMN()*EXP(-20), =Nick!B2+COLUMN()*EXP(-20), etc. Then fill down. Nothing else has to change. The existing LARGE formulae will be comparing the adjusted values.

    That said, the table could be populated with one formula copied across and down.

    K1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 03-27-2025 at 05:52 AM.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    Updated sample file attached.
    Attached Files Attached Files

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Display Name of 1st through Last

    @zbor: thanks for the +COLUMN()*EXP(-20). In the past, I would have used +COLUMN()/1000000, but I think +COLUMN()*EXP(-20) is more aesthetically pleasing . And thanks for the +rep

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Display Name of 1st through Last

    Quote Originally Posted by TMS View Post
    I would have used +COLUMN()/1000000
    First I've put /10000 but it was still too big.. So I didn't had a time or will for guessing.
    I could use it from now onward too
    Thx for the rep the other day

+ 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] Display prices based on entered and display currency codes
    By NicBKK in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2023, 05:24 AM
  2. [SOLVED] Data does not display the correct output when using Sumifs in the final display
    By sevaa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2019, 04:08 AM
  3. Replies: 3
    Last Post: 10-01-2019, 01:21 AM
  4. Replies: 2
    Last Post: 07-25-2016, 01:27 AM
  5. Replies: 2
    Last Post: 08-29-2015, 10:58 AM
  6. Replies: 1
    Last Post: 01-05-2014, 06:19 PM
  7. Find and display the last occurance in two columns and display related cell
    By willia97 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2012, 08:14 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