Randbetween with steps

rline101

Board Regular
Joined
Dec 22, 2005
Messages
70
Is there any way to get a formula to return randomly chosen values from the set 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000 by using randbetween?

Or if not some other way?

Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
Do you mean like this?:
Code:
=CHOOSE(RANDBETWEEN(1,9),1000,2000,3000,4000,5000,6000,7000,8000,9000)
 

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
Or even possiblyL
Code:
=CEILING(RANDBETWEEN(0,9000),1000)
 

rline101

Board Regular
Joined
Dec 22, 2005
Messages
70
All three work fine. But the first reply is the simplest and so obviously elegant. Thanks heaps for such quick replies. Next post I'll try make it more difficult for you :)
 

Forum statistics

Threads
1,181,053
Messages
5,927,852
Members
436,573
Latest member
CMR237

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