+ Reply to Thread
Results 1 to 1 of 1

Random Sampling and averaging using VBA code

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

    Random Sampling and averaging using VBA code

    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.

    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

+ 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