Solved

Division by 0 error check

Posted on 2012-03-29
7
244 Views
Last Modified: 2012-04-17
Hi guys whats the syntax trap Div/0 errors

=SUM(($B$34)/($B$33)) <===== else 0


Thanks
0
Comment
Question by:kingjely
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 47

Assisted Solution

by:Martin Liss
Martin Liss earned 100 total points
ID: 37785685
Look at this link. IfError
0
 
LVL 47

Assisted Solution

by:Martin Liss
Martin Liss earned 100 total points
ID: 37785689
0
 
LVL 8

Author Comment

by:kingjely
ID: 37785692
=IFERROR(SUM(($B$34)/($B$33)),"0")
=IFERROR(SUM(($B$34)/($B$33)),"END OF MONTH")
=IFERROR(SUM(($B$34)/($B$33)),0)


These all get the error #NAME?

Why?
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 29

Assisted Solution

by:IrogSinta
IrogSinta earned 50 total points
ID: 37785757
It looks like each of these have a non-breaking space (&nbsp) at the end so I'm assuming you copied the formula from a webpage and unintentionally included a space.  This space is not the same character as the one produced when hitting the spacebar on your keyboard.  Just delete that extra space after the last parenthesis and your formula should work.
0
 
LVL 8

Author Comment

by:kingjely
ID: 37785762
Hi
I copied and pasted from my spreadsheet directly onto here

=IFERROR(SUM(($B$34)/($B$33)),0)
=IFERROR(SUM(($B$34)/($B$33)),"0")
=IFERROR(SUM(($B$34)/($B$33)),"END OF MONTH")

Both dont work
0
 
LVL 16

Assisted Solution

by:Peter Kwan
Peter Kwan earned 50 total points
ID: 37785821
Please try:

=if(iserror(SUM(($B$34)/($B$33))),0)
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 50 total points
ID: 37786882
SUM function isn't required here, lets remove that for a start so you are left with

=$B$34/$B$33

Now that will only give you a #DIV/0 error if the divisor (B33 here) is zero or blank, so you can check that

=IF($B$33=0,0,$B$34/$B$33)

IFERROR is only available in Excel 2007 and later - in earlier versions you'll get #NAME? error, my suggestion will work in any version of Excel

regards, barry
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question