LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dannycol
 
Posts: n/a
Default Listing data without blank rows

Many thanks for the info...

Regards

"vezerid" wrote:

Danny,

the formula JMB suggested had the following skeleton:

=INDEX(data,SMALL(IF(conditions),ROW())

The IF(Conditions) is generating a virtual array, which only only
includes non-blank rows. So, SMALL(..., ROW()) was to find first the
smallest, then the second smallest etc, of this array. If the virtual
array has fewer elements than the current row, ROW() will try to find
an element that does not exist. Also, if your data start in row 10, the
formula would start to find the 10th element, then 11th etc.

So, first modification was to subtract 9 from ROW(). We used ROW($A$9)
in order to show exactly which cell is used to start the data. This
leads us to the formula:

=INDEX(data,SMALL(IF(conditions),ROW()-ROW($A$9))

The second modification, which led to this length, was to see which
part could create the error, and this would be SMALL. This leads us to
the general philosophy of trapping errors:

=IF(ISERROR(formula),"",formula).

This can be simplified if instead of using the entire formula in
ISERROR, we use only the offending part. So your formula became:

=IF(ISERROR(LARGE(...),"",modifed_formula)

which is what you used.

HTH
Kostis


 
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
listing data without blank rows Shooter Excel Worksheet Functions 17 April 24th 06 01:11 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Copy rows of data to another worksheet where ReturnDate is blank Helen McClaine Excel Discussion (Misc queries) 2 March 28th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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