+ Reply to Thread
Results 1 to 9 of 9

error in formula returning #div

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    error in formula returning #div

    hi guys

    im using this formula

    =AVERAGEIF(AA4:BL43,F4:F43="D")

    only it returns #div/0

    the formula should return the average of cells AA4 to BL43 if in cells F4 to F43 it contains a "D"

    how can i get round this please?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: error in formula returning #div

    in general when using an averageif you don't use the equal sign. it is more like this... =AVERAGEIF(AA4:BL43,F4:F43,"D")
    But that will not work over a range. Maybe to get a better formula you can upload a workbook with sample data.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    Re: error in formula returning #div

    Hi sambo

    in cell BN5 is the formula
    if you have any questions please feel free to ask

    much appreciated
    Attached Files Attached Files

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: error in formula returning #div

    Hi, Try this.

    =AVERAGEIF($F$4:$F$43,"D",$BM$4:$BM$43)
    Click just below left if it helps, Boo?ath?

  5. #5
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    Re: error in formula returning #div

    thank you
    didnt see this till now

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: error in formula returning #div

    for the formula you presented you had the average backward, it should be this ... =AVERAGEIF(F4:F43,"D",BM4:BM43)

  7. #7
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    Re: error in formula returning #div

    doh
    omg sambo
    sort of sums me up backward.
    thank you buddy

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: error in formula returning #div

    You're welcome. Glad I could help.

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: error in formula returning #div

    Thank you for the rep!
    Last edited by Sam Capricci; 10-07-2019 at 06:37 AM.

+ 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. Formula not returning correct result. Formatting error or formula error?
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2019, 02:38 PM
  2. [SOLVED] Formula returning Value error
    By Mile029 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2016, 02:37 PM
  3. [SOLVED] IF Formula Returning with the #VALUE! Error
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2014, 07:55 AM
  4. [SOLVED] formula is returning a value error
    By jboser in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-19-2014, 09:01 AM
  5. Formula returning a Value Error
    By Bailey031285 in forum Excel General
    Replies: 5
    Last Post: 09-16-2011, 11:22 PM
  6. formula returning value error
    By keith6292 in forum Excel General
    Replies: 4
    Last Post: 03-12-2010, 06:35 PM
  7. [SOLVED] Formula returning #N/A Error---why???
    By Excel User in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2005, 10:05 AM

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