+ Reply to Thread
Results 1 to 6 of 6

removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

  1. #1
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    Hi there, see if anybody out there could help me with supress or remove #div/o! error, i have this formula that remove the highest and lowest values and average the middle 3 nunmbers out of five on col H26 every time y add the 2nd value to one of the five values the #DIV/0! ERROR appears, is there is a way to stop showing this erroR everytime i add the 2nd value out of the five, many thanks in advance for any help.

    I have attached a workbook with a example for a better reference
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    I used this in sheet1 E23. you can use the same principle on any of the other calcs...

    =IF(ISERROR(SUM(LARGE(H26:H35,{1,2}))),"",SUM(LARGE(H26:H35,{1,2})))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    If you are going to average C26:G26 with excluding the min and max, wouldn't you need at least three numbers?

    In H26, maybe...

    =IF(COUNT(C26:G26)>2,(SUM(C26:G26)-MIN(C26:G26)-MAX(C26:G26))/(COUNT(C26:G26)-2),0)
    HTH
    Regards, Jeff

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    Note that TRIMMEAN function can be used to average without the top and bottom values, i.e.

    =TRIMMEAN(C26:G26,2/COUNT(C26:G26))

    ....so you could use this version to prevent errors

    =IFERROR(TRIMMEAN(C26:G26,2/COUNT(C26:G26)),0)
    Last edited by daddylonglegs; 11-17-2012 at 09:21 PM.
    Audere est facere

  5. #5
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    Many thanks to Fdibbins, Jeffreybrown and daddlylonlegs, all formulas supress the #div/o! error, but was Jeffreybrown formula that nailed, thanks to all of you for taking of your time to help with this formula, really appreciated. Cheers

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: removing lowest and highest values and Supress, Hide or Remove #DIV/0! Error in

    happy to help and thanks for the rep

+ 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