How to Use the ROW function to mark every other row in Excel
Sometimes it is necessary to mark every other row in a worksheet. Several functions can be used in combination to do this. Use the MOD, ROW, and IF functions together as described below.
To mark every other row:
- Select cells A1:A10 and type the following formula:=IF(MOD(ROW(),2),”XXX”,” “).
- Press Ctrl+Enter.
Please note that If every other column has to be marked, use the following formula: =IF(MOD(COLUMN(),2),”XXX”,” “).
This tip is compatible with Excel 97, 2000, 2003 and 2007.
