#DIV/0! Error!!!!!!

R

rmeister

The following Formula is what I am using. I get the result of #DIV/0!
If I want this to return 0 for this error how would I write the
following formula.

=VLOOKUP($A$41,'38 MTD'!$A$3:$E$410,5,FALSE)/VLOOKUP($B$41,'38
MTD'!$A$3:$E$410,5,FALSE)

Thank You In Advance.
 
D

Daniel CHEN

=if(iserror(Your-Formula),0,YourFormula)
--
Best regards,
---
Yongjun CHEN
=================================
XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
- - - - www.XLDataSoft.com - - - -
Free Excel-Based Data Processing Tool is Available for Download
Free Excel / VBA Training Materials is Available for Download
=================================
 
P

Pete_UK

You get this error because you are trying to divide by zero. Hence, the
second part of your formula is returning a zero. So, to avoid the
error, you need to check if this returns zero and if so you want some
other value returned. This is how:

=IF(VLOOKUP($B$41,'38
MTD'!$B$3:$E$410,5,FALSE)=0,"zero",VLOOKUP($A$41,'38
MTD'!$A$3:$E$410,5,FALSE)/VLOOKUP($B$41,'38 MTD'!$B$3:$E$410,5,FALSE))

All one formula - replace the "zero" message with one to your liking.

Hope this helps.

Pete
 
G

Guest

=IF(ISERROR(Your_Formula),0,Your_Formula)

=IF(ISERROR(VLOOKUP($A$41,'38 MTD'!$A$3:$E$410,5,FALSE)/VLOOKUP($B$41,'38
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HELP!! New to Excel. Need complex SUMIF. 0
#DIV/0! error 4
Another DIV/0 Error 2
Vlookup 4
DIV/O error 1
Error #DIV/0! 3
Div 0 help 1
Div / 0 5

Top