christoferlives
New Member
- Joined
- Apr 20, 2011
- Messages
- 5
If anyone could give me a hand with a cool piece of coding, it would be pretty solid.
What I need to do is create a program that sifts through the entry in a column, and finds the maximum value in a cell column.
I know It has to have a dynamic array, extract a value depending on the start and stop points.
I think it would be easier to give an example:
Here's the data set:
Column
A B
1332.96
1330.79
1322.78
1324.54
1324.87
1322.85 True
1311
1308.6
1307.61
1308.86 True
1287.17
1302.67
1301.29
1299.74 True
1291.26
1291.93
1291.21 True
1283.35
1294.6
1296.06
1293.24
1286.7
1286.87
1277.25 True
I need a code that:
Starts at the first row in column B and checks for the word "true."
Once it finds the first "true", begins array dynamic array at the first value in column A and continues until the next "true" value value in column B.
So, Start search in B1
Find "True" and starts array
Finds the next "True" value and ends the array
With the array parameters set, Find the Max of the array
Then, using the ending parameter in first array,
Start the beginning of the next array with the same value.
Then Loop the original steps.
What I need to do is create a program that sifts through the entry in a column, and finds the maximum value in a cell column.
I know It has to have a dynamic array, extract a value depending on the start and stop points.
I think it would be easier to give an example:
Here's the data set:
Column
A B
1332.96
1330.79
1322.78
1324.54
1324.87
1322.85 True
1311
1308.6
1307.61
1308.86 True
1287.17
1302.67
1301.29
1299.74 True
1291.26
1291.93
1291.21 True
1283.35
1294.6
1296.06
1293.24
1286.7
1286.87
1277.25 True
I need a code that:
Starts at the first row in column B and checks for the word "true."
Once it finds the first "true", begins array dynamic array at the first value in column A and continues until the next "true" value value in column B.
So, Start search in B1
Find "True" and starts array
Finds the next "True" value and ends the array
With the array parameters set, Find the Max of the array
Then, using the ending parameter in first array,
Start the beginning of the next array with the same value.
Then Loop the original steps.