亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
Sorting in Excel by row and by column names
Sorting data in custom order (using a custom list)
Home Software Tutorial Office Software Excel: sort by row, by column names and in custom order

Excel: sort by row, by column names and in custom order

Jun 01, 2025 am 09:03 AM

In this article I will demonstrate how to sort Excel data by multiple columns, by column names in alphabetical order, and by values in any row. Additionally, you will learn how to sort data in unconventional ways, when sorting alphabetically or numerically does not suffice.

I assume everyone is familiar with sorting by column alphabetically or in ascending/descending order. All you need to do is click the A-Z or Z-A buttons located on the Home tab in the Editing group and on the Data tab in the Sort & Filter group:

Excel: sort by row, by column names and in custom order

Nevertheless, the Excel Sort feature offers numerous options and capabilities that are not immediately apparent but can prove incredibly useful:

Sorting by multiple columns ----------------------------

Now I will illustrate how to sort Excel data by two or more columns. I will demonstrate this using Excel 2010 because that’s the version installed on my computer. If you’re using another version of Excel, you should still be able to follow along without difficulty since the sorting features are largely identical in Excel 2007 and Excel 2013. You might notice slight differences in color schemes and dialog layouts, but nothing significant. Let’s proceed...

  1. Click the Sort button on the Data tab or Custom Sort on the Home tab to open the Sort dialog.

  2. Next, click the Add Level button as many times as the number of columns you wish to use for sorting: Excel: sort by row, by column names and in custom order

  3. From the "Sort by" and "Then by" dropdown lists, choose the columns you want to sort your data by. For instance, you're planning a vacation and have a list of hotels provided by a travel agency. You intend to sort them first by Region, then by Board basis, and finally by Price, as shown in the screenshot: Excel: sort by row, by column names and in custom order

  4. Click OK and you'll achieve these results:

    • First, the Region column is sorted alphabetically.
    • Second, the Board basis column is sorted, placing all-inclusive (AL) hotels at the top of the list.
    • Lastly, the Price column is sorted, from lowest to highest.

    Excel: sort by row, by column names and in custom order

Sorting data by multiple columns in Excel is straightforward, isn’t it? However, the Sort dialog includes additional features. Later in this article, I will show you how to sort by row rather than column and how to rearrange data in your worksheet alphabetically based on column names. You’ll also learn how to sort your Excel data in non-standard ways when sorting alphabetically or numerically doesn’t apply.

Tip. If your values include both text and numeric characters, refer to How to sort mixed numbers and text in Excel.

Sorting in Excel by row and by column names

I imagine that in about 90% of cases when sorting data in Excel, you sort by values in one or several columns. Occasionally, though, we encounter complex datasets where we need to sort by row (horizontally), meaning rearranging the order of columns from left to right based on column headers or values in a specific row.

For instance, you have a list of cameras provided by a local retailer or downloaded online. The list includes various features, specifications, and prices like this:

Excel: sort by row, by column names and in custom order

You need to sort the cameras based on parameters that matter most to you. As an example, let’s sort them by model name.

  1. Select the range of data you wish to sort. If you want to rearrange all the columns, you can simply select any cell within your range. We can’t do this for our data because Column A lists different features and we want it to stay in place. Thus, our selection begins with cell B1: Excel: sort by row, by column names and in custom order

  2. Click the Sort button on the Data tab to open the Sort dialog. Notice the "My data has headers" checkbox in the upper-right part of the dialog; you should uncheck it if your worksheet lacks headers. Since our sheet has headers, we leave the tick and click the Options button. Excel: sort by row, by column names and in custom order

  3. In the opening Sort Options dialog under Orientation, choose Sort left to right, and click OK. Excel: sort by row, by column names and in custom order

  4. Then select the row by which you want to sort. In our example, we select Row 1 that contains the camera names. Ensure you have "Values" selected under Sort and "A to Z" under Order, then click OK. Excel: sort by row, by column names and in custom order

    The outcome of your sorting should resemble this:

    Excel: sort by row, by column names and in custom order

I understand that sorting by column names holds limited practical value in our scenario and we did it solely for illustrative purposes so you could grasp how it functions. Similarly, you can sort the list of cameras by size, imaging sensor, sensor type, or any other feature crucial to you. For instance, let’s sort them by price.

What you do is follow steps 1 - 3 as outlined above and then, on step 4, instead of Row 2, you select Row 4 that lists retail prices. The result of sorting will appear like this:

Excel: sort by row, by column names and in custom order

Please note that more than just one row has been sorted. Entire columns have been moved to ensure the integrity of the data. In essence, what you see in the screenshot above is the list of cameras sorted from least expensive to most expensive.

