Complex IF statement w/ Rand

Dkmike32

New Member
Joined
Apr 14, 2017
Messages
1
Hello,

I am trying to do this:
1. I have 2 cells with a list of names (2 names each).
2. I need an if-statement that when the names are chosen in any combination, the if statement will calculate a random number from another list (let's say numbers are 1-5) and each number will have a weighted average to it's random calculation.

Ex.
[TABLE="width: 139"]
<tbody>[TR]
[TD]Name1[/TD]
[TD]Michael[/TD]
[/TR]
[TR]
[TD]Name2[/TD]
[TD]Jeff[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Probabilities for Michael & Jeff[/TD]
[/TR]
[TR]
[TD]Result[/TD]
[TD]Probability[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]10%[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]5%[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]50%[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]35%[/TD]
[/TR]
</tbody>[/TABLE]

The If statement will spit out one of the results based on the probability.

I hope this makes sense, if not let me know and I will try to clarify more!
 

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)

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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