View Single Post
  #6   Report Post  
Domenic
 
Posts: n/a
Default


With your values in ascending order, try...

=INDEX(A2:J2,IF(A5<A1,1,IF(A5J1,#N/A,MATCH(A5,A1:J1)+(1-ISNUMBER(MATCH(A5,A1:J1,0))))))

...which should give you the same results.

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=373860