SlideServe
Menu
Préférences
© SlideServe · v2026

Generating Random Numbers and Dates in Excel: A Comprehensive Guide

teigra avatar
4 diapositives · 249 Views · Sep 17, 2014

This guide explains the simple process of generating random numbers and dates in Excel. Using functions like `RAND()` and `RANDBETWEEN()`, you can generate random integers, decimals, and dates within specified ranges. Learn how to create random dates between the years 2000 and 2011, and generate alphanumeric data for various applications. Includes detailed examples such as generating numbers based on specific distributions, and combining text with random numbers for applications like fleet management. Prepared by Sam Mosallaeipour.

Generating Random Numbers and Dates in Excel: A Comprehensive Guide - slide 1
01 / 4Generating Random Numbers and Dates in Excel: A Comprehensive Guide
1 / 17

Télécharger la présentation

Generating Random Numbers and Dates in Excel: A Comprehensive Guide
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Random Number Generation • Dates • Setting up Random Dates is a simple process using the Date function. =Randbetween(StartDate,EndDate) Dates in a Range of Years =Randbetween(Date(2000,1,1),Date(2011,12,31)) Will give a list of Random dates between 1 Jan 2000 and 31 Dec 2011 Dates in a Month =Date(2010, 6, Randbetween(1,30)) Will give a list of Random dates between 1 June 2010 and 30 June 2010 Prepared by Sam Mosallaeipour

  2. Random Integers Return Integers between Start and Finish • =Randbetween(Start, Finish) • =Randbetween(50, 100) • Will return an Integer between 50 and 100 • Random Numbers =Rand() Will return a random number between 0 and 1 If you want to generate a uniform distribution you should use “=RAND ()*(b-a) +a” which produce a set of numbers between a And B with a uniform distribution. =Round(Rand()*100, 2) Will Return Numbers between 0 and 100 with 2 Decimal places Prepared by Sam Mosallaeipour

  3. Random Numbers Based on a Distribution =Norminv(Rand(), Mean, SD) Will return a random number between 0 and 1 based on a distribution of Average = Mean and Standard Deviation = SD =Norminv(Rand(), 50, 17) Will return a random number between 0 and 100 based on a distribution of Average = 50 and Standard Deviation = 17, • Random Numbers Fitting a Trend If your distribution has to match a trend add a Random component to the Trends equation eg; Y=mX+c = rand() * X + rand()*5 = rand() * A2 + rand()*5 Prepared by Sam Mosallaeipour

  4. Combination Text and Numbers The above techniques can be combined to make lists of Alpha Numeric Data Say your business has a fleet of vehicles (TR=Truck, VN=Van, CAR=Car) =Choose(Randbetween(1,3),”TR”,”VN”,”CAR”) & Text(Randbetween(1,15),”0#”) Will randomly choose 1 of “TR”,”VN”,”CAR” and add a random number between 1 and 15 to it format with a leading 0, eg: TR05 Prepared by Sam Mosallaeipour