Originally Posted by
daddylonglegs
Really?
What sort of "numbers" do you have in your range? Assuming you have only integers in B1:B163 then if you select that range, with B1 active cell, and use the formula
=MOD(B1,2)
and apply red formatting then all your odd numbers will be highlighted in red. Do you want me to post an example spreadsheet?
Excel Help Quote:
MOD
See Also
Returns the remainder after number is divided by divisor. The result has the same sign as divisor.
Syntax
MOD(number,divisor)
Number is the number for which you want to find the remainder.
Divisor is the number by which you want to divide number.
Any positive int. /2 will have a remainder of 1 if its odd, and 0 if its even.
The formula
should have returned 0 or 1 in each cell but didn't. ?????????
A couple of weeks ago I didn't know anything about Excel, now I know very little. The code with the the condition(<>) of doesn't equal zero worked right away. ?????
Bookmarks