How to Highlight Odd Number and Even Number by Conditional Format in Excel?

Suppose we have a table of numbers, and we want to highlight odd number and even number by different format settings to distinguish them, in this situation we need to know how to identify odd number and even number. Besides, we need to know how to highlight them by different formats. Actually, excel has a lot of strong functions, user can highlight odd and even number with different formats by Conditional Format function properly. This article will show you the method to identify odd and even number, and the method to highlight them.

Part 1. How to Identify Odd and Even Number in Excel


See below table, odd numbers and even numbers exist. We can use ISODD and ISEVEN functions to identify them. See details below.

Highlight Odd Number and Even Number 1 twice 7

Step 1: Insert a new column next to column A. Then in B1, enter the formula =ISODD(A1).

Highlight Odd Number and Even Number 2

Step 2: Click Enter. Verify that True is displayed in B1 properly. That means A1 value is an odd number.

Highlight Odd Number and Even Number 3

Step 3: Drag the fill handler to fill cells B1:B5.

Highlight Odd Number and Even Number 4

Step 4: Select column B, right click and select Copy, then select column D, right click and select Insert Copied Cells.

Highlight Odd Number and Even Number 5

Step 5: Then column B with formula will be pasted in D column, True or False value is displayed based on value in column C.

Highlight Odd Number and Even Number 6

Step 6: Repeat above step on other columns. Then you can do filter on column B, D etc. to filter odd number or even number and mark them with different colors.

Highlight Odd Number and Even Number 7

Comment:

  1. You can also use ISEVEN function in above steps. This time if value is even number, formula will return True.

Part 2. How to Highlight Odd and Even Number by Conditional Format in Excel


We can identify odd and even number by above method, though we can do filter on each column and then mark them with different colors, the operation is complex and troublesome. So we need a quick and convenient way to highlight them directly.

We still use previous table to do demonstration.

Highlight Odd Number and Even Number 1 twice 7

Step 1: First, select the range you want to do filter. In this case select A1:E5.

Step 2: In ribbon, click Home->Conditional Formatting under Styles.

Highlight Odd Number and Even Number 8

Step 3: Click the arrow button on Conditional Formatting icon to load all sub menus, select New Rule in it.

Highlight Odd Number and Even Number 9

Step 4: In the pops up New Formatting Rule window, in Select a Rule Type panel, select Use a formula to determine which cells to format.

Highlight Odd Number and Even Number 10

Step 5: In Edit the Rule Description panel, in Format values where this formula is true textbox, enter the formula =ISODD(A1).

Highlight Odd Number and Even Number 11

Step 6: After entering the formula, click Format button to specify your cell format for highlighted cells. You can design the format by your demands. In this case, we just mark them with light blue background in cells. In Format Cells, click Fill, select Background Color, then click OK.

Highlight Odd Number and Even Number 12

Step 7: Returns to New Formatting Rule window, see the Preview. Verify that cell is filled with light blue background. Then click OK.

Highlight Odd Number and Even Number 13

Step 8: Verify that all odd numbers are marked with light blue.

Highlight Odd Number and Even Number 14

Step 9: Repeat above steps, set Format values where this formula is true =ISEVEN(A1), then you can also highlight even numbers with other color.

Highlight Odd Number and Even Number 15

 

Related Posts

Filter Data by Column and Sort by Row
filter by column sort by row1

This post will guide you how to use the FILTER function to filter a value by column and then sort data by row in Microsoft Excel. You can use the following formula based on the SORT function in combination with ...

Filter And Transpose Data From Horizontal To Vertical
filter and transpose horizontal to vertical1

This post will show you how to use Filter function and in combination with Transpose function to filter data from horizontal and transpose data as vertical in Microsoft Excel. You can refer to the below general formula based on TRANSPOSE ...

VLOOKUP Formula | Faster Trick with 2 VLOOKUPS
Faster VLOOKUP with 2 VLOOKUPS1

This post will guide you how to use 2 VLOOKUPS function to looking up data entries from a given range of cells in Microsoft Excel. VLOOKUP with 2 lookups can be faster than a single VLOOKUP in certain scenarios. The ...

Extract Unique Items From A List
Extract Unique Items From A List In Excel1

This post will guide you how to extract unique itmes from a given list in Microsoft Excel. How to create a newly formula to get unique values from a range cells in Excel. The unique list of items is the ...

Extract substring In Excel
Extract substring In Excel1

This post will guide you how to use Excel's MID function is a quick and easy way to extract pieces from your text. Use the Excel formula to extract a substring with MID. Note: If you want to extract just ...

How to Use 3D SUM Multiple Worksheets
3D sum multiple worksheets1

To sum a range of numbers is straightforward for most Excel users, but do you know how to establish a 3D reference to total the same range of numerous sheets. In this post, I will present the steps for this ...

Extract all the matches with helper Column
how to extract all matches with helper column1

With Excel's powerful functions IF, INDEX, and MATCH, we can find exactly what you're looking for with a few clicks of the mouse. This step-by-step tutorial will show how easy it is to extract data using these tools and more! ...

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

Sidebar