+ Reply to Thread
Results 1 to 3 of 3

Calculate Weighted Average with Conditions

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Calculate Weighted Average with Conditions

    Hi,

    I have sample data in A:G which I would like to use to calculate in column I the weighted average sales growth % each month.

    The values used to weight the sales % numbers are those at the end of the previous month. For example, in Jan 2022 the values at Dec 2021 are used as weights for the average sales %.

    When a product has a blank cell for its sales % in a particular month (e.g. Feb 2022 for Product 1 in my example), its value (200) will not be used in the next month to calculate the weighted average of the products that don't have a blank cell for Sales % (e.g. Products 2 and 3 for Feb 2022)

    You'll notice in column I that I have a different formula in each cell to take account of this but can someone please suggest a formula that would accommodate the requirements mentioned above and which can be used in all circumstances?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculate Weighted Average with Conditions

    Non_365 offering:

    in I4

    =SUMPRODUCT(($B3:$F3)*($C4:$G4)*($C4:$G4<>"")*($B$2:$F$2="Value"))/SUMPRODUCT(($B3:$F3)*($C4:$G4<>"")*($B$2:$F$2="Value"))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Calculate Weighted Average with Conditions

    Thank you!

+ 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. [SOLVED] How to calculate weighted average.
    By Venkat Babu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2021, 02:22 PM
  2. [SOLVED] Calculate weighted average
    By teatea in forum Excel General
    Replies: 7
    Last Post: 04-24-2020, 09:10 AM
  3. [SOLVED] How to calculate weighted average
    By Raehan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2017, 11:45 AM
  4. weighted average discount - SUMPRODUCTIF - with multiple conditions?
    By G13Ronan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-14-2014, 02:55 PM
  5. Calculate Weighted Average using Sum product and Conditions
    By sathishpalaniswamy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2014, 05:06 AM
  6. Weighted average with specific conditions
    By lfmemp in forum Excel General
    Replies: 0
    Last Post: 07-30-2012, 11:00 AM
  7. Weighted Average with NA...can't calculate
    By salmanjan in forum Excel General
    Replies: 5
    Last Post: 04-18-2008, 08:24 PM

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