#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default the Last occurance

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default the Last occurance

Try this array formula** :

=MAX(IF(A1:A100="A",ROW(A1:A100)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"peyman" wrote in message
...
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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default the Last occurance

normal entered

=SUMPRODUCT(MAX(($A$1:$A$1000="A")*ROW($A$1:$A$100 0)))

--
Jacob


"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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-occurance Shannan Excel Discussion (Misc queries) 3 October 1st 09 05:52 PM
first and last occurance Darius Excel Worksheet Functions 7 April 23rd 09 06:49 PM
Count Occurance ab3d4u[_5_] Excel Worksheet Functions 2 September 12th 07 09:27 PM
occurance, pivot haviv Excel Discussion (Misc queries) 2 February 26th 07 02:43 PM
frequency for each occurance bjg Excel Worksheet Functions 3 November 24th 04 02:13 PM


All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"