I hope this gives you a better understanding of how sorting rows works in Excel. But what happens when we deal with data that doesn’t sort well alphabetically or numerically?

Sorting data in custom order (using a custom list)

If you wish to sort your data in a custom order other than alphabetical, you can utilize the built-in Excel custom lists or create your own. With built-in custom lists, you can sort by days of the week or months of the year. Microsoft Excel provides two types of such custom lists - with abbreviated and full names:

Excel: sort by row, by column names and in custom order

Let’s say we have a list of weekly household chores and we want to sort them by due date or priority.

Excel: sort by row, by column names and in custom order

  1. Begin by selecting the data you want to sort and then opening the Sort dialog just as we did when sorting by multiple columns or by column names (Data tab > Sort button).

  2. In the Sort by box, pick the column you wish to sort by—in our case, it’s the Day column since we aim to sort our tasks by the days of the week. Then choose Custom List under Order as shown in the screenshot: Excel: sort by row, by column names and in custom order

  3. In the Custom Lists dialog box, select the appropriate list. Given that we have abbreviated day names in the Day column, we opt for the corresponding custom list and click OK. Excel: sort by row, by column names and in custom order

    And there you have it! Our household tasks are now sorted by the day of the week:

    ![](/uploads/20250601/1748

The above is the detailed content of Excel: sort by row, by column names and in custom order. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the meeting time limit for the free version of Teams? What is the meeting time limit for the free version of Teams? Jul 04, 2025 am 01:11 AM

MicrosoftTeams’freeversionlimitsmeetingsto60minutes.1.Thisappliestomeetingswithexternalparticipantsorwithinanorganization.2.Thelimitdoesnotaffectinternalmeetingswhereallusersareunderthesameorganization.3.Workaroundsincludeendingandrestartingthemeetin

how to group by month in excel pivot table how to group by month in excel pivot table Jul 11, 2025 am 01:01 AM

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

How to Fix AutoSave in Microsoft 365 How to Fix AutoSave in Microsoft 365 Jul 07, 2025 pm 12:31 PM

Quick Links Check the File's AutoSave Status

How to change Outlook to dark theme (mode) and turn it off How to change Outlook to dark theme (mode) and turn it off Jul 12, 2025 am 09:30 AM

The tutorial shows how to toggle light and dark mode in different Outlook applications, and how to keep a white reading pane in black theme. If you frequently work with your email late at night, Outlook dark mode can reduce eye strain and

how to repeat header rows on every page when printing excel how to repeat header rows on every page when printing excel Jul 09, 2025 am 02:24 AM

To set up the repeating headers per page when Excel prints, use the "Top Title Row" feature. Specific steps: 1. Open the Excel file and click the "Page Layout" tab; 2. Click the "Print Title" button; 3. Select "Top Title Line" in the pop-up window and select the line to be repeated (such as line 1); 4. Click "OK" to complete the settings. Notes include: only visible effects when printing preview or actual printing, avoid selecting too many title lines to affect the display of the text, different worksheets need to be set separately, ExcelOnline does not support this function, requires local version, Mac version operation is similar, but the interface is slightly different.

How to Screenshot on Windows PCs: Windows 10 and 11 How to Screenshot on Windows PCs: Windows 10 and 11 Jul 23, 2025 am 09:24 AM

It's common to want to take a screenshot on a PC. If you're not using a third-party tool, you can do it manually. The most obvious way is to Hit the Prt Sc button/or Print Scrn button (print screen key), which will grab the entire PC screen. You do

How to change your name in Microsoft Teams? How to change your name in Microsoft Teams? Jul 03, 2025 am 02:01 AM

To change the name in Microsoft Teams, take different steps based on the account type. For personal Microsoft accounts, you can go to account.microsoft.com to modify your name and sync it to Teams; for work or school accounts, the administrator needs to update it in the Microsoft 365 Admin Center; in addition, the display name can be temporarily changed before joining the meeting, but it will only take effect for the current meeting. All changes may take hours to sync and may be due to cache displaying old names in chat history or meeting playback.

Where are Teams meeting recordings saved? Where are Teams meeting recordings saved? Jul 09, 2025 am 01:53 AM

MicrosoftTeamsrecordingsarestoredinthecloud,typicallyinOneDriveorSharePoint.1.Recordingsusuallysavetotheinitiator’sOneDriveina“Recordings”folderunder“Content.”2.Forlargermeetingsorwebinars,filesmaygototheorganizer’sOneDriveoraSharePointsitelinkedtoaT

See all articles