Random Number

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
Can a cell be triggered to 'generate' RANDOM NUMBER between 1 to 10 if a certain criteria is met else no random number should be generated.

A1=RANDBETWEEN(1,10) Now if B1=100 then A1 should generate RANDOM NUMBER between 1 to 10 & for B1<>100 A1=null.

Using Excel2007
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try

=IF(B1=100,RANDBETWEEN(1,10),"")

Actually, I want A1 to generate 'continous' random number as long as B1=100. I am a bit 'not sure' about the time-interval for managing 'generation' of random numbers. I hope you got my idea.
 
Upvote 0
Actually, I want A1 to generate 'continous' random number as long as B1=100. I am a bit 'not sure' about the time-interval for managing 'generation' of random numbers. I hope you got my idea.

Then I think you will need VBA!
 
Upvote 0

Forum statistics

Threads
1,224,891
Messages
6,181,614
Members
453,057
Latest member
LE102024

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