+ Reply to Thread
Results 1 to 7 of 7

Working out Ave when #div/0 codes

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    88

    Working out Ave when #div/0 codes

    Hi attached exmaple spread sheet..

    I want the Average figures from b2-m2 in cell n2...

    Iv looked on here and tried =AVERAGE(IF(ISNUMBER(U8:AF8),U8:AF8))

    but I dont get it, can anyone please help
    Attached Files Attached Files

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Working out Ave when #div/0 codes

    Your formula needs to be =AVERAGE(IF(ISNUMBER(B2:M2),B2:M2)). It was missing the second B2:M2. Also, it needs to be confirmed with Ctrl+Shift+Enter and not just Enter.

  3. #3
    Registered User
    Join Date
    11-18-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    88

    Re: Working out Ave when #div/0 codes

    Hi I have added the correct details..

    when I Ctrl+Shift+Enter it just confirms the code in cell N2...

    Am I doing something wrong?

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Working out Ave when #div/0 codes

    when I Ctrl+Shift+Enter it just confirms the code in cell N2...
    When you do this, is your cursor in the formula bar when you hit this combo? If so, you should see curly brackets {} around the entire formula. Clicking anywhere in the formula bar afterward will remove these brackets and necessitate reconfirming the formula.

  5. #5
    Registered User
    Join Date
    11-18-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    88

    Re: Working out Ave when #div/0 codes

    Thats got it, must have moved the cursor...

    Can I ask the reason why for the Ctrl+shift and enter rather than enter what does this do?

    Just so I dont have to keep bothering people.

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Working out Ave when #div/0 codes

    It's used to enter the formula as an array formula. Array formulas are used when you have a function that normally applies to only one cell (in this case, Isnumber) that you want to apply to a range of cells. It forces the formula to take each case individually according to the functions and convert them to TRUE/FALSE or values as appropriate.

    I'm not really sure why Microsoft deemed it necessary to add this step, but oh well...That's the way it is.

  7. #7
    Registered User
    Join Date
    11-18-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    88

    Re: Working out Ave when #div/0 codes

    Thanks for the help and explaining....

+ 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