Hi David ,
As far as I can see , your formula differs from Misra's only in the parentheses ! You have one in the wrong place , and you don't have two of them where they are needed. The problem is that when a formula is being developed , we tend to think in terms of Excel formulae , when we should be thinking in terms of the logic required to solve the problem ; I do not know where and why you are using the logic that you say is correct , but from what I have understood , it is :
1. If both numbers are EVEN - Action 1
2. If both numbers are ODD - Action 2
3. If number in column A is greater than the number in column B - Action 3
4. Or else - Action 4
Clearly , the rules are in order of priority , so that if a cell in column A has the number 11 , and the corresponding cell in column B has the number 99 , it is rule 2 which will decide the outcome , and not rule 4.
If the above logic is correct , then the first draft of a formula would be :
=IF(AND(ISEVEN(A10),ISEVEN(B10)),1,IF(AND(ISODD(A10),ISODD(B10)),2,IF(A10>B10,3,4)))
The above formula may appear to be very simple and not 'worthy' of an expert in Excel , but the point is that when a problem needs a solution , that solution should be the simplest one possible , something which is easily verified , and something which can be explained even to a layman , provided of course that the subject itself is explainable ; I don't think a subject like Relativity can be explained in layman's language , but the subject in question is itself quite simple ; introducing things like SUMPRODUCT and MOD and CHOOSE looks good , but I doubt if it adds value.
Narayan