>It does not cobmbine all values in all array elements - only 15.
>I tried to define lbound/ubound as Array1/Array7 or as a seperar Array/
>Array with 15 elements?? but the same result. How to define nbr of
>elements in ARRAY?
> >It does not cobmbine all values in all array elements - only 15.
> >I tried to define lbound/ubound as Array1/Array7 or as a seperar Array/
[quoted text clipped - 6 lines]
> What you write may be clear to you, but it is not clear to me.
> --ron
Sorry - thanks for your time. I wont to make these combinations for
EVERY elements (E) in EVERY array (A)
Ex: Array1 element 1 to 15 combined with element 1 in array 2-7, with
element 2 in array 2-7,with element 3 in array 2-7 and so on until or
combinations are covered between the arrays. Does this make any
sense ?? - this is why it is so hard to make without breaking the
memory or the computer. Your solution only takes A1E1, A2E1...A1E2,
A2E2.. or have I completle misunderstood your solution
nilserik.oscarsson@telia.com - 07 Feb 2008 23:57 GMT
On Feb 8, 12:44 am, nilserik.oscars...@telia.com wrote:
> > >It does not cobmbine all values in all array elements - only 15.
> > >I tried to define lbound/ubound as Array1/Array7 or as a seperar Array/
[quoted text clipped - 15 lines]
> memory or the computer. Your solution only takes A1E1, A2E1...A1E2,
> A2E2.. or have I completle misunderstood your solution
I have tried to nest your loop but it breaks down the memory, but
seems to work when debuging at least as long I tried
for A1 = lbound(array1) to ubound(array1)
for A2 = lbound(array2) to ubound(array2)
....
....
dTemp = array1(a1) + array2(a2) + array3(a3) ... + array7(a7)
Ron Rosenfeld - 08 Feb 2008 01:21 GMT
>Sorry - thanks for your time. I wont to make these combinations for
>EVERY elements (E) in EVERY array (A)
[quoted text clipped - 4 lines]
>memory or the computer. Your solution only takes A1E1, A2E1...A1E2,
>A2E2.. or have I completle misunderstood your solution
I don't think you've misunderstood my solution.
My solution basically does this:
A1 = ARRAY1
E1 = ELEMENT1
=A1E1+A2E1+A3E1+A4E1+A5E1+A6E1+A7E1
Then compare that SUM with interval
Then do
=A1E2+A2E2+A3E2+A4E2+A5E2+A6E2+A7E2
and compare the SUM with interval
and repeat to
=A1E15+A2E15+A3E15+A4E15+A5E15+A6E15+A7E15
--ron
nilserik.oscarsson@telia.com - 08 Feb 2008 06:06 GMT
> >Sorry - thanks for your time. I wont to make these combinations for
> >EVERY elements (E) in EVERY array (A)
[quoted text clipped - 27 lines]
>
> --ron
Thanks for you time - as I said earlier - that's what your souloution
does - not combine all elements in alla arrays with each other
nilserik.oscarsson@telia.com - 08 Feb 2008 12:24 GMT
> >Sorry - thanks for your time. I wont to make these combinations for
> >EVERY elements (E) in EVERY array (A)
[quoted text clipped - 27 lines]
>
> --ron
Thanks very much Ron. With a pre-routine taking away "to high values"
in each array and nesting your solution (se earlier) I managed to
reduce the nbr of elements to calculate in each array and all went
well. I used "For x = y to z" to reduce the loops. Your a smart guy,
perhaps to smart for a newbie (novis in Excel) like me - many thanks.
Ron Rosenfeld - 08 Feb 2008 12:43 GMT
>Thanks very much Ron. With a pre-routine taking away "to high values"
>in each array and nesting your solution (se earlier) I managed to
>reduce the nbr of elements to calculate in each array and all went
>well. I used "For x = y to z" to reduce the loops. Your a smart guy,
>perhaps to smart for a newbie (novis in Excel) like me - many thanks.
Even though I couldn't give you a complete solution, I'm happy to have given
you some hints that enabled you to develop one on your own.
And I've never been accused of being "too smart" before -- just ask my wife!
<g>
--ron