I need help programming in Visual Basic 6.3 in Excel.
Here is what I am trying to do:
I have an array with x rows and y columns: Exact(x,y). I want to select all possible combinations of one cell from each row and then calculate the average. In other words, a value of y for each x. For example if there are 3 rows and 4 columns, the combinations would be:
1 1 1 (1st cell from row 1, 1st cell from row 2, 1st cell from row 3)
1 1 2
1 1 3
1 1 4
1 2 1
1 2 2
1 2 3
...
4 4 4
I have been working with Visual Basic for several years and I am familiar with the basic functions (If Then, For Next etc.) and I can work out some other functions, but my expertise is not very advanced.
I would appreciate any suggestions.
Thanks.
Here is what I am trying to do:
I have an array with x rows and y columns: Exact(x,y). I want to select all possible combinations of one cell from each row and then calculate the average. In other words, a value of y for each x. For example if there are 3 rows and 4 columns, the combinations would be:
1 1 1 (1st cell from row 1, 1st cell from row 2, 1st cell from row 3)
1 1 2
1 1 3
1 1 4
1 2 1
1 2 2
1 2 3
...
4 4 4
I have been working with Visual Basic for several years and I am familiar with the basic functions (If Then, For Next etc.) and I can work out some other functions, but my expertise is not very advanced.
I would appreciate any suggestions.
Thanks.
Comment