+ Reply to Thread
Results 1 to 2 of 2

Weighted Average Formula Multiple colums Ignore 0

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    547

    Weighted Average Formula Multiple colums Ignore 0

    Attached is a copy of survey data I am putting together and it requires the use of weighted averages. Weighted average is based off the count of participants and the type of data. Type of data in here is what we refer to as TCC, wRVU per TCC, wRVU and Base Pay.

    The formula is required in columns CG:CV. There is a formula in there already but it fails simply because some of the criteria have the count of participats but they have no related values. So follwing an example, please go to cell CR4. In CR4 the formula does not calculate the weighted average properly because there is not data in column BK but there is data in BG. In this case I want the formula not to perform the weighted average on sections that do not have data. Currently CR4 is displaying $64.2 and it is reducing that value because of thsoe 0 values in BK. What I want the result to be is actually $80.70.

    Can someone help me create the logic around this. I know there are some really good formula people in here.

    Thank for looking and let me know if you have additonal questions.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Weighted Average Formula Multiple colums Ignore 0

    in CR4, change your formula to

    =IFERROR((($S4*W4)+($AM4*AQ4)+($BG4*BK4))/(IF(W4=0,0,$S4)+IF(AQ4=0,0,$AM4)+IF(BK4=0,0,$BG4)),0)

    If you had a different data structure, you could use SUMPRODUCT(...)/SUMIFS(...) but that would require a lot of changes.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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 do i calculate weighted average hours and weighted average overtime rate
    By RoniBStew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2023, 03:36 PM
  2. [SOLVED] Weighted Average with multiple criteria
    By mvujovic in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-16-2022, 09:43 AM
  3. Weighted Average with Multiple Variables
    By Na2ralSelection in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2021, 03:05 AM
  4. Replies: 0
    Last Post: 02-15-2018, 03:04 AM
  5. [SOLVED] Weighted Average formula / SUMPRODUCT to ignore blank cells
    By macrorookie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2014, 08:05 PM
  6. Replies: 6
    Last Post: 10-30-2012, 02:35 PM
  7. Weighted Average with multiple variables
    By bigtoad in forum Excel General
    Replies: 4
    Last Post: 02-27-2011, 04:07 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