Excel Formulas to Generate Random Number Weighted Probability!!
Tags: excelformula, excelformulas
Published: 2021-07-09 09:02:34

---
title: Excel Formulas to Generate Random Number Weighted Probability!!
published: true
date: 2021-07-06 06:13:16 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-generate-random-number-weighted-probability/
---

Excel can return a value randomly based on its probability by using **[SUM](https://geekexcel.com/sum-function/), [MATCH](https://geekexcel.com/how-to-use-match-function-in-microsoft-excel-365/),** and **[RAND](https://geekexcel.com/how-to-use-excel-rand-function-in-office-365-with-examples/)** functions. In this article, I introduce some formulas which can quickly **generate the random number weighted with a given probability in Excel**.  Let’s jump into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Generate random number with weighted probability](https://geekexcel.com/wp-content/uploads/2021/07/Generate-random-number-with-weighted-probability.png)](https://geekexcel.com/excel-formulas-to-generate-random-number-weighted-probability/generate-random-number-with-weighted-probability/#main)<figcaption id="caption-attachment-48600">Generate random numbers with a weighted probability</figcaption>

## Generic Formula:

- If you want to generate the random number with weight probability, you can use the below formula.

**=[MATCH](https://geekexcel.com/how-to-use-match-function-in-microsoft-excel-365/)([RAND](https://geekexcel.com/how-to-use-excel-rand-function-in-office-365-with-examples/)(),cumulative\_probability) **

## Syntax Explanations:

- **MATCH** – This function will help to extract the texts with the given number of characters from the right side. Read more on the [**RIGHT Function**](https://geekexcel.com/how-to-use-right-function-in-microsoft-excel-365/).
- **RAND** – In Excel, the [**LEN function**](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/) returns the length of a given text string as the number of characters.
- **Cumulative\_probability** – It specifies the weighted probability.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Practical Example:

Let’s consider the below example image.

- First, we will enter the input names in **Column B, Column C** , and **Column D**.
- Now we need to generate a random number, weighted with a given probability.
- Here the **Cell D3** contains the following formula:

**=[SUM](https://geekexcel.com/sum-function/)(D2,C2)**

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/07/Input-Ranges-22.png)<figcaption id="caption-attachment-48601">Input Ranges</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/07/Enter-the-formula-21.png)<figcaption id="caption-attachment-48599">Enter the formula</figcaption>

- Finally, press the ** ENTER**  key, you can get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/07/Result-22.png)<figcaption id="caption-attachment-48602">Result</figcaption>

## Bottom-Line:

Here we have described the simple formulas to **create the random number weighted probability in Excel**. Let me know if you have any **doubts** regarding this article or any other Excel/VBA topic.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Also:

- **[Excel Formulas to Create Random Number Between Two Numbers!!](https://geekexcel.com/excel-formulas-to-create-random-number-between-two-numbers/)**
- **[How to Insert a Date or Formatted Date in Excel Office 365?](https://geekexcel.com/how-to-insert-a-date-or-formatted-date-in-excel-office-365/)**
- **[Excel Formulas to Generate Random Number from Fixed Set of Options!!](https://geekexcel.com/excel-formulas-to-generate-random-number-from-fixed-set-of-options/)**
- **[Excel Formulas to Calculate the Area of a Trapezoid ~ Easy Tricks!!](https://geekexcel.com/excel-formulas-to-calculate-the-area-of-a-trapezoid/)**