+ Reply to Thread
Results 1 to 11 of 11

Hide the Div/0 error?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Hide the Div/0 error?

    Hi guys,

    Got a slight problem with one of my spreadsheets.
    I'm populating a spreadsheet with data about our internet speed. The tests are conducted hourly on each day, and to the side of this data I have a summary area where I've set up three cells to display the slowest, fasted and average speed of each day. However, when there is no data in the field I recieve the #Div/0!.
    I'm not sure if i can use forumula considering it's already in each cell, and each cell uses conditional formatting also.

    Any help is appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Hide the Div/0 error?

    Would =IFERROR() help you?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Hide the Div/0 error?

    if the formula that produces the error is =A1/A2, use =IF(A2=0,"",A1/A2) to return an empty string, or =IF(A2=0,0,A1/A2) to return 0.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Hide the Div/0 error?

    Thanks, I'm aware of the formula that can be used, but is this possible considering the cells contain formula to display the highest, lowest and average download speeds.
    They're also subject to conditional formatting to differentiate between speeds.

  5. #5
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Hide the Div/0 error?

    From the information you have provided I don't see a problem in using =IFERROR(). Perhaps you need to upload a sample workbook.?

  6. #6
    Registered User
    Join Date
    04-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Hide the Div/0 error?

    Attatched, to the right of the Upload Speed, there are 3 coloured cells that each contain the error. Note that they each contain formula and conditional formatting.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Hide the Div/0 error?

    I don't see why you cant use =IFERROR(AVERAGE(),0)... What do you want to happen when there is no data and the error occurs?

  8. #8
    Registered User
    Join Date
    04-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Hide the Div/0 error?

    Thanks. The cell being left blank is fine so I'd use " " within the formula. But if you notice on the cells where data is present, you still receive the green marker in the corner (top left of cell). Any idea why this happens?

  9. #9
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Hide the Div/0 error?

    You should rather use "" in the =IFERROR() formula instead of " ".

    With regards to the "green marker", it does not appear because of the =IFERROR(); you will notice that if you select any cell with the =AVERAGE() calculation (and without =IFERROR()) and hit F2 and then Enter, the "green marker" also appears. It appears because Excel is telling you that there are values next to the range on which you are calculating the average that are not included in said range. Obviously in your case this is not a mistake, but Excel does not know that.

  10. #10
    Registered User
    Join Date
    04-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Hide the Div/0 error?

    Quote Originally Posted by Søren Larsen View Post
    You should rather use "" in the =IFERROR() formula instead of " ".

    With regards to the "green marker", it does not appear because of the =IFERROR(); you will notice that if you select any cell with the =AVERAGE() calculation (and without =IFERROR()) and hit F2 and then Enter, the "green marker" also appears. It appears because Excel is telling you that there are values next to the range on which you are calculating the average that are not included in said range. Obviously in your case this is not a mistake, but Excel does not know that.


    Oh right, so it's more of a notification that I've potentially missed cells from a calculation, rather than a notification telling me I've got an error with my formula.

  11. #11
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Hide the Div/0 error?

    Quote Originally Posted by Vermilion View Post
    Oh right, so it's more of a notification that I've potentially missed cells from a calculation, rather than a notification telling me I've got an error with my formula.
    Exactly right!

+ 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