+ Reply to Thread
Results 1 to 3 of 3

Complex average formula.

  1. #1
    Registered User
    Join Date
    01-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Complex average formula.

    Hi Guys,
    I need help with a calculation of complex average formula. I seek macro code of this so that I can incorporate it in my VB.NET application.

    If you open the attachment with this post, you'll find the excel report I am trying to generate.

    The number of columns vary, but the number of rows is constant.

    Lets assume, max_col is the number of columns and max_row is the number of rows per report.
    Then, I need the following logic as VB macro.

    for row = 6
    F6 = (G6*G4) + (H6*H4) + (I6*I4)+...+ ("max_col:6" * "max_col:4") / (G4+H4+I4... "max_col:4")

    Any Excel pro out there who can help me ?

    Thanks,
    Little_Birdie
    Attached Files Attached Files
    Last edited by little_birdie; 02-05-2009 at 07:25 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Complex average formula.

    Hi

    Here's one way

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    01-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Complex average formula.

    Rylo,
    Thanks for the answer, works just as needed.

+ 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