LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Bryan Hessey
 
Posts: n/a
Default Numbering items from a list in order


Natalie,

If you want to know the sequence in which they occur, then after the
formula in column B

=IF(LARGE(A$1:A$9,ROW())0,MATCH(LARGE(A$1:A$9,ROW ()),A$1:A$9,0),"")

use

=SMALL(B$1:B$9,ROW())
or
=IF(ISERROR(SMALL(B$1:B$9,ROW())),"",SMALL(B$1:B$9 ,ROW()))

and then use the offset on that column

=IF(C1<"",OFFSET(A$1,C1-1,0),"")

Also, a

=COUNTIF(B1:B9,"0")

will tell you how many numbers there are.



Natalie Wrote:
Thanks Bryan, So near yet so far.
unfortunately its a bad example because whilst your formula works
brilliantly for this example (i.e. the numbers are in descending order)
if I
swap the numbers 5 and 2 around in the list, 2 is still 9 using your
formula
instead of its new position 7, and 5 is still 7 instead of its new
position 9.
Any ideas? This ones really stumped me.
--
Natalie


"Bryan Hessey" wrote:


Try

=IF(LARGE(A$1:A$9,ROW())0,MATCH(LARGE(A$1:A$9,ROW ()),A$1:A$9,0),"")

and formula-copy down to row 9

It will present the position required, but in descending sort order.

Hope this helps


Natalie Wrote:
Does someone have a method for identifying a set of numbers by

their
position
within in a list.
For example
0,0,0,10,0,0,5,0,2
If I want to identify all the items that are not equal to zero, by
their
position
10 would return 4, 5 would return 7, and 2 would return 9
I need to identify every occurance.
--
Natalie



--
Bryan Hessey

------------------------------------------------------------------------
Bryan Hessey's Profile:

http://www.excelforum.com/member.php...o&userid=21059
View this thread:

http://www.excelforum.com/showthread...hreadid=480372




--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=480372

 
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
Compare 2 columns, and create a list of items that are in both lists ruby2sdy Excel Worksheet Functions 3 October 8th 05 11:04 AM
How to obtain Averages from a list of multiple items? MadameJunk Excel Discussion (Misc queries) 5 October 7th 05 10:46 PM
Why doesn't the File Open list sort into filename order? cycler New Users to Excel 7 July 16th 05 06:44 PM
how to sort list, bolded items from no bolded? tcd50 Excel Discussion (Misc queries) 1 July 9th 05 10:29 PM
Making list of items to truck monthly usage Yarek Excel Discussion (Misc queries) 0 June 23rd 05 10:37 AM


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