+ Reply to Thread
Results 1 to 3 of 3

Random Number Generating

  1. #1
    Registered User
    Join Date
    06-20-2008
    Posts
    1

    Random Number Generating

    Hello everyone, I need some help here.

    I want to take a range of cells and generate a random percentage for each cell between 1% and 100% with the total combined value not to exceed 100%

    for example.

    cell a1 - 02% cell b1 - 03%
    cell a2 - 04% cell b2 - 12%
    cell a3 - 32% cell b3 - 22%
    cell a4 - 18% cell b4 - 17%
    cell a5 - 25% cell b5 - 37%
    cell a6 - 13% cell b6 - 08%
    cell a7 - 06% cell b7 - 01%

    total = 100% total = 100%

  2. #2
    Registered User
    Join Date
    05-17-2008
    Posts
    51

    Smile hi Tctees

    Check the attachment....u can hide the columns which have random numbers....

    hope this helps u

    Regards,
    guru
    Attached Files Attached Files

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    If you want even percents (i.e., exactly two decimals), then
    Please Login or Register  to view this content.
    B2 and down: =RAND()

    C2 and down: =IF( B2 = 0, 0, ROUND(B2 * (1 - SUM(C$1:C1) ) / ($B$9 - SUM(B$1:B1)), 2) )

+ 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