spencer_time
Board Regular
- Joined
- Sep 19, 2019
- Messages
- 55
- Office Version
- 365
- 2016
- 2007
- Platform
- Windows
Hello,
I'm working on a large spreadsheet to help me automate crunching data at work.
I've decided to put sets of data into array's (is plural of array, just array?) and am unsure if my approach will slow the end product or cause some other undesired effect.
I, on a daily basis, compare spreadsheets that have 10 sets of raw data, 1 set of "zero" data, 1 set of ideal data, and 10 sets of corrected data. This however is the minimum, I have run the same thing with 96 raw data and 96 corrected data.
I want my spreadsheet I'm writing to be as versatile as possible, so I have a few questions.
1. Is there a way to have one of the dimensions of an array dependent on a variable? The way I show in my example doesn't seem to work.
2. Will including more dimensioned arrays than needed noticeably slow my spreadsheet? If so, can I somehow generate them depending on the amount of data I import?(ex. instead of having rawData00-rawData99, only have enough array for the number of datasets I have.)
3. I'm aware that array can be made without the dimensions or lengths defined, is there a way to define the amount of dimensions, and lengths of some, but not all of them? The reason being, that I plan on having some of the elements in the array left blank. I want it to stay a 2D array, and always have 11 elements in the second diminision, but the first deminision
Something like:
Instead of:
Here is what I currently have, it seems unnecessary, and unprofessional. However, I am fine with overlooking that if there isn't a better way.
Thanks in advance for any advice.
I'm working on a large spreadsheet to help me automate crunching data at work.
I've decided to put sets of data into array's (is plural of array, just array?) and am unsure if my approach will slow the end product or cause some other undesired effect.
I, on a daily basis, compare spreadsheets that have 10 sets of raw data, 1 set of "zero" data, 1 set of ideal data, and 10 sets of corrected data. This however is the minimum, I have run the same thing with 96 raw data and 96 corrected data.
I want my spreadsheet I'm writing to be as versatile as possible, so I have a few questions.
1. Is there a way to have one of the dimensions of an array dependent on a variable? The way I show in my example doesn't seem to work.
Code:
Dim pts As Integer
pts = 1603
Dim variableArry(pts,11) As Variant
2. Will including more dimensioned arrays than needed noticeably slow my spreadsheet? If so, can I somehow generate them depending on the amount of data I import?(ex. instead of having rawData00-rawData99, only have enough array for the number of datasets I have.)
3. I'm aware that array can be made without the dimensions or lengths defined, is there a way to define the amount of dimensions, and lengths of some, but not all of them? The reason being, that I plan on having some of the elements in the array left blank. I want it to stay a 2D array, and always have 11 elements in the second diminision, but the first deminision
Something like:
Code:
Dim variableArry( ,11) As Variant
Code:
Dim variableArry() As Variant
Here is what I currently have, it seems unnecessary, and unprofessional. However, I am fine with overlooking that if there isn't a better way.
Code:
Const ColA = 0
Const ColB = 1
Const ColC = 2
Const ColD = 3
Const ColE = 4
Const ColF = 5
Const ColG = 6
Const ColH = 7
Const ColI = 8
Const ColJ = 9
Const ColK = 10
Const ColL = 11
Dim rawData00(1603, 11) As Variant
Dim rawData01(1603, 11) As Variant
Dim rawData02(1603, 11) As Variant
Dim rawData03(1603, 11) As Variant
Dim rawData04(1603, 11) As Variant
Dim rawData05(1603, 11) As Variant
Dim rawData06(1603, 11) As Variant
Dim rawData07(1603, 11) As Variant
Dim rawData08(1603, 11) As Variant
Dim rawData09(1603, 11) As Variant
Dim rawData10(1603, 11) As Variant
Dim rawData11(1603, 11) As Variant
Dim rawData12(1603, 11) As Variant
Dim rawData13(1603, 11) As Variant
Dim rawData14(1603, 11) As Variant
Dim rawData15(1603, 11) As Variant
Dim rawData16(1603, 11) As Variant
Dim rawData17(1603, 11) As Variant
Dim rawData18(1603, 11) As Variant
Dim rawData19(1603, 11) As Variant
Dim rawData20(1603, 11) As Variant
Dim rawData21(1603, 11) As Variant
Dim rawData22(1603, 11) As Variant
Dim rawData23(1603, 11) As Variant
Dim rawData24(1603, 11) As Variant
Dim rawData25(1603, 11) As Variant
Dim rawData26(1603, 11) As Variant
Dim rawData27(1603, 11) As Variant
Dim rawData28(1603, 11) As Variant
Dim rawData29(1603, 11) As Variant
Dim rawData30(1603, 11) As Variant
Dim rawData31(1603, 11) As Variant
Dim rawData32(1603, 11) As Variant
Dim rawData33(1603, 11) As Variant
Dim rawData34(1603, 11) As Variant
Dim rawData35(1603, 11) As Variant
Dim rawData36(1603, 11) As Variant
Dim rawData37(1603, 11) As Variant
Dim rawData38(1603, 11) As Variant
Dim rawData39(1603, 11) As Variant
Dim rawData40(1603, 11) As Variant
Dim rawData41(1603, 11) As Variant
Dim rawData42(1603, 11) As Variant
Dim rawData43(1603, 11) As Variant
Dim rawData44(1603, 11) As Variant
Dim rawData45(1603, 11) As Variant
Dim rawData46(1603, 11) As Variant
Dim rawData47(1603, 11) As Variant
Dim rawData48(1603, 11) As Variant
Dim rawData49(1603, 11) As Variant
Dim rawData50(1603, 11) As Variant
Dim rawData51(1603, 11) As Variant
Dim rawData52(1603, 11) As Variant
Dim rawData53(1603, 11) As Variant
Dim rawData54(1603, 11) As Variant
Dim rawData55(1603, 11) As Variant
Dim rawData56(1603, 11) As Variant
Dim rawData57(1603, 11) As Variant
Dim rawData58(1603, 11) As Variant
Dim rawData59(1603, 11) As Variant
Dim rawData60(1603, 11) As Variant
Dim rawData61(1603, 11) As Variant
Dim rawData62(1603, 11) As Variant
Dim rawData63(1603, 11) As Variant
Dim rawData64(1603, 11) As Variant
Dim rawData65(1603, 11) As Variant
Dim rawData66(1603, 11) As Variant
Dim rawData67(1603, 11) As Variant
Dim rawData68(1603, 11) As Variant
Dim rawData69(1603, 11) As Variant
Dim rawData70(1603, 11) As Variant
Dim rawData71(1603, 11) As Variant
Dim rawData72(1603, 11) As Variant
Dim rawData73(1603, 11) As Variant
Dim rawData74(1603, 11) As Variant
Dim rawData75(1603, 11) As Variant
Dim rawData76(1603, 11) As Variant
Dim rawData77(1603, 11) As Variant
Dim rawData78(1603, 11) As Variant
Dim rawData79(1603, 11) As Variant
Dim rawData80(1603, 11) As Variant
Dim rawData81(1603, 11) As Variant
Dim rawData82(1603, 11) As Variant
Dim rawData83(1603, 11) As Variant
Dim rawData84(1603, 11) As Variant
Dim rawData85(1603, 11) As Variant
Dim rawData86(1603, 11) As Variant
Dim rawData87(1603, 11) As Variant
Dim rawData88(1603, 11) As Variant
Dim rawData89(1603, 11) As Variant
Dim rawData90(1603, 11) As Variant
Dim rawData91(1603, 11) As Variant
Dim rawData92(1603, 11) As Variant
Dim rawData93(1603, 11) As Variant
Dim rawData94(1603, 11) As Variant
Dim rawData95(1603, 11) As Variant
Dim rawData96(1603, 11) As Variant
Dim rawData97(1603, 11) As Variant
Dim rawData98(1603, 11) As Variant
Dim rawData99(1603, 11) As Variant
Dim fixtureZero(1603, 11) As Variant
Dim idealData(1603, 11) As Variant
Dim corData00(1603, 11) As Variant
Dim corData01(1603, 11) As Variant
Dim corData02(1603, 11) As Variant
Dim corData03(1603, 11) As Variant
Dim corData04(1603, 11) As Variant
Dim corData05(1603, 11) As Variant
Dim corData06(1603, 11) As Variant
Dim corData07(1603, 11) As Variant
Dim corData08(1603, 11) As Variant
Dim corData09(1603, 11) As Variant
Dim corData10(1603, 11) As Variant
Dim corData11(1603, 11) As Variant
Dim corData12(1603, 11) As Variant
Dim corData13(1603, 11) As Variant
Dim corData14(1603, 11) As Variant
Dim corData15(1603, 11) As Variant
Dim corData16(1603, 11) As Variant
Dim corData17(1603, 11) As Variant
Dim corData18(1603, 11) As Variant
Dim corData19(1603, 11) As Variant
Dim corData20(1603, 11) As Variant
Dim corData21(1603, 11) As Variant
Dim corData22(1603, 11) As Variant
Dim corData23(1603, 11) As Variant
Dim corData24(1603, 11) As Variant
Dim corData25(1603, 11) As Variant
Dim corData26(1603, 11) As Variant
Dim corData27(1603, 11) As Variant
Dim corData28(1603, 11) As Variant
Dim corData29(1603, 11) As Variant
Dim corData30(1603, 11) As Variant
Dim corData31(1603, 11) As Variant
Dim corData32(1603, 11) As Variant
Dim corData33(1603, 11) As Variant
Dim corData34(1603, 11) As Variant
Dim corData35(1603, 11) As Variant
Dim corData36(1603, 11) As Variant
Dim corData37(1603, 11) As Variant
Dim corData38(1603, 11) As Variant
Dim corData39(1603, 11) As Variant
Dim corData40(1603, 11) As Variant
Dim corData41(1603, 11) As Variant
Dim corData42(1603, 11) As Variant
Dim corData43(1603, 11) As Variant
Dim corData44(1603, 11) As Variant
Dim corData45(1603, 11) As Variant
Dim corData46(1603, 11) As Variant
Dim corData47(1603, 11) As Variant
Dim corData48(1603, 11) As Variant
Dim corData49(1603, 11) As Variant
Dim corData50(1603, 11) As Variant
Dim corData51(1603, 11) As Variant
Dim corData52(1603, 11) As Variant
Dim corData53(1603, 11) As Variant
Dim corData54(1603, 11) As Variant
Dim corData55(1603, 11) As Variant
Dim corData56(1603, 11) As Variant
Dim corData57(1603, 11) As Variant
Dim corData58(1603, 11) As Variant
Dim corData59(1603, 11) As Variant
Dim corData60(1603, 11) As Variant
Dim corData61(1603, 11) As Variant
Dim corData62(1603, 11) As Variant
Dim corData63(1603, 11) As Variant
Dim corData64(1603, 11) As Variant
Dim corData65(1603, 11) As Variant
Dim corData66(1603, 11) As Variant
Dim corData67(1603, 11) As Variant
Dim corData68(1603, 11) As Variant
Dim corData69(1603, 11) As Variant
Dim corData70(1603, 11) As Variant
Dim corData71(1603, 11) As Variant
Dim corData72(1603, 11) As Variant
Dim corData73(1603, 11) As Variant
Dim corData74(1603, 11) As Variant
Dim corData75(1603, 11) As Variant
Dim corData76(1603, 11) As Variant
Dim corData77(1603, 11) As Variant
Dim corData78(1603, 11) As Variant
Dim corData79(1603, 11) As Variant
Dim corData80(1603, 11) As Variant
Dim corData81(1603, 11) As Variant
Dim corData82(1603, 11) As Variant
Dim corData83(1603, 11) As Variant
Dim corData84(1603, 11) As Variant
Dim corData85(1603, 11) As Variant
Dim corData86(1603, 11) As Variant
Dim corData87(1603, 11) As Variant
Dim corData88(1603, 11) As Variant
Dim corData89(1603, 11) As Variant
Dim corData90(1603, 11) As Variant
Dim corData91(1603, 11) As Variant
Dim corData92(1603, 11) As Variant
Dim corData93(1603, 11) As Variant
Dim corData94(1603, 11) As Variant
Dim corData95(1603, 11) As Variant
Dim corData96(1603, 11) As Variant
Dim corData97(1603, 11) As Variant
Dim corData98(1603, 11) As Variant
Dim corData99(1603, 11) As Variant
Thanks in advance for any advice.