i will do my best to explain this
lets say i have the following table
as an example we can say it represents gdp over time
1 2 3
3 5 7
8 9 4
1 4 6
lets name this range("SampleRange")
lets say there are 3 years being evaluated (each with its own similar table) per 3 different countries (so we are looking at 9 tables in total)
the first array we create will be
PrimaryArray(Country,Year)
Each element of this array will be filled with the entire table range as depicted above
so as an example
PrimaryArray(Country1,2005) = range("samplerange")
To access 3 on the top row from this range, for example, we could enter
PrimaryArray(Country1,2005)(1,3)
My question is whether there is a way to attain the SUM of a particular entire column of data from this array without looping through the entire range
as an example, how could i use a line of code to produce the first column (3+7+4+6) = 20
thanks very much, and if further clarification is required i will try
lets say i have the following table
as an example we can say it represents gdp over time
1 2 3
3 5 7
8 9 4
1 4 6
lets name this range("SampleRange")
lets say there are 3 years being evaluated (each with its own similar table) per 3 different countries (so we are looking at 9 tables in total)
the first array we create will be
PrimaryArray(Country,Year)
Each element of this array will be filled with the entire table range as depicted above
so as an example
PrimaryArray(Country1,2005) = range("samplerange")
To access 3 on the top row from this range, for example, we could enter
PrimaryArray(Country1,2005)(1,3)
My question is whether there is a way to attain the SUM of a particular entire column of data from this array without looping through the entire range
as an example, how could i use a line of code to produce the first column (3+7+4+6) = 20
thanks very much, and if further clarification is required i will try