+ Reply to Thread
Results 1 to 4 of 4

Either/Or within a SUMIFS formula (part of a weighted average formula)

  1. #1
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Either/Or within a SUMIFS formula (part of a weighted average formula)

    Hello Smarter-Than-Me People -
    I am creating a weighted average formula where one of the columns ("W") could be either a) blank, b) have the number "0", or c) have the number "12". The only problem I'm having with the formula below is that I want the blank cells (no entry) and the cells with a "0" to behave the same. In other words an empty cell is the same as having a "0" in the cell. I don't care about the number "12" for this formula -- that's already solved, as there is no either/or problem with that formula. The formula below (my problem) does as it should for the blank cells but not the cells with a "0". And, yes, I've probably gotten carried away with the CHOOSE function. I added that after searching for solutions (never used that function before). Thanks for your help! It really is appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Either/Or within a SUMIFS formula (part of a weighted average formula)

    Maybe this...

    =IF($B6=0,"",IF($B6="","",SUM(SUMIFS('Locked Loans'!$C:$C,'Locked Loans'!$W:$W,{"",0},'Locked Loans'!$E:$E,$A6))/SUMIFS('Locked Loans'!$C:$C,'Locked Loans'!$E:$E,$A6)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Either/Or within a SUMIFS formula (part of a weighted average formula)

    That worked! Thank you very much, Tony. Have a nice evening.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Either/Or within a SUMIFS formula (part of a weighted average formula)

    You're welcome. Thanks for the feedback!

+ 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. sumifs for weighted average
    By amartino44 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2013, 05:43 PM
  2. Moving Weighted Average formula
    By Ori in forum Excel General
    Replies: 8
    Last Post: 08-22-2011, 12:51 PM
  3. [SOLVED] calculating a weighted average using formula
    By KL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  4. [SOLVED] calculating a weighted average using formula
    By bob green in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. calculating a weighted average using formula
    By bob green in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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