+ Reply to Thread
Results 1 to 3 of 3

Weighted Average Ignoring Errors

  1. #1
    Registered User
    Join Date
    01-25-2018
    Location
    Indianapolis, Indiana
    MS-Off Ver
    2016
    Posts
    3

    Weighted Average Ignoring Errors

    Good Morning,

    I am attempting to make a tracker that will allow me to monitor when contractors say they will work (Availability), versus when they actually work. This should be calculated based on the date and weighted based on the amount of hours. I am running into an issue because of errors caused by non-working days, which create errors. I have tried to use ISNUMBER and ISERROR functions, but with no luck. The columns used for this data tracking are BA thru CQ. The dates are located in Row 1. The results of the formula should be in column CC. Please let me know if you have any questions. Any assistance in helping me to resolve this issue is greatly appreciated. Thank you.

    Stephen G.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Weighted Average Ignoring Errors

    Welcome to the forum.

    I have to admit I'm not following exactly what it is you're doing. However, I can help you fix what you have in CC right now. There are two problems with the formula you have there.

    1.
    Don't surround the word TRUE with quotation marks - replace all the "TRUE" with just TRUE.

    2.
    The formulae in CD:CJ, as you obviously know, are giving errors. You can fix these by using AGGREGATE instead of just adding the cells together. For example, in CJ4 you have this:
    =((BB4+BE4+BH4+BK4+BN4+BQ4+BT4)/(BA4+BD4+BG4+BJ4+BM4+BP4+BS4))
    Replace it with this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can also remove the inner brackets round the cells references if you want - it gives the same result:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Apply the same principle to columns CD:CI.


    How it works
    Aggregate is a way of using other types of functions with certain 'ignore' criteria. The format is:
    AGGREGATE ( function number , options to ignore , array or references )
    Function number 9 is SUM
    Option number 6 is 'ignore error values'

    So the formula above means 'sum the first list of cells, ignoring any cells with errors and divide by the sum of the other list of cells also ignoring errors'.



    I suspect there is probably a more elegant way of calculating CC, possibly without the helper columns, but my brain appears to be on a go slow today, sorry. At least the above will get you something which works for now.
    Hope that helps a bit.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    01-25-2018
    Location
    Indianapolis, Indiana
    MS-Off Ver
    2016
    Posts
    3

    Re: Weighted Average Ignoring Errors

    Good Evening,

    My apologies for not responding sooner. I have used that and it seems to be working, however it brought up another issue that I will be asking for assistance on. Thank you for your help.

+ 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. calculate weighted average while ignoring null values (without using sumproduct)
    By justinhampton81 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-06-2017, 01:04 PM
  2. Query regarding Calculating Weighted average value or average value in Percentage.
    By adamsmith1337 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2016, 07:56 AM
  3. [SOLVED] Average even-numbered rows, ignoring #REF! errors
    By chrisrye13 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-20-2015, 09:45 PM
  4. Ignoring errors when calculating average
    By Excel15 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-20-2014, 03:16 PM
  5. Conditional weighted average ignoring #N/A values
    By syoung27 in forum Excel General
    Replies: 4
    Last Post: 02-22-2012, 10:48 AM
  6. Replies: 1
    Last Post: 01-25-2011, 10:37 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