+ Reply to Thread
Results 1 to 8 of 8

#DIV/0 help

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    #DIV/0 help

    Hey guys

    Quick question, these are my formulas

    I need to put an isserror into my formula to stop #div/0 any ideas where i can put this ?

    =ROUND(SUM('CTO < £250k'!AV116)/1000,0)+ROUND(SUM('CTO > £250k'!AV116)/1000,0)&"k"& " (3yrs @ 15/mth)"

    =(('CTO < £250k'!AV120)+('CTO > £250k'!AV120))/2

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: #DIV/0 help

    As you're never dividing by 0 in those formula the only way you can get a DIV/0 error is if that's the contents of cells AV116 or AV120 on the CTO < £250k sheet.

    That being the case you'd be better off fixing that sheet. However, you could simply modify your formula to:

    =ROUND(SUM(IFERROR('CTO < £250k'!AV116,0))/1000,0)+ROUND(SUM(IFERROR('CTO > £250k'!AV116,0))/1000,0)&"k"& " (3yrs @ 15/mth)"

    And

    =IFERROR((('CTO < £250k'!AV120)+('CTO > £250k'!AV120))/2,0)

    Is that what you're after?

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: #DIV/0 help

    In front of your formulas.


    =IFERROR((('CTO < £250k'!AV120)+('CTO > £250k'!AV120))/2,"")

    =IFERROR(ROUND(SUM('CTO < £250k'!AV116)/1000,0)+ROUND(SUM('CTO > £250k'!AV116)/1000,0)&"k"& " (3yrs @ 15/mth)","")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: #DIV/0 help

    HI Andrew/ Fotis1991

    Thats exactly what i need, i need help on the these additional three,

    if you dont mind helping

    =ROUND('CTO < £250k'!AV5,0)+ROUND('CTO > £250k'!AV5,0)&" (3yrs)"
    =ROUND('CTO < £250k'!AV26/1000000,0)+ROUND('CTO > £250k'!AV26/1000000,0)&"m"&" (3yrs)"
    =ROUND(('CTO < £250k'!AV28/1000000),1)+ROUND(('CTO > £250k'!AV28/1000000),1)&"m"&" (3ys)"

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: #DIV/0 help

    It should work the same with all of these.

    You start off with:

    =YourFormula

    And end up with:

    =IFERROR(YourFormula,"Error message/blank/whatever")

  6. #6
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: #DIV/0 help

    Hi Andrew R

    i am really struggling changing this formula

    =ROUND(('CTO < £250k'!AV28/1000000),1)+ROUND(('CTO > £250k'!AV28/1000000),1)&"m"&" (3ys)"

    I have tried =round(sum(IFERROR('CTO < £250k'!AV28/1000000)+round(sum(IFERROR('CTO > £250k'!AV28/1000000)&"k"& " (3yrs @ 15/mth)"

    but getting getting errror messages

    would appreciate any help available

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: #DIV/0 help

    You've got your brackets all mixed up.

    IFERROR checks to see if an expression returns an error; if it does not then it returns the results of the expression, if it does it returns a specified value. So the syntax is:

    =IFERROR(<expression>, <error value>)

    So what you want is:

    =IFERROR(ROUND(('CTO < £250k'!AV28/1000000),1)+ROUND(('CTO > £250k'!AV28/1000000),1)&"m"&" (3ys)","")

    Where the section is bold is your entire original formula and the double quotes at the end indicate that a blank value is returned if the formula returns an error.

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

    Re: #DIV/0 help

    fyi
    =ROUND(SUM('CTO < £250k'!AV116)/1000,0)+ROUND(SUM('CTO > £250k'!AV116)/1000,0)

    is the same as
    =ROUND('CTO < £250k'!AV116/1000,0)+ROUND('CTO > £250k'!AV116/1000,0) no need for sum in there
    "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

+ 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