Weighted Probabilities with random numbers

senx7810

New Member
Joined
Mar 22, 2013
Messages
4
Hi guys, this has been killing me but does anyone know how to incorporate weighted probabilities with random numbers? For example:

I need to have a random number between 1-9 and have these probabilities:
[TABLE="width: 240"]
<tbody>[TR]
[TD]1[/TD]
[TD]5%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5%[/TD]
[/TR]
</tbody>[/TABLE]

Any help would be much appreciated!

I just need a formula please and thank you.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the board.

=match(rand(), {0;5;15;15;35;65;75;85;95}%)
 
Upvote 0
Welcome to the board.

=match(rand(), {0;5;15;15;35;65;75;85;95}%)

Hi shg - how does this work?

Not being a mathematician, I can't see immediately the relationship between the percentages senx7810 wanted and the number you put in the curly brackets.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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