Office, Karriere und Technik Blog

Office, Karriere und Technik Blog

Anzeige

Excel random number generator – With Analysis function

Do you want to use Excel to create the next numbers for your lottery ticket, or would you like Excel to randomly draw the winner and the prize itself from a table? There are various options for how you can use a random number generator in Excel or draw random numbers. So today we want to look at different ways how it can work.

In doing so, we will once again reveal a hidden function in Excel that is not visible by default.

Zufallsgenerator in Excel erstellen

Topic Overview

Anzeige

Excel random number generator – With Analysis function

Do you want to use Excel to create the next numbers for your lottery ticket, or would you like Excel to randomly draw the winner and the prize itself from a table? There are various options for how you can use a random number generator in Excel or draw random numbers. So today we want to look at different ways how it can work.

In doing so, we will once again reveal a hidden function in Excel that is not visible by default.

Zufallsgenerator in Excel erstellen

Topic Overview

Anzeige

Random numbers in Excel with a formula

Random numbers in Excel with a formula

In Excel, you can generate random numbers with the formula “=RAND()“.

This formula would return a random number between 0 and 1. You can then use this random number to generate other numbers. For example, you can use the formula “=RAND() * 100” to generate a random number between 0 and 100. You can specify the number of decimal places and the formatting (e.g. currency in €) yourself in the “Start” tab.

If you want to generate a random number that falls within a certain range, you can use the formula “=RAND()*(MAX(49)*(MIN(1)))“. Here “max” would be the maximum value 49 and “min” the minimum value 1 between which the random number should lie.

If you want to generate a random number that is new every time you update or recalculate your spreadsheet, you can paste the formula into a cell and then press the F9 key to recalculate the formula and get a new random number to generate. You could also create a table that, like in our example, shows the number series of a 6 out of 49 lottery ticket, and from this with the function: “=UNIQUE(RANDOM(I$3;O$9);FALSE;TRUE)” random and unique draw numbers. For a deeper understanding of the “$” characters used, I recommend our article on absolute, relative, and mixed cell references.

