How to filter even or odd numbers in Excel?

Sometimes you may need to filter all even numbers from a column and hide all odd numbers, and vice versa. Here is an easy way to filter the even or odd numbers from a selected column easily.

Kutools for Excel: add 120 new features in Excel. Save one hour every day.
Classic Menu for Office: brings back classic menus to Office 2010 and 2013 (includes Office 365).
Office Tab: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.
arrow-bigarrow-big
Normal numbers Odd numbers Even numbers

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

You can follow these steps to filter all even numbers and hide all odd numbers in Column A.

Step 1: In a blank column, for example the Column C, enter the formula of =ISEVEN(A1) in Cell C2, and press the Enter key.

This formula will identify the number in Cell A1 is an even number or not. If the number in Cell A1 is even, it returns True, otherwise False.

Step 2: Select the Column C, and click the Home >> Fill >> Down to copy this formula to the entire Column C.

Now it fill Column C with formula, and display False and True, as following screen shot shows:

Step 3: Select the Column C, and click the Data >> Filter.

Step 4: Click the Arrow in Column C, uncheck (Select All) item, and check TURE in the filter box. See the following screen shot:

Step 5: Click OK.

Now it filters all even numbers in Column A as soon as possible.

Note:

  • If you want to filter the odd numbers, you can check the FALSE item in Step 4.
  • You can also apply the formula of =ISODD(A1) to identify the number in Column A are odd or not, and then filter them.
  • The formula of =MOD(A1,2) is also available to determine the number in Cell A1 is even or not. If the number in Cell A1 is even, it returns 0, otherwise 1 for odd numbers.

Related Article:

How to filter every other row (even /odd rows) in Excel?



Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase

Comments  

0#RAYMOND BUTLER2014-05-10 17:00
Saturday, May 10, 2014

I have tried unsuccessfully to create an Excel function to complete the following task for a stated cell value:

IF(AND(A1=EVEN,A1>0,A10,A1
Reply | Reply with quote | Quote
+2#Joey Gomes2014-06-10 12:45
You are making a mistake here, it should look like this:
=IF(AND(ISEVEN(A1),A1>0),A10,A1)

To be sure that the value of A1 is used do it like this:
=IF(AND(ISEVEN(VALUE(A1)),VALUE(A1)>0),A10,A1)
Reply | Reply with quote | Quote

Add comment


Security code
Refresh