+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    8

    SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges

    I am having an issue with a SUMPRODUCT Formula. In the attached excel, I am trying to take a weighted average of the square footage, versus the office. I know the formula would be (square footatage x the % of office)/total square footage. However, due to the format of my company's spreadsheet, I have to use multiple ranges in order to not include the totals for each building.

    All help is appreciated. My guess at the formula is in cell E565 (highlighted yellow in red font)

    Thanks.Sumproduct Issue.xlsx

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,128

    Re: SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges

    The "totals" for each building are the weighted average for that building. If you include them within the grand weighted average formula, they will not affect the result.

    =SUMPRODUCT(D6:D564,E6:E564)/SUM(D6:D564)


    Alternatively, you could have a criteria to exclude rows where column D is greater than say 1,000,000. All the building subtotals are greater than that and each datum is less.

    =SUMPRODUCT(D6:D564,E6:E564,--(D6:D564<1000000))/SUMIF(D6:D564,"<1000000")


    Both of these formulas should yield the same result (17.00% for your example data).

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges

    Perfect! Thanks for all the help!

+ 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