Slight problem, Ron and Harlan. In cell A1 I have a formula that
determines the number of elements. Your formulas do not work if there
is a formula in cell A1. If I replace the formula with an actual
value, your formulas do work. I'm not sure understand why your
formulas work so I can't troubleshoot or modify. What purpose do the
ROW and INDEX functions play in your solutions?
- John
Well, now it is working but I still don't understand how it works.
- John
The ROW and INDEX functions are used to coerce Excel into creating a
sequential array of values (from 1 through the limit you entered in A1.
You can see how they work by doing this:
1)Edit the cell
2)Select this part of the formula: ROW(A1:INDEX(A:A,A1,1))
3)Press the [F9] key
If A1 contains 4, you'll see this: {1;2;3;4}
Press the [Esc] key to cancel the edits.
Change the value of A1 and repeat those steps.
Does that help?
***********
Regards,
Ron
XL2002, WinXP-Pro
> Slight problem, Ron and Harlan. In cell A1 I have a formula that
> determines the number of elements. Your formulas do not work if there
[quoted text clipped - 4 lines]
>
> - John
John Michl - 20 Mar 2006 16:16 GMT
Thanks, that helps.
Now, how can I reference this in a chart data range. If I edit the
formula and press F9, I see the array. However, I'm trying to use this
as Values in a Source Data range in a chart. In the chart, I'll edit
the Values and select the cell with the array but only the first value
appears in the chart. If I type in the array ={1;2;3;4} in the Values
field, it displays fine.
- John