How to sort rows by odd or even numbers in Excel? (2024)

It is easy for us to sort the numbers by ascending or descending order in Excel, but if I have a long list of numbers, and now I want to sort them by odds or evens. That is to say, all odd or even numbers are sorted together as following screenshots shown. Is it possible for us to sort by even or odd numbers in Excel?

How to sort rows by odd or even numbers in Excel? (1)How to sort rows by odd or even numbers in Excel? (2)How to sort rows by odd or even numbers in Excel? (3)

Sort rows by odd or even numbers with a helper column

Sort rows by odd or even numbers with Kutools for Excel

Sort rows by odd or even numbers with a helper column

To sort the list of numbers by odds or evens, you need to create a helper column to identify the odd or even numbers, and then apply the Sort function.

1. Next to the numbers, please enter this formula =ISODD(A2) in a blank cell, see screenshot:

How to sort rows by odd or even numbers in Excel? (4)

2. Then drag the fill handle over to the cells that you want to contain this formula, the TRUE indicates odd numbers and FALSE indicates even numbers, see screenshot:

How to sort rows by odd or even numbers in Excel? (5)

3. Then you can sort the column B that you are created by clicking Data > Sort Smallest to Largest or Sort Largest to Smallest as you want.

How to sort rows by odd or even numbers in Excel? (6)

4. And in the Sort Warning dialog, check Expand the selection option, see screenshot:

How to sort rows by odd or even numbers in Excel? (7)

5. Then click Sort button and the even numbers has been sorted together and then followed by the odd numbers if you select Sort Smallest to Largest icon. See screenshot:

How to sort rows by odd or even numbers in Excel? (8)

Notes:

1. If you want to sort all odd numbers before the even numbers, you just need to select Sort Largest to Smallest in Step 3.

2. After finishing the sorting, you can delete the helper column as you need.

Sort rows by odd or even numbers with Kutools for Excel

Here, I can talk about an easy tool – Kutools for Excel, with its Advanced Sort feature, you can quickly sort all odd numbers together and followed even numbers or vice versa.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Go to DownloadFree Trial 30 daysPurchasePayPal / MyCommerce

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to sort.

2. Then click Kutools Plus> Sort >Advanced Sort, see screenshot:

How to sort rows by odd or even numbers in Excel? (9)

3. In the Advanced Sort dialog box, click the column name that you want to sort by under Column section, and then choose Odd and even number from the Sort On section, at last specify the sort order (A to Z stands for from even to odd numbers, and Z to A stands for from odd to even numbers), see screenshot:

How to sort rows by odd or even numbers in Excel? (10)

4. And then click OK, and you will get the following results:

Original dataSort from even to odd numbersSort from odd to even numbers
How to sort rows by odd or even numbers in Excel? (11)How to sort rows by odd or even numbers in Excel? (12)How to sort rows by odd or even numbers in Excel? (13)How to sort rows by odd or even numbers in Excel? (14)How to sort rows by odd or even numbers in Excel? (15)

Click to know more about this Advanced Sort feature.

Download and free trial Kutools for Excel Now !

Demo: Sort rows by odd or even numbers with Kutools for Excel

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Related articles:

How to sort email address by domain in Excel?

How to sort data by the most frequent value in Excel?

How to sort or filter data by strikethrough in Excel?

How to sort rows to put the blank cells on top in Excel?

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution |Generate Code |Create Custom Formulas|Analyze Data and Generate Charts |Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates |Delete Blank Rows |Combine Columns or Cells without Losing Data | Round without Formula...
Super Lookup: Multiple Criteria VLookup| Multiple Value VLookup| VLookup Across Multiple Sheets | Fuzzy Lookup....
Advanced Drop-down List: Quickly Create Drop Down List |Dependent Drop Down List |Multi-select Drop Down List....
Column Manager: Add a Specific Number of Columns | Move Columns | Toggle Visibility Status of Hidden Columns | ...
Featured Features: Grid Focus |Design View | Big Formula Bar ||Resource Library (Auto Text)|Date Picker|Combine Worksheets |Encrypt/Decrypt Cells |Send Emails by List |Super Filter | Special Filter (filter bold/italic/strikethrough...)...
Top 15 Toolsets: 12 Text Tools (Add Text, Remove Characters, ...) | 50+ Chart Types (Gantt Chart, ...) | 40+ Practical Formulas (Calculate age based on birthday, ...) | 19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...) | 12 Conversion Tools (Numbers to Words, Currency Conversion, ...) | (Advanced Combine Rows, Split Cells, ...) | ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...

How to sort rows by odd or even numbers in Excel? (16)

Read More... Free Download...

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Read More... Free Download...

How to sort rows by odd or even numbers in Excel? (2024)
Top Articles
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 6361

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.