Hi All,
I have a table in excel that has Y-axis of Share Price, X-axis of Price per Share, and the data in the middle is the associated charge. I want to be able to add a certain amount to cells that have a principal amount between certain ranges.
For Example:
The issue is that I have to be able to set it up in excel using a macro or VBA code of some sort. The end user has to be able to specify a certain range of principal amounts he wants to add a certain charge to, then click a button and have it update the grid. I think I'll have to have 2 separate grids, one with the original value, and one with the commission added on top. I have no problem coming up with a macro to reset the one with the added commission, I can do that no problem. I just can't figure out how to add the commission the user specifies in certain ranges.
Thanks!
I have a table in excel that has Y-axis of Share Price, X-axis of Price per Share, and the data in the middle is the associated charge. I want to be able to add a certain amount to cells that have a principal amount between certain ranges.
For Example:
Code:
Price
$15 $20
S 10 2.50 2.75
h 11 2.61 2.80
a 12 2.96 2.93
r 13 3.42 3.15
e 14 3.62 3.50
s 15 4.05 3.75
I want to add a commission of $30.00 to every range with a principal amount (Price*Shares) over $190. The resulting table would look like this:
Price
$15 $20
S 10 2.50 32.75
h 11 2.61 32.80
a 12 2.96 32.93
r 13 33.42 33.15
e 14 33.62 33.50
s 15 34.05 33.75
The issue is that I have to be able to set it up in excel using a macro or VBA code of some sort. The end user has to be able to specify a certain range of principal amounts he wants to add a certain charge to, then click a button and have it update the grid. I think I'll have to have 2 separate grids, one with the original value, and one with the commission added on top. I have no problem coming up with a macro to reset the one with the added commission, I can do that no problem. I just can't figure out how to add the commission the user specifies in certain ranges.
Thanks!