View Single Post
  #2  
Old 06-06-2005, 12:54 AM
mangesh_yadav mangesh_yadav is offline
Forum Guru
 
Join Date: 10 Jun 2004
Location: India
Posts: 1,068
mangesh_yadav is becoming part of the community
Hi Rob,

=CELL("address",OFFSET(A1,MATCH(MAX(A1:A10),A1:A10,0)-1,0))

works properly.
Just check that range A1:A10 is the range which holds your data, and A1 is the first cell in the range. Replace these with correct values if they are different from your case.

This is a simple worksheet formula. Do you want a VBA solution instead.

In VBA you can call the same formula by using the evaluate e.g.
= EVALUATE("CELL(""address"",OFFSET(A1,MATCH(MAX(A1:A10),A1:A10,0)-1,0))")

Mangesh
Reply With Quote