+ Reply to Thread
Results 1 to 7 of 7

Sort Worksheet to Match First Column

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Sort Worksheet to Match First Column

    Hello again. Attached a workbook for this one. I have data in Column A (green). The data in column C matches Column A. I need to re-sort the worksheet, from columns B:Z to line up with the Data in column A. Either by formula or VBA. I've been trying to use MATCH formulas but I'm not making much headway with them. Any thoughts? Please and Thank you.

    ***Note. There will be blanks/gaps. This is part of what I'm trying to find out. What I have descriptions for/what I need descriptions for. Column A has 927 rows. Columns B:Z have 489 rows***
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Sort Worksheet to Match First Column

    I did this on another sheet using INDEX/MATCH. See Sheet2.

    For some reason it was not matching the value in A to C. I had to use the VALUE function on the values in A to get a match. It appears that both columns have text values but they are not formatted as Text, so they must have been imported from another application.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Sort Worksheet to Match First Column

    This looks great. And the results are exactly what I'm looking for...just having a hard time figuring out how you did it. I keep over-riding data if I try to apply the formula. So then I tried working in reverse. A sheet full of formulas....and I manage to over-ride those. I feel like the answer really simple and I'm missing it.

  4. #4
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Sort Worksheet to Match First Column

    Oh and thank you VERY much. Greatly Appreciated.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Sort Worksheet to Match First Column

    You are very welcome.

    So here's how it works. Sheet2 has column A which just refers to column A of Sheet1, for easy reference of that data. (It could have been omitted.)

    Then ever other column has a formula like this:

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


    The MATCH portion takes the value from column A and then finds the matching value in column C of Sheet1. Then it takes that row and retrieves the corresponding value for the appropriate column.

  6. #6
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Sort Worksheet to Match First Column

    I see where I was going wrong...kept trying to do everything on one sheet. Works great now. Thanks again for the help.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Sort Worksheet to Match First Column

    Quickest way to do it was using formulas on a second sheet. Certainly not the only possibility.

+ 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. Sort [to match columns with ID in first column]
    By rwhalls in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2018, 12:54 PM
  2. Replies: 2
    Last Post: 04-30-2013, 08:09 AM
  3. Replies: 5
    Last Post: 04-17-2013, 01:14 PM
  4. Merge multiple worksheet to summary worksheet based on column header value match
    By rafiomeon in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-23-2012, 03:37 AM
  5. Replies: 1
    Last Post: 06-26-2006, 03:00 AM
  6. Can I sort a column of #s Rt to left? in a worksheet
    By Concha94 in forum Excel General
    Replies: 1
    Last Post: 06-01-2006, 02:20 PM
  7. [SOLVED] Index? Match? Function to sort and return value fr diff column in
    By Smurfette in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2006, 12:50 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