Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Second item in list using array

Hello--

I'm trying to return the second item in a list using an array.

I'm using this to give me the first item in the list. What should I modify
to return the second item in a dynamic list.

=INDEX(A34:A59,MATCH(1,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Second item in list using array

=INDEX(A34:A59,SMALL(IF((A34:A59<""),ROW(A34:A59) ),2)-ROW(A34)+1)

--
__________________________________
HTH

Bob

"CeciliaPDX" wrote in message
...
Hello--

I'm trying to return the second item in a list using an array.

I'm using this to give me the first item in the list. What should I modify
to return the second item in a dynamic list.

=INDEX(A34:A59,MATCH(1,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks!!!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Second item in list using array

Looking at your formula I'm assuming your list is filtered.

Change this portion:

MATCH(1,

To:

MATCH(n,

Where n = the nth item you want. In your case n = 2.

--
Biff
Microsoft Excel MVP


"CeciliaPDX" wrote in message
...
Hello--

I'm trying to return the second item in a list using an array.

I'm using this to give me the first item in the list. What should I modify
to return the second item in a dynamic list.

=INDEX(A34:A59,MATCH(1,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Second item in list using array

Hi T--

Thanks for catching that. Yes I am using a filtered list, which makes it
dynamic.

I changed the MATCH(1. . . to MATCH(2 but am getting an #NA back. Is there
another portion of the formula that needs to be changed?

=INDEX(A34:A59,MATCH(2,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks,

Cecilia

"T. Valko" wrote:

Looking at your formula I'm assuming your list is filtered.

Change this portion:

MATCH(1,

To:

MATCH(n,

Where n = the nth item you want. In your case n = 2.

--
Biff
Microsoft Excel MVP


"CeciliaPDX" wrote in message
...
Hello--

I'm trying to return the second item in a list using an array.

I'm using this to give me the first item in the list. What should I modify
to return the second item in a dynamic list.

=INDEX(A34:A59,MATCH(1,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks!!!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Second item in list using array

Let's tweak the OFFSET and eliminate the <"" expression:

=INDEX(A34:A59,MATCH(2,SUBTOTAL(3,OFFSET(A34:A59,, ,ROW(A34:A59)-MIN(ROW(A34:A59))+1)),0))

Don't forget, array entered!

Of course, if there *isn't* a 2nd item you'll get an error.

--
Biff
Microsoft Excel MVP


"CeciliaPDX" wrote in message
...
Hi T--

Thanks for catching that. Yes I am using a filtered list, which makes it
dynamic.

I changed the MATCH(1. . . to MATCH(2 but am getting an #NA back. Is
there
another portion of the formula that needs to be changed?

=INDEX(A34:A59,MATCH(2,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

Thanks,

Cecilia

"T. Valko" wrote:

Looking at your formula I'm assuming your list is filtered.

Change this portion:

MATCH(1,

To:

MATCH(n,

Where n = the nth item you want. In your case n = 2.

--
Biff
Microsoft Excel MVP


"CeciliaPDX" wrote in message
...
Hello--

I'm trying to return the second item in a list using an array.

I'm using this to give me the first item in the list. What should I
modify
to return the second item in a dynamic list.

=INDEX(A34:A59,MATCH(1,(SUBTOTAL(3,OFFSET(A34:A59, ROW(A34:A59)-MIN(ROW(A34:A59)),0,1)))*(A34:A59<""),0))

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
List and subtotal selected items, then print separate item list TitanG Excel Worksheet Functions 0 September 8th 08 09:07 PM
I need to pair each item on one list to each item on another list Peter R. Excel Worksheet Functions 1 August 24th 07 03:04 AM
drop down list/typing item from list error Strike Eagle Loader[_2_] Excel Worksheet Functions 1 May 1st 07 06:35 PM
Dropdown List - list item endings not visible if column too narrow AK9955 Excel Discussion (Misc queries) 2 April 27th 07 09:02 AM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM


All times are GMT +1. The time now is 04:25 PM.

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"