Need some suggestions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two spreadsheets. I need to average some data and pass that
information to the other spreadsheets through code.

The information I need is average by Month by Hour. The first spreadsheet
has rows of days and months (1-Jan , 2-Jan , etc…) for a whole year and
columns of 15 minutes times (7:00,7:15:7:30,7:45, etc…).

So I need to get data by Month by Hour (Jan 7:00 = ). I was trying to think
of a loop that would cycle through the first spreadsheet and populate the
second but I haven’t really ever program in excel before. Any help would be
GREAT!
 
Here's the a basic macro that averages you'll have to modify it a little hope
that helps.


avg = Application.Average(Range("Sheet1!D1:D7"))
Worksheets("Sheet2").Range("A8") = avg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top