nidhipatel
Board Regular
- Joined
- Feb 11, 2017
- Messages
- 52
my userform contain 3 textbox
TextBox1 value = 1
TextBox2 value = 5
TextBox3 value = 10000
sheet1 range("C2") = 120000
and range C3 formula is = C2*(1+6/100)
now
formula start from range C3
my problem is i need formula calucate till TextBox2 value ie. 5 menas formula calucate 5 cells C3:C7 if i enter value in TextBox 2 = 10 than
formual calcuate "C3:C12"
my result is shown as bleow if i enter Textbox2 Value is 5
<tbody>
[TD="class: xl63, align: right"]120000[/TD]
[TD="class: xl63, align: right"]127200[/TD]
[TD="class: xl63, align: right"]134832[/TD]
[TD="class: xl63, align: right"]142922[/TD]
[TD="class: xl63, align: right"]151497
if i enter TextBox2 value Is 10 than restul shown as
[/TD]
</tbody>
<tbody>
[TD="class: xl65, align: right"]120000[/TD]
[TD="class: xl65, align: right"]127200[/TD]
[TD="class: xl65, align: right"]134832[/TD]
[TD="class: xl65, align: right"]142922[/TD]
[TD="class: xl65, align: right"]151497[/TD]
[TD="class: xl65, align: right"]160587[/TD]
[TD="class: xl65, align: right"]170222[/TD]
[TD="class: xl65, align: right"]180436[/TD]
[TD="class: xl65, align: right"]191262[/TD]
[TD="class: xl65, align: right"]202737[/TD]
</tbody>
it is not done by manually it is done by vba macro only
TextBox1 value = 1
TextBox2 value = 5
TextBox3 value = 10000
sheet1 range("C2") = 120000
and range C3 formula is = C2*(1+6/100)
now
formula start from range C3
my problem is i need formula calucate till TextBox2 value ie. 5 menas formula calucate 5 cells C3:C7 if i enter value in TextBox 2 = 10 than
formual calcuate "C3:C12"
my result is shown as bleow if i enter Textbox2 Value is 5
<tbody>
[TD="class: xl63, align: right"]120000[/TD]
[TD="class: xl63, align: right"]127200[/TD]
[TD="class: xl63, align: right"]134832[/TD]
[TD="class: xl63, align: right"]142922[/TD]
[TD="class: xl63, align: right"]151497
if i enter TextBox2 value Is 10 than restul shown as
</tbody>
<tbody>
[TD="class: xl65, align: right"]120000[/TD]
[TD="class: xl65, align: right"]127200[/TD]
[TD="class: xl65, align: right"]134832[/TD]
[TD="class: xl65, align: right"]142922[/TD]
[TD="class: xl65, align: right"]151497[/TD]
[TD="class: xl65, align: right"]160587[/TD]
[TD="class: xl65, align: right"]170222[/TD]
[TD="class: xl65, align: right"]180436[/TD]
[TD="class: xl65, align: right"]191262[/TD]
[TD="class: xl65, align: right"]202737[/TD]
</tbody>
it is not done by manually it is done by vba macro only
Last edited: