Results 1 to 9 of 9

Calculating average in excel with an OFFSET range

Threaded View

gentles Calculating average in excel... 11-23-2010, 04:54 AM
DonkeyOte Re: Calculating average in... 11-23-2010, 04:58 AM
gentles Re: Calculating average in... 11-23-2010, 05:08 AM
DonkeyOte Re: Calculating average in... 11-23-2010, 05:32 AM
gentles Re: Calculating average in... 11-24-2010, 03:07 PM
DonkeyOte Re: Calculating average in... 11-24-2010, 03:40 PM
zbor Re: Calculating average in... 11-23-2010, 05:31 AM
gentles Re: Calculating average in... 11-27-2010, 05:40 PM
DonkeyOte Re: Calculating average in... 11-28-2010, 05:49 AM
  1. #1
    Registered User
    Join Date
    11-22-2010
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    5

    Calculating average in excel with an OFFSET range

    Hi all, this looks like a great forum!

    I want to calculate the average for the 5 previous days only IF it is the last day of the month. I want to display that average next to the last day of each month.

    Here is my line of code for the average function, I am not sure how to write it when it refers to an offset of the active cell rather than a set range. I will add a loop after i find this to fill the entire range

    ActiveCell.Offset(0, 1) = Application.WorksheetFunction.Average(Range(ActiveCell.Offset(1, 1).Value: ActiveCell.Offset(5, 1)))
    Sorry if this is a very confusing question, I have done a lot of searching about this...and it seems quite specific.

    Thanks!
    Last edited by DonkeyOte; 11-23-2010 at 04:58 AM.

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