random number generate

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
For the training purpose I need to generate random values for current year in column B based on plan column A within the range of 5% plus and minus, please help.

Plan2021%
100010505%
200020904.5%
420400-4.8%
500490-2%
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Book2.xlsm
ABC
11000993.9762-0.60%
Sheet3
Cell Formulas
RangeFormula
B1B1=(RAND()*(-0.05-0.05)+0.05)*A1+A1
C1C1=(B1-A1)/A1


pressing f9 should recalculate the random number

EDIT: also i think reopening the worksheet might recalculate the RAND as well
 
Last edited:
Upvote 0
Solution
Book2.xlsm
ABC
11000993.9762-0.60%
Sheet3
Cell Formulas
RangeFormula
B1B1=(RAND()*(-0.05-0.05)+0.05)*A1+A1
C1C1=(B1-A1)/A1


pressing f9 should recalculate the random number

EDIT: also i think reopening the worksheet might recalculate the RAND as well
Excellent many thanks
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,738
Members
449,255
Latest member
whatdoido

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