A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thanks a bunch for the simplified formulas!
However, it's still not working for me (Excel 2003 version 11.8328.8329). Once I plug the formula into the data validation dialogue (under "Custom"), it still gives me the error.
Interestingly, once I remove ISEVEN or ISODD from the formula, the dialogue does not produce an error message.
I'll try it in Excel 2007 when I have the chance tomorrow.
The ISODD/ISEVEN functions are part of the Analysis ToolPak add-in in excel versions 2003 and earlier. Since the ATP is a separate file that's why you get the error.
These functions were added to the Excel application in Excel 2007 so you should not get the error in that version (and later).
If you need something that is backward compatible (will work in any version of Excel) then you can use something like this.
For ISODD:
MOD(cell_ref,2)>0
For ISEVEN:
MOD(cell_ref,2)=0
--
Biff
Microsoft Excel MVP