+ Reply to Thread
Results 1 to 3 of 3

Custom weighted average function for 3d ranges

  1. #1
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Custom weighted average function for 3d ranges

    I have a Lotus 1-2-3 spreadsheet which I created a long time ago, and which I need to convert to Excel. It has many uses of the @weightavg function and they are applied to 3d ranges. In trying to convert this to Excel, I got pointed in the direction of using the indirect function. This gets cumbersome, so I'm considering writing vba code to do this since I can imagine it will be useful for other things as well. I'm hoping someone can get me jump started on the best way to go about this.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Custom weighted average function for 3d ranges

    No one may be able to help unless you upload a small sample excel file.
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Re: Custom weighted average function for 3d ranges

    This is what works:
    =SUMPRODUCT(N(INDIRECT("'"&$Q58:AE58&"'!"&"H22")),N(INDIRECT("'"&$Q58:AE58&"'!"&"H67")),N(INDIRECT("'"&Q58:AE58&"'!"&"B51")))/K11

    I would like to create a generalized version of this as a user defined function which would allow me to simply specify the 3d ranges I wish to use to do the sumproduct on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Function for Weighted Percentile
    By Agferna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2014, 02:54 PM
  2. Calculate weighted average for values between two date ranges.
    By chan069 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-25-2014, 01:12 AM
  3. Weighted average based on various date ranges (SUMIFS or SUMPRODUCT)?
    By MajorMattMason in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-14-2014, 09:34 PM
  4. [SOLVED] Getting a weighted average out of ranges
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2013, 01:22 PM
  5. SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges
    By arcobalt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2012, 04:55 PM
  6. Replies: 6
    Last Post: 10-30-2012, 02:35 PM
  7. custom date and time weighted average!!
    By jfzaki in forum Excel General
    Replies: 3
    Last Post: 09-24-2009, 04:01 AM

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