+ Reply to Thread
Results 1 to 5 of 5

I have the average number i need but want to generate random numbers

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    brisbane australia
    MS-Off Ver
    2010
    Posts
    12

    I have the average number i need but want to generate random numbers

    Hello
    I am creating an excel spread sheet for a project I am doing, I need to create a daily chart for 6 months of water usage that results in averaging set targets.
    I have made a chart with the average uses per day but would like to have daily numbers that average out to what i have but in a random sequence e.g. i have that a shower uses 320 litres per day for 2 people is there a way i can make a chart that says: 300 (a1) 340(a2) 260(a3) 360(a4) etc i need to do this for 180 days with random numbers generated to average the same overall. I dont know even how to generate random numbers.
    Thanks in advance
    Michael

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: I have the average number i need but want to generate random numbers

    Why ?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: I have the average number i need but want to generate random numbers

    =rand() will give a random number between 0 and 1. Over time this will average out to 0.5, but will not necessarily do so over a small sample, such as 4 data points in your example.

    =randbetween([Low number],[High number]) will give you a whole number between the two numbers specified, so in your example you could have =RANDBETWEEN(26,36)*10, but again there is no guarantee they will average to 320.

    If in A5 you had the target average (in this case 320) you could use the randbetween in A1:A3 and then in A4 have =(A5*4)-SUM(A1:A3)
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: I have the average number i need but want to generate random numbers

    Pl see attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-25-2014
    Location
    brisbane australia
    MS-Off Ver
    2010
    Posts
    12

    Re: I have the average number i need but want to generate random numbers

    thank you for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 11-18-2013, 04:24 PM
  2. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  3. generate a random number and use if function to generate new data
    By Dogdoc1142 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2006, 10:50 PM
  4. Replies: 6
    Last Post: 08-04-2005, 10:05 PM
  5. Replies: 4
    Last Post: 03-31-2005, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1