Question : greater then formula issue

hy ,
have 2 index match formulas , they return 2 numbers between 1 and 24 ,
formula  compering  which value is greater returns incorrect value
example :
       A      B      C
1   16       4      =A1>B1 will return false   ( formula is evaluating only 1 > 4 , not 16 > 4 )
                        =MIN(A1.B1) will return 0

if 16 and 4 are entered manually then formula returns correct result

Answer : greater then formula issue

It sounds like the values being returned are text values rather than numbers. If they are text values then, as you say, the 1 in 16 will be used and evaluated against 4, also MIN(A1,B1) will give 0

If you enclose your original INDEX/MATCH formula in a VALUE function, e.g.

=VALUE(INDEX(A1:A10,MATCH(C1,B1:B10,0)))

then that should return a number as required

Alternatively use

=A1+0>B1+0

or

=MIN(A1+0,B1+0)

regards, barry

Random Solutions  
 
programming4us programming4us