Excel help please
Results 1 to 11 of 11

Thread: Excel help please

  1. #1
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412

    Excel help please

    Could someone please have a look at attached Excel Zip File and tell me how to get rid of this " #DIV/0! ".
    Thank you so much.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2004
    Location
    North West England.
    Posts
    9,568
    Is it because the Cell you are trying to use contains no data, e.g. it has a 0 in cells B12:B36??


    Liam
    Desktop:I5 2500K|Asus P8Z68-V|8GB Corsair Vengeance|1280MB Nvidia 560 TI PE|1TB Seagate/60GB OCZ SSD|LG Blu-ray Writer|Corsair 750W
    27" iMac:I5 2500S|12GB Crucial DDR3|ATI 1GB 6970|1TB|Superdrive|Mighty Mouse

  3. #3
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412
    Thank you for your answer Liam.
    I might be wrong but I thought there was a way of not showing these #DIV/0! cell values????
    If you have noticed because of these #DIV/0!s I am not able to see the Totals in cells N37, P37 and V37.
    Basically I'd like to add quantities to B12 to B36 as I need them.
    Sorry to be a pain.

  4. #4
    Join Date
    Jul 2004
    Location
    North West England.
    Posts
    9,568
    The help file says:

    Possible causes and solutions

    Entering a formula that contains explicit division by zero (0)— for example, =5/0

    Change the divisor to a number other than zero.

    Using the cell reference to a blank cell or to a cell that contains zero as a divisor

    Note If the operand is a cell that is blank, Microsoft Excel interprets the blank as zero.

    Change the cell reference to another cell.

    Enter a value other than zero in the cell used as a divisor.

    Enter the value #N/A into the cell referenced as the divisor, which will change the result of the formula to #N/A from #DIV/0! to denote that the divisor value is not available.

    Prevent the error value from displaying, using the IF worksheet function. For example, if the formula that creates the error is =A5/B5, use =IF(B5=0,"",A5/B5) instead. The two quotation marks represent an empty text string.
    But i think as you go through and change the values in B12:B36 it will not display "#DIV/0!" in each according cell across the column.....and when you change the totals in the Profit column, e.g. N5:N36 it will change the overall total accordingly.

    Liam
    Desktop:I5 2500K|Asus P8Z68-V|8GB Corsair Vengeance|1280MB Nvidia 560 TI PE|1TB Seagate/60GB OCZ SSD|LG Blu-ray Writer|Corsair 750W
    27" iMac:I5 2500S|12GB Crucial DDR3|ATI 1GB 6970|1TB|Superdrive|Mighty Mouse

  5. #5
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412
    Point taken Liam...Appreciate it!

  6. #6
    Join Date
    Sep 2005
    Posts
    223
    There is
    You can trap a division by zero or other errors by using Excels iserr function in conjunction with an IF statement

    For example
    if(iserr(condition, what if true, what if false))

    If condition true tell it to do nothing that would be "" a nul string
    I use it all the time
    Friends don't let friends use Internet Explorer!

  7. #7
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412
    Forgive my novice knowladge PC Solutions, could you please give me an example relating to one of my #DIV/0! cells?
    I'll be honest I have never used ISERR.
    Cheers

  8. #8
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412
    WOW!!!!!!!
    I can't belive it PC Solitions!!!!!!!!
    It DID WORK!!!!! If you look at from Cell L12 to L36 (changed it to ISERR format) it worked...
    This link explains how to use ISERR clearly.
    http://www.techonthenet.com/excel/formulas/iserr.php
    Thank a lot.

  9. #9
    Join Date
    Mar 2002
    Location
    Dilham, The UK
    Posts
    412
    Sorry I forgat to attach the file.
    Attached Files Attached Files

  10. #10
    Join Date
    Sep 2005
    Posts
    223
    I havent looked at your spreadsheet at all
    The link you provided was very good, Except for one thing, if you want it to do nothing if the condition tests true.

    For example
    if(iserr(a division by zero or other bad condition, "", otherwise caclulate it))
    Watch the parenthesis. They are important

    Basically the way the formula work is this:
    If check for an error condition
    What do you want to do if the error condition is true?
    Most likely nothing, so give it a nul string
    Thats ""

    Else, what do you want to do if the error condition is false.
    Like I said, Iserr is a great Excel function. I use it all the time






    Glad it helped
    Last edited by PC Solutions; September 29th, 2005 at 08:48 PM.
    Friends don't let friends use Internet Explorer!

  11. #11
    Join Date
    Jul 2004
    Location
    North West England.
    Posts
    9,568
    Cool, glad it's sorted, Nice one PC Solutions.


    Liam
    Desktop:I5 2500K|Asus P8Z68-V|8GB Corsair Vengeance|1280MB Nvidia 560 TI PE|1TB Seagate/60GB OCZ SSD|LG Blu-ray Writer|Corsair 750W
    27" iMac:I5 2500S|12GB Crucial DDR3|ATI 1GB 6970|1TB|Superdrive|Mighty Mouse

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •