+ Reply to Thread
Results 1 to 3 of 3

Matching Column B with A, and then sorting B with its expanded selection.

  1. #1
    Registered User
    Join Date
    05-30-2004
    Posts
    63

    Matching Column B with A, and then sorting B with its expanded selection.

    I have to sets of data.

    The first set is just a bunch of IDs.

    The second set is the same set of IDs and other data related to each ID.

    But the second set of IDs is not in the same order as the first set.

    So how do I get the second set to match up in the same order as the first set and also sort the items related to it?

    So, here is an example:
    Screen Shot 2017-02-08 at 20.10.47.png

    I need to get from that to the follwing:

    Screen Shot 2017-02-08 at 20.11.38.png

    Anyone know the simplest way to do this, keeping in mind that the 2nd set has to be sorted along with its relations?

    JH
    Using Excel for Mac
    But mostly use Google Sheets

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Matching Column B with A, and then sorting B with its expanded selection.

    Suggest using the VLOOKUP function.

    e.g in F2 type

    =VLOOKUP(A2,C:D,1,0)

    and in G2

    =VLOOKUP(A2,C:D,2,0)
    Martin

  3. #3
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Matching Column B with A, and then sorting B with its expanded selection.

    Highlight columns C and D and sort

+ 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] Lock table column name when formula is expanded horizontally
    By iwacky in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2015, 09:07 AM
  2. [SOLVED] Delete Worksheet Row By Matching Selection in a Multi Column ListBox
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2013, 11:49 PM
  3. [SOLVED] sort a column with expanded selection - issue with merged cells.
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 11:33 AM
  4. [SOLVED] Sorting by column issues with expanded selection
    By Abuba3000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2013, 12:51 PM
  5. [SOLVED] Macro to do expanded sort based on column M
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2011, 09:02 AM
  6. Replies: 5
    Last Post: 07-18-2011, 05:58 AM
  7. Replies: 14
    Last Post: 04-07-2006, 08:52 AM

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