Forum Discussion

debcardillo's avatar
debcardillo
Copper Contributor
Jul 17, 2024

Microsoft Office 365 - Sorting data

I have a very large Excel spreadsheet, it has 16 columns and over 13,000 rows.  I would like to know the easiest way to sort by column headers.

 

I have tried to format it as a table but Excel stops responding.

 

Thank you

1 Reply

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    debcardillo 

    When dealing with a very large Excel spreadsheet, sorting data by column headers without converting it to a table is a viable option to avoid performance issues. Here are a few steps to efficiently sort your data in Excel without converting it to a table:

    Step-by-Step Guide to Sorting Data

    1. Open the Spreadsheet:
      • Open your Excel spreadsheet that contains the data you want to sort.
    2. Select the Entire Data Range:
      • Click the top-left cell of your data range (e.g., cell A1).
      • Drag your cursor to the bottom-right cell of your data range to select all the cells you want to include in the sort. Alternatively, you can use the keyboard shortcut Ctrl + Shift + End to select the entire data range.
    3. Enable Filter:
      • Go to the Data tab on the Excel ribbon.
      • Click the Filter button in the Sort & Filter group. This will add a drop-down arrow to each column header.
    4. Sort by Column Headers:
      • Click the drop-down arrow in the column header you want to sort by.
      • Select Sort A to Z (for ascending order) or Sort Z to A (for descending order).

    Using Sort Dialog for Multiple Columns

    If you need to sort by multiple columns, you can use the Sort dialog box:

    1. Open the Sort Dialog:
      • With your data range selected, go to the Data tab.
      • Click the Sort button in the Sort & Filter group.
    2. Add Sort Levels:
      • In the Sort dialog box, click Add Level to add the columns you want to sort by.
      • Select the column you want to sort first in the Column drop-down menu.
      • Choose the sort order (A to Z or Z to A) in the Order drop-down menu.
    3. Add Additional Levels:
      • Repeat the process to add additional levels for other columns.
      • For example, if you want to sort by "Column A" first and then by "Column B," add both columns in the order of sorting.
    4. Apply the Sort:
      • Click OK to apply the sort.

    Optimizing Performance

    If your Excel stops responding due to the large data set, here are a few tips to improve performance:

    1. Close Other Applications:
      • Close unnecessary applications and browser tabs to free up system resources.
    2. Increase Excel's Memory Limit:
      • Ensure you are using a 64-bit version of Excel, which can handle larger files better than the 32-bit version.
    3. Disable Add-ins:
      • Disable unnecessary add-ins that might be consuming resources. Go to File > Options > Add-ins, and manage your active add-ins.
    4. Use Manual Calculation Mode:
      • Switch Excel to manual calculation mode to prevent it from recalculating formulas while sorting. Go to Formulas tab > Calculation Options > Manual. Remember to switch it back to automatic after sorting.
    5. Break Down the Data:
      • If feasible, break down your data into smaller chunks and sort each chunk separately.

    By following these steps, you should be able to efficiently sort your large dataset in Excel without converting it to a table and avoid performance issues. The text and steps were edited with the help of AI.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

    Was the answer useful? Mark as best response and Like it!

    This will help all forum participants.

Resources