+ Reply to Thread
Results 1 to 6 of 6

Maintaining Column Relationships During Sorting

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    5

    Maintaining Column Relationships During Sorting

    Yes, I have checked other threads and they do not answer my question. I know that I can use Ctrl+A then sort and the information in the rows should stay together, however for some reason now 2 of the columns are not staying with their rows. I have over 1200 rows and that I need to have stuck together. Now that I am in a new year, I am starting a new spreadsheet for the information and once again the information in these last 2 columns are not following (the columns in question are the ones in the red border in the picture). The 4 columns to the left all stay together whenever I sort them but the right 2 just stay in that position.

    My question:

    Is there a way to lock the information in the rows together actively and how do I do it? I did not make this spreadsheet, nor am I proficient in excel. What I don't understand is why in the previous version would these columns work during my sorting and all the sudden stop. I am adding information to this daily and all I want to do is be able to sort a column and have the rows stick together. I just want to be able to add data and be able to sort it while knowing that the data in the rows will always be locked together without having to go through a bunch of key strokes to ensure the cells stay together. I feel like this is a simple task for a program as robust as excel, however I can find nothing that helps me short of always having to perform extra key combinations prior to a sort.

    Also, I will not be sorting from the last 2 columns, I just want the relevant information to be locked to the rest of the data in that row.

    ExcelPic.jpg
    Last edited by Jaslr83; 01-05-2016 at 11:51 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Maintaining Column Relationships During Sorting

    From the image you posted, it appears that the two problem columns are not part of the filtered data range.
    CTRL+A does not always select what you want, although it usually does a pretty good job.

    I'd suggest:
    • turn off the filtering
    • manually select the range you want included in the filter/sort data
    • turn filtering on
    • sort your data.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Maintaining Column Relationships During Sorting

    This is hard to explain. Before, and I am talking like 2 weeks ago when I was using last years data with over 1200 rows, I could sort any of the first 4 columns of data (last name, first name, company, and date) and the contractor and visitors columns would sort as well. I could sort by last name, the last 2 columns would move, then i could sort by first name and the contractor/visitor would sort accordingly, then company, then date, etc. As far as I recall those last 2 columns the data always traveled with the row of data it was input with.

    I just want to be able to put new data into rows and NOT have to always do the Ctrl+A and sort. If possible, when I enter new data, I want that row to always be locked together so that when I sort it from any of the first 4 columns that it maintains its relationship.

    Did that explain what I am after any better?

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Maintaining Column Relationships During Sorting

    If the issue is that new rows added to the data do not get included in the sorting/filtering process, then....
    • convert your data to an Excel Table
    ...Select the current data list
    ...Home.Format_as_Table (follow the prompts)

    Excel will treat the table as a cohesive data set, automatically expanding/contracting to accommodate the available data. Now, sorting/filtering will always include all of the data.

    Does that help?

  5. #5
    Registered User
    Join Date
    01-05-2016
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Maintaining Column Relationships During Sorting

    I am getting an error about having to remove the autofilter

  6. #6
    Registered User
    Join Date
    01-05-2016
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Maintaining Column Relationships During Sorting

    I removed the filter and did what you said, now it works like I want it to. Thank you very much for your help.

+ 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. Sorting while maintaing relationships
    By jlackey4740 in forum Excel General
    Replies: 13
    Last Post: 01-30-2015, 06:35 PM
  2. Sorting excel alphabetically maintaining spaces
    By 7ClouD in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 06:03 PM
  3. maintaining one data point in a different color after sorting
    By NYC_13 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-28-2014, 12:52 PM
  4. Sorting while maintaining subtotals
    By embf21 in forum Excel General
    Replies: 1
    Last Post: 05-07-2013, 05:11 PM
  5. Maintaining Links across worksheets when sorting
    By theduders in forum Excel General
    Replies: 0
    Last Post: 09-15-2010, 01:58 PM
  6. Sorting while preserving relationships in rows
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2010, 01:30 PM
  7. Replies: 1
    Last Post: 10-12-2005, 04:05 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