Note: Since the random numbers are based on Excel formulas, they are regenerated each time the spreadsheet is updated. However, if you want a random number to be generated only once and then remain constant, you can copy and paste the random number as a value. The nested functions that we have applied here can be changed and adjusted at will. For example, you could also extend the function with “=INTEGRATE(…” if you only want whole numbers, and so on and so forth. It also helps to simply try it out to explore the limits of functionality. Find more about nested functions here with us >>>

see fig. (click to enlarge)

Zufallszahlen mit Funktion in Excel
Ads

In Excel, you can generate random numbers with the formula “=RAND()“.

This formula would return a random number between 0 and 1. You can then use this random number to generate other numbers. For example, you can use the formula “=RAND() * 100” to generate a random number between 0 and 100. You can specify the number of decimal places and the formatting (e.g. currency in €) yourself in the “Start” tab.

If you want to generate a random number that falls within a certain range, you can use the formula “=RAND()*(MAX(49)*(MIN(1)))“. Here “max” would be the maximum value 49 and “min” the minimum value 1 between which the random number should lie.

If you want to generate a random number that is new every time you update or recalculate your spreadsheet, you can paste the formula into a cell and then press the F9 key to recalculate the formula and get a new random number to generate. You could also create a table that, like in our example, shows the number series of a 6 out of 49 lottery ticket, and from this with the function: “=UNIQUE(RANDOM(I$3;O$9);FALSE;TRUE)” random and unique draw numbers. For a deeper understanding of the “$” characters used, I recommend our article on absolute, relative, and mixed cell references.

Note: Since the random numbers are based on Excel formulas, they are regenerated each time the spreadsheet is updated. However, if you want a random number to be generated only once and then remain constant, you can copy and paste the random number as a value. The nested functions that we have applied here can be changed and adjusted at will. For example, you could also extend the function with “=INTEGRATE(…” if you only want whole numbers, and so on and so forth. It also helps to simply try it out to explore the limits of functionality. Find more about nested functions here with us >>>

see fig. (click to enlarge)

Zufallszahlen mit Funktion in Excel
Ads

Random numbers in Excel using the analyze function

Random numbers in Excel using the analyze function

Since we already used the term “analysis function” in the title, we now want to go into more detail about it. By default, this data analysis feature is not enabled in Excel. To enable data analysis option in Excel, you need to follow the following steps:

  • Open Excel and click on the “File” tab.
  • Click “Options“.
  • In the left pane of the Excel Options window, select Add-Ins.
  • From the Manage drop-down menu, select Excel Add-ins and click Go.
  • Check the box next to “Data Analysis” and click OK.
  • The data analysis feature should now be available in the “Data” tab in your ribbon and you can use the various data analysis tools.

If you don’t see the Data Analysis option in the list of available add-ins, you may need to install the add-in. To do this, simply click “Browse” to locate and install the add-in installation file.

see fig. (click to enlarge)

Excel Add-In Analysefunktion Abb.1
Excel Add-In Analysefunktion Abb.2

With the analysis function, you have expanded your options in Excel a good deal again, and we can also use the analysis function to determine random numbers. For our example, let’s take a new spreadsheet and click on “Data Analysis” on the “Data” tab. We have set the number of variables to 5, and we want 20 different random numbers to be generated for each variable with a “standard deviation” or normal distribution of 2.5.

We let Excel start the random number generation in cell A1. After clicking on “Ok” we are presented with our numbers with an even distribution. This also becomes clear when we display a diagram of the numerical values in column A, as shown in the example.

see fig. (click to enlarge)

Zufallszahlen in Excel mit Datenanalyse Abb.1
Zufallszahlen in Excel mit Datenanalyse Abb.2
Zufallszahlen in Excel mit Datenanalyse Abb.3

We hope that we could help you with our little tutorial regarding random numbers in Excel, also by using the data analysis option. Feel free to experiment with this feature to discover more possibilities.

Since we already used the term “analysis function” in the title, we now want to go into more detail about it. By default, this data analysis feature is not enabled in Excel. To enable data analysis option in Excel, you need to follow the following steps:

  • Open Excel and click on the “File” tab.
  • Click “Options“.
  • In the left pane of the Excel Options window, select Add-Ins.
  • From the Manage drop-down menu, select Excel Add-ins and click Go.
  • Check the box next to “Data Analysis” and click OK.
  • The data analysis feature should now be available in the “Data” tab in your ribbon and you can use the various data analysis tools.

If you don’t see the Data Analysis option in the list of available add-ins, you may need to install the add-in. To do this, simply click “Browse” to locate and install the add-in installation file.

see fig. (click to enlarge)

Excel Add-In Analysefunktion Abb.1
Excel Add-In Analysefunktion Abb.2

With the analysis function, you have expanded your options in Excel a good deal again, and we can also use the analysis function to determine random numbers. For our example, let’s take a new spreadsheet and click on “Data Analysis” on the “Data” tab. We have set the number of variables to 5, and we want 20 different random numbers to be generated for each variable with a “standard deviation” or normal distribution of 2.5.

We let Excel start the random number generation in cell A1. After clicking on “Ok” we are presented with our numbers with an even distribution. This also becomes clear when we display a diagram of the numerical values in column A, as shown in the example.

see fig. (click to enlarge)

Zufallszahlen in Excel mit Datenanalyse Abb.1
Zufallszahlen in Excel mit Datenanalyse Abb.2
Zufallszahlen in Excel mit Datenanalyse Abb.3

We hope that we could help you with our little tutorial regarding random numbers in Excel, also by using the data analysis option. Feel free to experiment with this feature to discover more possibilities.

Search for:

About the Author:

Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Search for:

About the Author:

Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Popular Posts:

1011, 2025

Fünf vor Zwölf: Wie Sie erkennen, dass Sie kurz vor dem Burnout stehen

November 10th, 2025|Categories: Career, Homeoffice|Tags: , , |

Erschöpfung ist normal, doch wenn das Wochenende keine Erholung mehr bringt und Zynismus die Motivation ersetzt, stehen Sie kurz vor dem Burnout. Erfahren Sie, welche 7 Warnsignale Sie niemals ignorieren dürfen und warum es jetzt lebenswichtig ist, die Notbremse zu ziehen

1011, 2025

Die Renaissance des Büros: Warum Präsenz manchmal unschlagbar ist

November 10th, 2025|Categories: Homeoffice, Career|Tags: , , |

Homeoffice bietet Fokus, doch das Büro bleibt als sozialer Anker unverzichtbar. Spontane Innovation, direktes Voneinander-Lernen und echtes Wir-Gefühl sind digital kaum zu ersetzen. Lesen Sie, warum Präsenz oft besser ist und wie die ideale Mischung für moderne Teams aussieht.

1011, 2025

New Work & Moderne Karriere: Warum die Karriereleiter ausgedient hat

November 10th, 2025|Categories: Internet, Finance & Shopping, Career, Homeoffice|Tags: , |

Die klassische Karriereleiter hat ausgedient. New Work fordert ein neues Denken: Skills statt Titel, Netzwerk statt Hierarchie. Erfahre, warum das "Karriere-Klettergerüst" deine neue Realität ist und wie du dich mit 4 konkreten Schritten zukunftssicher aufstellst.

911, 2025

Die Homeoffice-Falle: Warum unsichtbare Arbeit deine Beförderung gefährdet

November 9th, 2025|Categories: Internet, Finance & Shopping, Career, Homeoffice|Tags: , |

Produktiv im Homeoffice, doch befördert wird der Kollege im Büro? Willkommen in der Homeoffice-Falle. "Proximity Bias" lässt deine Leistung oft unsichtbar werden. Lerne 4 Strategien, wie du auch remote sichtbar bleibst und deine Karriere sicherst – ganz ohne Wichtigtuerei.

911, 2025

Microsoft Loop in Teams: The revolution of your notes?

November 9th, 2025|Categories: Microsoft Office, Microsoft Excel, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Software|Tags: , , |

What exactly are these Loop components in Microsoft Teams? We'll show you how these "living mini-documents" can accelerate your teamwork. From dynamic agendas to shared, real-time checklists – discover practical use cases for your everyday work.

911, 2025

Career booster 2026: These Microsoft Office skills will take you further!

November 9th, 2025|Categories: Microsoft Office, Microsoft Excel, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Software|Tags: , |

A new year, new career opportunities! But which Office skills will really be in demand in 2026? "Skilled use" is no longer enough. We'll show you today's must-haves – like advanced Excel, using AI in the office, and relevant certifications for your resume.

Offers 2024: Word & Excel Templates

Anzeige

Popular Posts:

1011, 2025

Fünf vor Zwölf: Wie Sie erkennen, dass Sie kurz vor dem Burnout stehen

November 10th, 2025|Categories: Career, Homeoffice|Tags: , , |

Erschöpfung ist normal, doch wenn das Wochenende keine Erholung mehr bringt und Zynismus die Motivation ersetzt, stehen Sie kurz vor dem Burnout. Erfahren Sie, welche 7 Warnsignale Sie niemals ignorieren dürfen und warum es jetzt lebenswichtig ist, die Notbremse zu ziehen

1011, 2025

Die Renaissance des Büros: Warum Präsenz manchmal unschlagbar ist

November 10th, 2025|Categories: Homeoffice, Career|Tags: , , |

Homeoffice bietet Fokus, doch das Büro bleibt als sozialer Anker unverzichtbar. Spontane Innovation, direktes Voneinander-Lernen und echtes Wir-Gefühl sind digital kaum zu ersetzen. Lesen Sie, warum Präsenz oft besser ist und wie die ideale Mischung für moderne Teams aussieht.

1011, 2025

New Work & Moderne Karriere: Warum die Karriereleiter ausgedient hat

November 10th, 2025|Categories: Internet, Finance & Shopping, Career, Homeoffice|Tags: , |

Die klassische Karriereleiter hat ausgedient. New Work fordert ein neues Denken: Skills statt Titel, Netzwerk statt Hierarchie. Erfahre, warum das "Karriere-Klettergerüst" deine neue Realität ist und wie du dich mit 4 konkreten Schritten zukunftssicher aufstellst.

911, 2025

Die Homeoffice-Falle: Warum unsichtbare Arbeit deine Beförderung gefährdet

November 9th, 2025|Categories: Internet, Finance & Shopping, Career, Homeoffice|Tags: , |

Produktiv im Homeoffice, doch befördert wird der Kollege im Büro? Willkommen in der Homeoffice-Falle. "Proximity Bias" lässt deine Leistung oft unsichtbar werden. Lerne 4 Strategien, wie du auch remote sichtbar bleibst und deine Karriere sicherst – ganz ohne Wichtigtuerei.

911, 2025

Microsoft Loop in Teams: The revolution of your notes?

November 9th, 2025|Categories: Microsoft Office, Microsoft Excel, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Software|Tags: , , |

What exactly are these Loop components in Microsoft Teams? We'll show you how these "living mini-documents" can accelerate your teamwork. From dynamic agendas to shared, real-time checklists – discover practical use cases for your everyday work.

911, 2025

Career booster 2026: These Microsoft Office skills will take you further!

November 9th, 2025|Categories: Microsoft Office, Microsoft Excel, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Software|Tags: , |

A new year, new career opportunities! But which Office skills will really be in demand in 2026? "Skilled use" is no longer enough. We'll show you today's must-haves – like advanced Excel, using AI in the office, and relevant certifications for your resume.

Offers 2024: Word & Excel Templates

Anzeige
2023-06-04T08:50:43+02:00By |Categories: Shorts & Tutorials, Microsoft Excel, Microsoft Office, Office 365|Tags: , |
Ads

Popular Posts:

Search by category:

Autumn Specials:

Anzeige
Go to Top