excel vba - Using the cell value as the cell range for calculation -
I'm new to VBA I'm currently working on a verification tool I already created by my predecessor. The issue on which I want clarification is choosing cell category based on the result of a formula in another cell. For example, I need to find the standard deviation of 800 points in 1000 digits, column B I use STDEV.S () in the formula, with a range of two cells in the bracket. However, the range of two cells is getting different, because the user can select and change the range. The selection of the range by the user is printed in a cell, upper limit in C16 and lower limit of C15 are called. Consider the C16 at 950 and C16 has 150 values, in that case, how do I insert the formula for stdev.s ()? Thanks in advance for the help.
Assume that your data is in column B and your range is in C15 and C16 < / P>
Sub-Pasteformamula () Dim Strawfootout String Stroformu Tupest = "B" & amp; Range ("C15"). Value & amp; ": B" & amp; Range ("C16"). Man Strafformu Tupest = "= STDEV.S (" and Straffarum Tupest End ")" MSBBX Stauformattext and All Then you have a cell with the contents of strFormulaToPaste.
Comments
Post a Comment