Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

Use the ISODD and COLUMN functions to determine odd columns

In this example, we want to determine whether a column’s index in a range is even or odd, and then fill each odd row with the character “X”. Use the ISODD function in combination with IF and COLUMN() to get the result shown in the image below. If this function is not available and returns an error, install and load the Analysis
ToolPak add-in.

To determine odd columns:

  1. Select cells A1:E11 and type the following formula: =IF(ISODD(COLUMN()),”X”,”").
  2. Press Ctrl+Enter.

Use the ISODD and COLUMN functions to determine odd columns

To mark even columns, type the following formula: =IF(ISEVEN(COLUMN()),”X”,”").

This tip is compatible with Excel 97, 2000, 2003 and 2007.

Use the ISODD and COLUMN functions to determine odd columns
  1. How to Use the ISODD and ROW functions to determine odd rows
  2. Use the ISEVEN and ISODD functions to check if a number is even or odd
  3. Use the EVEN and ODD functions to determine the nearest even/odd value
  4. How to Use the WEEKNUM function to determine the week number
  5. Use the EOMONTH function to determine the last day of a month

Leave a Reply