View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default the Last occurance

On Thu, 18 Feb 2010 15:51:01 -0800, peyman
wrote:

Hi everybody,

I need to now how I can get the last Row number of last occurance of an item
in a list, for example:

row item
1 A
2 B
3 D
4 A

I want a formula to return me row number 4 after looking up A.
Any hints,
thanks.



=LOOKUP(2,1/($A$1:$A$65535="A"),ROW($A$1:$A$65535))

--ron