Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default match nth occurence

Hi

I can use match to find the first occurence of a value in a list - how can i
find the 2nd, 3rd, nth value in a list? I'm using excel 2007 btw.

Thanks

Max


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default match nth occurence

Are you using VBA or formulas?

"Max Scott" wrote:

Hi

I can use match to find the first occurence of a value in a list - how can i
find the 2nd, 3rd, nth value in a list? I'm using excel 2007 btw.

Thanks

Max



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default match nth occurence

Try this array formula, searching for the value 2

=IF(ISERROR(SMALL(IF($A$2:$A$20=2,ROW($A$2:$A$20), ""),ROW(A1))),"",SMALL(IF($A$2:$A$20=2,ROW($A$2:$A $20),""),ROW(A1)))

--
__________________________________
HTH

Bob

"Max Scott" wrote in message
...
Hi

I can use match to find the first occurence of a value in a list - how can
i find the 2nd, 3rd, nth value in a list? I'm using excel 2007 btw.

Thanks

Max



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default match nth occurence

On Thu, 26 Feb 2009 11:03:43 -0000, "Max Scott" wrote:

Hi

I can use match to find the first occurence of a value in a list - how can i
find the 2nd, 3rd, nth value in a list? I'm using excel 2007 btw.

Thanks

Max


Take a look at the Arbitrary Lookups section on this page:

http://www.cpearson.com/excel/TablesAndLookups.aspx

--ron
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
next occurence Zab Excel Worksheet Functions 0 February 26th 08 06:49 PM
Occurence #'s Seveneleven Excel Discussion (Misc queries) 6 February 7th 06 07:38 PM
get 2nd occurence value TUNGANA KURMA RAJU Excel Discussion (Misc queries) 2 October 1st 05 08:00 AM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
last occurence monika Excel Programming 4 April 19th 04 11:43 AM


All times are GMT +1. The time now is 04:07 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"