Solved

IF #div/0! replace with 0

Posted on 2015-02-04
4
124 Views
Last Modified: 2015-02-04
How do I edit this formula so it will still return a 0 if F2 = 0 as well as G2?

=IF(G2=0," ",(G2/F2))
0
Comment
Question by:robmarr700
[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
4 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40588563
=IF(OR(f2=0,G2=0),0,(G2/F2))
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40588578
For this case

=if(f2=0,0,g2/f2)

should be sufficient
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40588614
Yes, if G2 was 0, then the formula G2/F2 would yield 0 because 0 divided by any number equals 0.  So as was already mentioned by ssaqibh, all you really need is:
=IF(F2=0,0,G2/F2)
0
 
LVL 5

Expert Comment

by:Hakan Yılmaz
ID: 40588702
If you just want to see zero instead #div/0!, you may use, =IFERROR(G2/F2,0)
But this will hide other errors too.
0

Featured Post

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

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

724 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