#1   Report Post  
Posted to microsoft.public.excel.misc
rmeister
 
Posts: n/a
Default #DIV/0! Error!!!!!!


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.


--
rmeister
------------------------------------------------------------------------
rmeister's Profile: http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=544750

  #2   Report Post  
Posted to microsoft.public.excel.misc
Daniel CHEN
 
Posts: n/a
Default #DIV/0! Error!!!!!!

=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
=================================
"rmeister" wrote in
message ...

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.


--
rmeister
------------------------------------------------------------------------
rmeister's Profile:
http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=544750



  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default #DIV/0! Error!!!!!!

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default #DIV/0! Error!!!!!!

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

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


--
Kevin Backmann


"rmeister" wrote:


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.


--
rmeister
------------------------------------------------------------------------
rmeister's Profile: http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=544750


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide #div/0 Error When Averaging navychef Excel Worksheet Functions 5 December 17th 05 06:44 AM
Can I prevent a #DIV/0! error from plotting on a chart CTarantino Charts and Charting in Excel 3 August 26th 05 08:35 AM
Avoiding the dreaded #div/0 error Marie1uk Excel Worksheet Functions 10 July 21st 05 10:49 PM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM


All times are GMT +1. The time now is 09:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"