+ Reply to Thread
Results 1 to 2 of 2

Random Sampling in Excel

  1. #1
    Registered User
    Join Date
    08-01-2009
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2003
    Posts
    12

    Random Sampling in Excel

    I had requested file earlier and Martin Wilson graciously helped me out with my problem. I have another issue in the same file.


    In the attached excel file, I have raw data which needs to be randomly sampled.
    1979-2008

    Here in the excel I am computing averages. What I need to do is incorporate a formula if a cell is selected.

    1: Treat the cell selected as T7. Move up 7 years and select cell as T1 and incorporate the following formula --> (T7/T1)^(1/7)-1 which will give me the compounded annual growth rate. Example: if the random cell selected is August 2000 (H23 in Excel Sheet1) then the formula will be such (H23/H17)^(1/7)-1 . this also means that the cells above 1985 cannot be randomly selected as the simulation will move up....

    Additionally on Sheet 2, I want the data to move up and select seven 12 month periods i.e. if Random cell is May 2000(in excel sheet 2 - H23) then the seventh period should be June 1993 (in excel sheet 2 - I17). the simulation should average all the cells in between, rows and columns.


    I have been trying and trying but can't seem to get it to work. Please help Thanks
    Rahul
    Attached Files Attached Files
    Last edited by rahulk; 08-06-2009 at 12:58 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Need help with Excel programming....On a deadline

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ 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