+ Reply to Thread
Results 1 to 6 of 6

Weighted Average with NA...can't calculate

  1. #1
    Registered User
    Join Date
    09-17-2007
    Posts
    43

    Weighted Average with NA...can't calculate

    I am looking to get weighted average at the very end of the spreadsheet, but due to NA (some items not applicable) the forumal is giving me error ie., #VALUE!

    The reason for this is that it is including the text NA into calculation, whereas I want to calculate the weighted average, can anyone please help me in finding the solution to this problem.

    Problem statement:
    The Total Score should exclude NA, and should give weighted average percentage for percentages shown for Data Entry & Underwriting only.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by salmanjan
    I am looking to get weighted average at the very end of the spreadsheet, but due to NA (some items not applicable) the forumal is giving me error ie., #VALUE!

    The reason for this is that it is including the text NA into calculation, whereas I want to calculate the weighted average, can anyone please help me in finding the solution to this problem.

    Problem statement:
    The Total Score should exclude NA, and should give weighted average percentage for percentages shown for Data Entry & Underwriting only.

    Thanks in advance!
    Why not just leave out the references to C7 & C33? i.e.

    Please Login or Register  to view this content.
    Rgds

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Or if you must refer to it, may be this

    =IF(G7="NA",(C34*C18+C30*C35)/(C18+C30),(C33*C7+C34*C18+C30*C35)/(C7+C18+C30))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Perhaps try

    =SUMPRODUCT((A7:A30="")+0,C7:C30,G7:G30)/SUMPRODUCT((A7:A30="")+0,C7:C30)

  5. #5
    Registered User
    Join Date
    09-17-2007
    Posts
    43

    Weighted Average with NA....cant calculate

    Cell with NA has to be included, as there could be a possibility that in some cases it is applicable, so we can not have different work sheets for different scenarios.

    Ok....so the Weighted Average Percenatge is coming out as:

    74.8684368%
    with =(C34*C18+C30*C35)/(C18+C30) and

    =IF(G7="NA",(C34*C18+C30*C35)/(C18+C30),(C33*C7+C34*C18+C30*C35)/(C7+C18+C30)) formula.....and since that field with NA is sometimes applicable and sometimes not therefore I guess this formula works best for me in curent situation.

    This formula =SUMPRODUCT((A7:A30="")+0,C7:C30,G7:G30)/SUMPRODUCT((A7:A30="")+0,C7:C30) is giving me 72.6920288%, which is not correct, or am I referring to incorrect cells.

    I have found the solution courtesy oldchippy post......thanks Richard Buttery, oldchippy and daddylonglegs.....

    Regards,
    Last edited by salmanjan; 04-18-2008 at 05:56 PM.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by salmanjan
    This formula =SUMPRODUCT((A7:A30="")+0,C7:C30,G7:G30)/SUMPRODUCT((A7:A30="")+0,C7:C30) is giving me 72.6920288%, which is not correct, or am I referring to incorrect cells.
    Yes, I see. Try

    =SUMPRODUCT((A7:A30="")+0,C7:C30,G7:G30)/SUMPRODUCT((A7:A30="")+0,--ISNUMBER(G7:G30),C7:C30)

+ 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