Random number generator between values

Taconumber

New Member
Joined
Dec 5, 2021
Messages
4
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hey guys,

I need a formula to generate random numbers, based off a existing figure and in between values.

For example, I have 10456.876, 10654.676… etc in column A. I need it to generate numbers +/- 0.020 based of the values in column A.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
=A1 + RANDBETWEEN(-20, 20) / 1000
 
Upvote 0
Not clear what limitation of +/-0.02, but try either below formula:

A1:A100 is working range.

for range: -0.02,-0.01,0,0.01,0.02

Code:
=INDEX(A1:A100,RANDBETWEEN(1,COUNTA(A1:A100)))+INDEX({-2;-1;0;1;2},RANDBETWEEN(1,5))/100

For range: -0.02 & 0.02 only

Code:
=INDEX(A1:A100,RANDBETWEEN(1,COUNTA(A1:A100)))+INDEX({-2;2},RANDBETWEEN(1,2))/100
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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