Please help: a range of % variations in the value contained in a cell.

jackdruck

New Member
Joined
Nov 12, 2009
Messages
6
What would be an easy way to obtain a range of values that results from a 20% increase and a 20% decrease in the value contained in cell B2? ( I wrote formulas for 41 cells that would comprise the range, like B2*0.80, B2*0.81 … and so on up to B2*1.20. But there must be a simpler way.)
I would be very grateful for any suggestion.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi, This will give you "- 20%" to "+ 20%"
Code:
[COLOR=navy]Sub[/COLOR] MG06Dec14
[COLOR=navy]Dim[/COLOR] n [COLOR=navy]As[/COLOR] [COLOR=navy]Integer,[/COLOR] r [COLOR=navy]As[/COLOR] Double, Num [COLOR=navy]As[/COLOR] Double, c [COLOR=navy]As[/COLOR] [COLOR=navy]Integer[/COLOR]
 r = 0.01
 Num = Range("B2") * (1 - 0.20792079)
    [COLOR=navy]For[/COLOR] n = 1 To 42
        c = c + 1
        Range("B" & n + 2).Value = Num * (1 + r) ^ c
    [COLOR=navy]Next[/COLOR] n
[COLOR=navy]End[/COLOR] [COLOR=navy]Sub[/COLOR]
Regards Mick
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top