Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Reference Elements w/in an Array

I need to create a formula that will look in column A (let's say rows
1:10000) for all non-zero numbers (both negative and positive numbers).
Several of the cells in column A could be zero or blank.

After the formula is populated with the non-zero numbers, I need for the
first number in the array formula to be placed in F1, the second number in
the array formula to be placed in F2, the third number in the array formula
to be placed in F3, etc.

Thanks.



  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Reference Elements w/in an Array

Try this in F1, then copy down until you get #NUM

=INDEX($A$1:$A$9,SMALL(IF($A$1:$A49<0,ROW(INDIREC T("1:"&ROWS($A$1:$A$9)))),ROWS($F$1:$F1)))

or if you prefer blanks instead of #NUM
=IF(ROWS($F$1:$F1)SUM(--($A$1:$A$9<0)),"",INDEX($A$1:$A$9,SMALL(IF($A$1:$ A49<0,ROW(INDIRECT("1:"&ROWS($A$1:$A$9)))),ROWS($ F$1:$F1))))

both formulas array entered with Cntrl+Shift+Enter



"M Moore" wrote:

I need to create a formula that will look in column A (let's say rows
1:10000) for all non-zero numbers (both negative and positive numbers).
Several of the cells in column A could be zero or blank.

After the formula is populated with the non-zero numbers, I need for the
first number in the array formula to be placed in F1, the second number in
the array formula to be placed in F2, the third number in the array formula
to be placed in F3, etc.

Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default Reference Elements w/in an Array

Put Autofilter on the column and set it for non-zero using the custom
criteria. Then Copy and Paste (but not into the same rows - you may want to
go another sheet)

"M Moore" wrote:

I need to create a formula that will look in column A (let's say rows
1:10000) for all non-zero numbers (both negative and positive numbers).
Several of the cells in column A could be zero or blank.

After the formula is populated with the non-zero numbers, I need for the
first number in the array formula to be placed in F1, the second number in
the array formula to be placed in F2, the third number in the array formula
to be placed in F3, etc.

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
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
What is the maximum allowed number of data elements in a data array? [email protected] Excel Discussion (Misc queries) 2 April 7th 05 06:56 PM
How can I use a cell reference in Sumproduct array formula? Chrism Excel Discussion (Misc queries) 1 April 7th 05 05:05 PM
Array formula reference (Corrected) JAK Excel Discussion (Misc queries) 3 February 22nd 05 03:38 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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