I am focusing on two columns of data (the number of rows can vary). The first column has monetary values, and the second column has cost percents
EX.
COL N COL O
Row1 500,000 .0134
Row 2 690,000 .0150
Row "N" 6,000,000 .2500
I already sorted columns N and O by small to largerst value in Row N
I know how to calculate the last row
We want to get the col O sums as follows:
range 1: ($400K-750K)
range 2: (750K-2M)
range 3: ($2M-$5M)
range 4: (>5M)
Note: row 1 $ can be > that range 1 and perhaps other ranges as well. In this instance the value for the sums must equal "zero"
What is the best logic and vba code to obtain the required data?
Thanks very much
EX.
COL N COL O
Row1 500,000 .0134
Row 2 690,000 .0150
Row "N" 6,000,000 .2500
I already sorted columns N and O by small to largerst value in Row N
I know how to calculate the last row
We want to get the col O sums as follows:
range 1: ($400K-750K)
range 2: (750K-2M)
range 3: ($2M-$5M)
range 4: (>5M)
Note: row 1 $ can be > that range 1 and perhaps other ranges as well. In this instance the value for the sums must equal "zero"
What is the best logic and vba code to obtain the required data?
Thanks very much