I have a worksheet with this type of structure (there are more columns in the real sheet, but not many):
ColumnAValue1 ColumnBValue1 23
ColumnAValue1 ColumnBValue1 45
ColumnAValue1 ColumnBValue1 2.4
ColumnAValue1 ColumnBValue2 1
ColumnAValue1 ColumnBValue2 3
ColumnAValue2 ColumnBValue1 5
ColumnAValue2 ColumnBValue1 6
ColumnAValue2 ColumnBValue1 7
ColumnAValue2 ColumnBValue2 355
ColumnAValue2 ColumnBValue2 221
And I want to get averages, item numbers and deviation for each combination (for example, ColumnAValue1 ColumnBValue1 would be the average of 23, 45 and 2.4). So I thought that getting all data in an Array, or Collection or Dictionary (I don't know if anything like "Multidimensional Dictionary" exists) would be useful. I wanted to end with a multidimentional array (or Collection) with a structure similar to this:
AllData(
ColumnAValue1(
ColumnBValue1(23,45,2.4)
ColumnBValue2(1,3)
)
ColumnAValue2(
ColumnBValue1(5,6,7)
ColumnBValue2(355,221)
)
)
I know how to obtain unique values from columns.
My two questions: 1) How can I create an Array (or Collection) with the proper Keys (ColumnAValue1 and ColumnAValue2 for the first dimention, and ColumnBValue1 and ColumnBValue2 for the second), and 2) then loop through all my data and "place" values in the corresponding subarray.