+ Reply to Thread
Results 1 to 14 of 14

Matching data from Randomly Sorted Names.

  1. #1
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Lightbulb Matching data from Randomly Sorted Names.

    Edit: I'm taking this to the General Forums because I don't know if it requires a formula or not. Maybe we can solve this without a formula, but if you can fix it with a formula, please do so.

    I have three columns. Lets call them A, B and C.

    Column A has a list of 30 students names in random order.
    Column B has the same list of 30 students names in alphabetical order.
    Column C has data about each student in Column B, next to it.

    I need Column B,C to be in the order of Column A.

    Sorting data question.JPG
    Last edited by tektools; 06-09-2020 at 01:18 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching data from Randomly Sorted Names.

    Highlight entire range, go to Data/Sort & Filter, click the ZA/AZ button, follow instructions
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Re: Matching data from Randomly Sorted Names.

    I don't want in Alphabetical order. I want it in the random order of column A

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,772

    Re: Matching data from Randomly Sorted Names.

    Welcome to the forum.

    Select the range A1:C5 | Insert | Table.

    Sorry - ignore - I misread the requirement.
    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.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching data from Randomly Sorted Names.

    oops sorry. Then use INDEX/Match in helper columns

  6. #6
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Re: Matching data from Randomly Sorted Names.

    Could you perhaps write a sample formula for INDEX/MATCH? I couldn't find anything to copy+paste that would work.

  7. #7
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Re: Matching data from Randomly Sorted Names.

    Hi could you please help me out with a simple formula that would do that?

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching data from Randomly Sorted Names.

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching data from Randomly Sorted Names.

    No need to open a new thread for this, you can continue here

    (A mod has closed your other/duplicate thread )

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,772

    Re: Matching data from Randomly Sorted Names.

    Moved to the General section at OP's request.

  11. #11
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Re: Matching data from Randomly Sorted Names.

    I've uploaded an example of the requirements.

    Name+Code stay together. I want these names(codes kept next to them) sorted into the same order as the names in Column A.

    Please view uploaded file.

    Edit: Not sure if this needs a formula or not, but I asked it be moved to General to include formulas as well as other solutions.
    Attached Files Attached Files
    Last edited by tektools; 06-09-2020 at 03:31 PM.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,772

    Re: Matching data from Randomly Sorted Names.

    In B2 copied down:

    =VLOOKUP(A2&"*",$D$2:$E$6,2,0)

  13. #13
    Registered User
    Join Date
    06-09-2020
    Location
    Roswell, Georgia
    MS-Off Ver
    MS Office 365
    Posts
    9

    Re: Matching data from Randomly Sorted Names.

    You're a hero. Thanks so much for the warm welcome. Here, have some rep.

    Now i'm going to spend the rest of my life trying to figure out WHY that crazy formula works . =VLOOKUP(A2&"*",$D$2:$E$6,2,0)

  14. #14
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,772

    Re: Matching data from Randomly Sorted Names.

    Well, the thing is, some of the names in the lookup list don’t match those in column A - they have a hidden trailing space. So, I added the wild card after the lookup value to make it find the matches. Otherwise, it’s a big standard VLOOKUP, so Google that to read up about it and its syntax.

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

+ 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] Matching Sorted Column to names
    By Jhertilus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2018, 08:21 PM
  2. [SOLVED] Distribute names randomly
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-03-2016, 01:47 PM
  3. Replies: 6
    Last Post: 10-21-2014, 12:15 AM
  4. Randomly Pick Names?
    By racefan91 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2014, 02:15 AM
  5. Randomly Assigning Names
    By kevinclark100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 03:36 PM
  6. Replies: 7
    Last Post: 06-15-2011, 04:40 AM
  7. select names randomly
    By jroque in forum Excel General
    Replies: 1
    Last Post: 01-26-2005, 08:40 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