+ Reply to Thread
Results 1 to 4 of 4

Problem with AVERAGE function

  1. #1
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Dunedin, New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    105

    Problem with AVERAGE function

    Hi

    I have column A - may contain "Surgery" or "*FSA"
    Column B - contains Scores e.g. 24, 30 etc

    I wish to find the mean of column B where Column A contains either "Surgery" or "*FSA"

    My formula:-

    =AVERAGE(IF(ISNUMBER(MATCH(A2:A10, {"*FSA", "Surgery"}, 0)), B2:B10))

    I enter the formula with Ctrl+Shift+Enter

    but I get zero as a result {I know there are scores that fit the criteria

    what am I misunderstanding?

    Thank you

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Problem with AVERAGE function

    Quote Originally Posted by H28Sailor View Post
    My formula:-
    =AVERAGE(IF(ISNUMBER(MATCH(A2:A10, {"*FSA", "Surgery"}, 0)), B2:B10))
    I enter the formula with Ctrl+Shift+Enter
    but I get zero as a result
    It works for me. The quickest way to get a dispositive answer is to attach an example Excel file that demonstrates the problem.

    If all the qualifying "numbers" in column B were text, or if none of the numbers qualified (despite your insistence to the contrary), the formula would result in a #DIV/0 error.

    So my guess is: the result is not truly zero, but a value that appears to be zero due to the cell format.

    Try formatting the cell as Scientific, just to be sure. Only 0.00E+00 is truly zero.

    But of course, we cannot say why that would be the case without seeing the data.

    [EDIT] PS.... Another guess is: the formula that you posted was not copy-and-pasted from the Formula Bar, and you unconsciously corrected the original error when you retyped the formula manually. Again, attaching an example Excel file will avoid these wild speculations.
    Last edited by joeu2004; 12-02-2015 at 12:31 PM. Reason: PS; cosmetic

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,626

    Re: Problem with AVERAGE function

    Try this
    Please Login or Register  to view this content.

  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: Problem with AVERAGE function

    Is the asterisk in *FSA being used as a wildcard or is it the literal character?

    Are the numbers in column B true Excel numbers or might they be TEXT numbers?

    Any leading/trailing whitespace characters within the data of column A?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Quick/Simple problem: Average function based on filtering rows? (please help!)
    By gilius in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-26-2014, 04:53 PM
  2. [SOLVED] AVERAGE function problem (probably)
    By Davzx in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-30-2013, 08:03 AM
  3. [SOLVED] Racketlon Excel ranking. Problem with the average and if function ??
    By throary in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-02-2012, 11:35 AM
  4. Average & Min Function Problem in Array Formula
    By mubashir aziz in forum Excel General
    Replies: 8
    Last Post: 05-20-2009, 02:07 AM
  5. Fill-down for the AVERAGE function, problem
    By Voctron in forum Excel General
    Replies: 2
    Last Post: 04-25-2009, 11:27 AM
  6. Average/IF function problem
    By fastballfreddy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2008, 02:57 PM
  7. Not quite the average problem with the average function
    By barrycarney in forum Excel General
    Replies: 3
    Last Post: 05-22-2008, 12:16 PM

Tags for this Thread

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