+ Reply to Thread
Results 1 to 4 of 4

Rand()

  1. #1
    Registered User
    Join Date
    04-17-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    5

    Rand()

    Hello

    I have a bit of a complicated problem.

    I have a column of returns I have to sort out by random numbers that I generate and calculated prices based on this information.

    What I am supposed to do is calculate the mean of those prices based on the randomly sorted returns.

    I can manage the code to do this once but I am required to call this macro a thousand times and output it on a different sheet. How do I get to do this thousand times where in I can get the macro to give me the mean price for each sorting in separate cells.

    Also I need to switch off screen updating each time the random numbers are calculated on the spreadsheet and I try to put code to switch it off but each time I drag the cell containing RAND() to get random numbers for each cell i.e. the first cell number changes even when I put code to switch off screen updating.

    I am attaching the spreadsheet.

    Please help me out if you have any ideas or code that could help me.
    Last edited by teylyn; 05-07-2010 at 05:40 AM. Reason: restored post

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

    Re: Random Number Sorting and Calculation

    Maybe like this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-17-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Rand()

    Thanks Again. Thanks Again
    Last edited by masalagirl; 05-07-2010 at 05:15 AM.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Rand()

    masalagirl,

    is there any reason why you edited and deleted your original question after you received an answer? If a post has received a reply you should not change it.

    I've restored the original text.

+ 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