benbulloch
New Member
- Joined
- Dec 14, 2010
- Messages
- 9
I am having difficulty outputting only the non-zero values (computed from a formula) from a column buried towards the bottom of a sheet. I can make an array formula work if the values are in f1:f100 on a clean sheet using this ctrl-shift-enter formula entered in I9: {=INDEX($F$1:$F$100,SMALL(IF($F$2:$F$100>0,ROW($F$2:$F$100)),ROW(A1)),1)}
I can drag this formula down to output the subsequent non-zero figures in my range. The drag (obviously) changes the ROW(A1) portion of the formula to ROW(A2)...
When my range is actually in a very cluttered template (not built by me!) at D127:D184 with the formula in F136:F146
=INDEX(D127:D184,SMALL(IF(D128:D184>0,ROW(D128:D184)),ROW(F128)),1)
I get a #num error. Driving me crazy... I suspect a problem with my last ROW argument but nothing seems to work.
Data at D127:D145 (truncated)
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$311,844
$0
$0
$0
$0
$428,786
$0
$0
$2,097,332
Should return at F136:F138
$311,844
$428,786
$2,097,332
It would also be great to have a companion formula in G136:G138 that outputs the value from column B (a date in my model) when column D is non-zero. Is this another array formula? Vlookup?
Thanks so much! I look forward to learning from you all!
I can drag this formula down to output the subsequent non-zero figures in my range. The drag (obviously) changes the ROW(A1) portion of the formula to ROW(A2)...
When my range is actually in a very cluttered template (not built by me!) at D127:D184 with the formula in F136:F146
=INDEX(D127:D184,SMALL(IF(D128:D184>0,ROW(D128:D184)),ROW(F128)),1)
I get a #num error. Driving me crazy... I suspect a problem with my last ROW argument but nothing seems to work.
Data at D127:D145 (truncated)
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$311,844
$0
$0
$0
$0
$428,786
$0
$0
$2,097,332
Should return at F136:F138
$311,844
$428,786
$2,097,332
It would also be great to have a companion formula in G136:G138 that outputs the value from column B (a date in my model) when column D is non-zero. Is this another array formula? Vlookup?
Thanks so much! I look forward to learning from you all!