+ Reply to Thread
Results 1 to 2 of 2

Averages using cells from a formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2023
    Location
    Lincoln, England
    MS-Off Ver
    2019
    Posts
    1

    Averages using cells from a formula

    Hi,

    I am attempting to get an average of numbers from a column however, these numbers are generated using a formula, like the one below:

    =IF($A$5="C1 - Mid (F)",(IF(E5>='base info KS4'!$C$7,"5",IF(E5>='base info KS4'!$C$6,"4",IF(E5>='base info KS4'!$C$5,"3",IF(E5>='base info KS4'!$C$4,"2",IF(E5>='base info KS4'!$C$3,"1",IF(E5>='base info KS4'!$C$2,"0"))))))))

    If each of these cells pumped out the numbers 3, 4 and 5 for example in A5, B5, and C5. I want to make an average of the three so I tried doing:

    =AVERAGE(A5:C5)

    If I wanted this average (3, 4 and 5) I would expect it to pump out 3 but instead it pumps out #DIV0!. Is it because the numbers are generated from a formula and its trying to average a formula? Is there a work around? Any help is very much appreciated, thanks.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: Averages using cells from a formula

    Notice that, the "numbers" inside of your formula ("5", "4", "2","3","2","1","0") are all enclosed in quotation marks, so they are treated as text strings (numbers stored as text). The AVERAGE() function ignores text (including numbers stored as text), so you end up with the #Div0 error, because there are no real numbers in the range. Remove those quotation marks so that your IF(...) formula returns actual numbers, and your AVERAGE() function should work just fine.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Replies: 2
    Last Post: 11-12-2019, 08:55 AM
  2. Replies: 3
    Last Post: 03-23-2017, 10:31 PM
  3. [SOLVED] Average Formula that averages certain cells based on how i filter.
    By phbryan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2015, 04:07 PM
  4. Average formula that averages the last 6 filled cells of a range
    By Nikki0195 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 02:14 PM
  5. Replies: 2
    Last Post: 11-06-2011, 08:16 PM
  6. formula to calculate averages of multiple ranges of cells
    By sophy_1402 in forum Excel General
    Replies: 3
    Last Post: 09-16-2011, 09:18 AM
  7. Formula, Averages by name, and differences of averages
    By billyvnilly in forum Excel General
    Replies: 3
    Last Post: 02-24-2010, 05:35 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