Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Biff
 
Posts: n/a
Default

Hi!

For some reason I couldn't get your formula to work for me the way you have
it set up.


I couldn't understand (in your formula) what the ROW($1:$14) was used for.


Yeah, that's my fault!

Usually when I reply to a post I test the formulas and then I copy/paste
them into the reply. Most of the time I use different range sizes and cell
references and then I edit them to meet the description of the posted
question. The ROW($1:$14) was the size of my test range and I missed editing
that after I posted my reply.

The corrected formula should be:

=IF(ISERROR(SMALL(IF(Data!E$2:E$500<"",ROW($1:$49 9)),ROW(1:1))),"",INDEX(Data!A$2:A$500,SMALL(IF(Da ta!E$2:E$500<"",ROW($1:$499)),ROW(1:1))))

ROW($1:$499) refers to the number of entries (size of the range) being used.
The actual physical location may be A2:A500 but the actual physical size of
that range is 499 elements. You could also think of it in terms of being the
virtual range. The virtual range will always start with position 1. Say for
example the physical range location is A101:A500. The virtual range would
still be 1:499.

It's that number that is used by the INDEX function to return the desired
value.

I can send you a sample file that demonstrates this, if you'd like.

Biff

"malik641" wrote in
message ...

Hey Biff,
Thanks for the response. For some reason I couldn't get your formula to
work for me the way you have it set up. I ended using an older formula I
had in another worksheet. It is a combination of two formulas.

First (not an array):
=SUMPRODUCT(--(Data!$E$2:$E$500<0),--(Data!$E$2:$E$500<""))

And then I would use the second formula based on the first.
Second (array formula):
{=IF(ROWS(B$32:B32)<=$I$32,INDEX(Data!$A$2:$A$500, SMALL(IF((Data!$E$2:$E$500<0)*(Data!$E$2:$E$500< ""),ROW(Data!$E$2:$E$500)-ROW(Data!$E$2)+1),ROWS(B$32:B32))),"")}

I couldn't understand (in your formula) what the ROW($1:$14) was used
for. Unless you were displaying the smallest 14 values...??? But oh
well, I got it to work anyway :)

Thanks again for the response Biff


--
malik641


------------------------------------------------------------------------
malik641's Profile:
http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=395491



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
Returning the formula in a cell Sukhjeet Excel Discussion (Misc queries) 0 June 29th 05 11:24 AM
Array Formula, noncontigous range Werner Rohrmoser Excel Worksheet Functions 1 June 22nd 05 12:11 PM
Array Formula Karen Excel Worksheet Functions 2 June 7th 05 06:49 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM


All times are GMT +1. The time now is 12:35 PM.

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"