#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Searching A List

Given the following in a column:

Number
0
1
1
0
0
1
0
0
0
0

I would like, in a single cell (no helper cells), to return the
position of the last non-zero value in my list (which begins below the
column header). In this case the correct answer is 6.

This is more of a curiousity/challenge question for me at this point
since I found a work-around using helper cells.

I think the heart of the problem, and why I even bring it up, is we
need to know how to tap into array indices, or reverse of the order of
a one-dimensional array in place. Any ideas welcomed.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Searching A List

On Aug 27, 3:11*pm, smartin wrote:
Given the following in a column:

Number
0
1
1
0
0
1
0
0
0
0

I would like, in a single cell (no helper cells), to return the
position of the last non-zero value in my list (which begins below the
column header). In this case the correct answer is 6.

This is more of a curiousity/challenge question for me at this point
since I found a work-around using helper cells.

I think the heart of the problem, and why I even bring it up, is we
need to know how to tap into array indices, or reverse of the order of
a one-dimensional array in place. Any ideas welcomed.


And of course, I figured out this array formula 20 minutes later:

{=MAX(--(LIST<0)*ROW(LIST))-n}

where n is the number of row headers
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
searching for a word(s) within a list Philippa Excel Discussion (Misc queries) 5 August 12th 08 07:30 PM
Searching for a contact without going through the whole list. vvsmith Excel Worksheet Functions 4 November 6th 07 07:09 PM
Searching cell for value from list [email protected] Excel Discussion (Misc queries) 9 February 11th 07 11:08 PM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
searching within list sedonovan Excel Discussion (Misc queries) 4 June 23rd 06 02:51 PM


All times are GMT +1. The time now is 02:21 AM.

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

About Us

"It's about Microsoft Excel"