+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : NORMINV and RAND

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    NORMINV and RAND

    Hello,

    I have a column in my spreadsheet that calculates a random number based on a mean of 2500 and a std deviation of 200.

    =NORMINV(RAND(),2500,200)


    The formula is producing the correct result but I need to add an upper and lower limit of 2700 and 2300 which is where I'm getting stuck.

    I'm struggling to figure out how to add this to the formula.

    For now I have utilized an IF function to keep the values in between the parameters.

    =IF(D3>2500,(2500),(IF(D3<2300,2300,D3)))

    Is anyone able to assist, please?

    Thank you for the help
    Last edited by jailed; 11-02-2011 at 02:21 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,351

    Re: NORMINV and RAND

    Hi jailed and welcome to the forum,

    You could look at the Median function to limit the answers. If the Rand() is between the bottom and top then it is returned. If the Rand() is greater than the top then the top is returned and etc for the bottom.

    hope that helps. It is kind of a trick but should work for you.
    Last edited by MarvinP; 11-05-2011 at 11:41 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: NORMINV and RAND

    Thank you for the assistance, this post lead me in the right direction.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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