There are various difficulties in this. Which address will be returned if you have duplicate data? Define the data range. Try the formula below, in brief.
=ADDRESS(MAX(ROW(A10:A40)*(A10:A40=A1)),1,4)
You can just use =CELL("address",OFFSET(A1,32,0)) in accordance with your present explanation.
