+ Reply to Thread
Results 1 to 3 of 3

Can I create a random number without Analysis ToolPak?

Hybrid View

  1. #1
    Forum Contributor rkjudy's Avatar
    Join Date
    03-31-2009
    Location
    Longview, TX
    MS-Off Ver
    MS Office 2010
    Posts
    239

    Can I create a random number without Analysis ToolPak?

    I have a complex workbook with many sheets and many macros. I need to generate a random number in a particular cell on one of the sheets. I tried using RANDBETWEEN, but it returned #NAME? because Excel said it required the Analysis Toolpak Add-in. I loaded this Add-in and it worked fine, but it slowed my workbook down to a crawl. I uninstalled the Add-in and it went back to working just fine. Is there anyway to create a random number, say between 10000 and 99999 without the Analysis Toolpak or otherwise slowing down my workbook?
    Last edited by rkjudy; 01-10-2011 at 11:20 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Can I create a random number without Analysis ToolPak?

    Try

    =INT((99999-10000+1)*RAND()+10000)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor rkjudy's Avatar
    Join Date
    03-31-2009
    Location
    Longview, TX
    MS-Off Ver
    MS Office 2010
    Posts
    239

    Thumbs up Re: Can I create a random number without Analysis ToolPak?

    Perfect Solution!

+ 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