ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I make #DIV/0! error message go away? (https://www.excelbanter.com/excel-worksheet-functions/448961-how-do-i-make-div-0-error-message-go-away.html)

yeto

How do I make #DIV/0! error message go away?
 
I have the following function in cell C86:

=(B86-B87)/ABS(B87)

B86 value = .04
B87 value = 0

I am getting the following error message in cell C86: #DIV/0!

How can I make the error message go away and in what cell would I place the new function/code?

Thanks in advance for any help,
yeto

Claus Busch

How do I make #DIV/0! error message go away?
 
Hi,

Am Thu, 4 Jul 2013 11:08:49 +0100 schrieb yeto:

I have the following function in cell C86:

=(B86-B87)/ABS(B87)

B86 value = .04
B87 value = 0

I am getting the following error message in cell C86: #DIV/0!


try:
=IFERROR((B86-B87)/ABS(B87),"")
or
=IF(B87=0,"",(B86-B87)/ABS(B87))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

yeto

Thank you -- I will give it a try. Thank you for taking the time to reply.

Quote:

Originally Posted by Claus Busch (Post 1612608)
Hi,

Am Thu, 4 Jul 2013 11:08:49 +0100 schrieb yeto:

I have the following function in cell C86:

=(B86-B87)/ABS(B87)

B86 value = .04
B87 value = 0

I am getting the following error message in cell C86: #DIV/0!


try:
=IFERROR((B86-B87)/ABS(B87),"")
or
=IF(B87=0,"",(B86-B87)/ABS(B87))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2



All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com