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.
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
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:

Watch MrExcel Video

Forum statistics

Threads
1,126,938
Messages
5,621,715
Members
415,853
Latest member
Newlife72

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
Top