+ Reply to Thread
Results 1 to 8 of 8

Another #DIV/0 Question.

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    Ogden
    MS-Off Ver
    Excel 2007
    Posts
    53

    Another #DIV/0 Question.

    I am using this formula to sum up Parts of my sheet.

    =SUMIF('Current Inventory'!$B:$B,$B36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$C36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$E36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$D36,'Current Inventory'!$G:$G)/(7000/G36)

    The part of the line gives the #DIV/0 error. I have tried few things but it is not working. Any help would be appreciated.

    Dave

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Another #DIV/0 Question.

    Solving Div/0 is really easy (particularly in XL2007+ with the IFERROR function)

    =IFERROR(your_formula_goes_here, "what you want instead of the error goes here")


    But looking at your formula, it might not be doing what you think it's doing.

    Do you want:
    A) To get the result of the 4 sumifs added together, THEN devide by (7000/G36)
    Or
    B) Take the result of only the 4th sumif, devide that by (7000/G36) THEN add the other 3 sumifs


    Your formula actually does B

  3. #3
    Registered User
    Join Date
    02-26-2013
    Location
    Ogden
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Another #DIV/0 Question.

    Jonmo1,

    Thank you much for the reply.

    I am wanting it to do method B for sure.

    Dave

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Another #DIV/0 Question.

    Great, glad to help.

  5. #5
    Registered User
    Join Date
    02-26-2013
    Location
    Ogden
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Another #DIV/0 Question.

    I have tried this...=IFFERROR(SUMIF('Current Inventory'!$B:$B,$B36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$C36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$E36,'Current Inventory'!$G:$G)+SUMIF('Current Inventory'!$B:$B,$D36,'Current Inventory'!$G:$G)/(7000/G36),"Test")

    And now I get #NAME?

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Another #DIV/0 Question.

    There's only 1 F in IFERROR

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Another #DIV/0 Question.

    IFFERROR should be IFerror
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    02-26-2013
    Location
    Ogden
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Another #DIV/0 Question.

    Derp.... Got it!!

+ 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. [SOLVED] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  2. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  3. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM
  4. macro question and count question... thanks!
    By bstaff in forum Excel General
    Replies: 5
    Last Post: 02-07-2007, 10:12 AM
  5. Newbie Question - Subtraction Formula Question
    By admiral_victory@iol.ie in forum Excel General
    Replies: 3
    Last Post: 05-05-2006, 12:55 PM

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