Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default problem of an empty cell

i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default problem of an empty cell

You are getting this error because you are trying to divide the value by
zero. Either your cell b14 is empty or contains 0. To avoid this from showing
you can make use of ISERROR function.

HTH,

--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think a post is useful, please rate it as an ANSWER, it will help
others!!


"octet" wrote:

i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default problem of an empty cell

Use

=IF(B14=0,0,(C14-B14)/B14)

--


Regards,


Peo Sjoblom

"octet" wrote in message
...
i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this
fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default problem of an empty cell

Thanks

"Pranav Vaidya" wrote:

You are getting this error because you are trying to divide the value by
zero. Either your cell b14 is empty or contains 0. To avoid this from showing
you can make use of ISERROR function.

HTH,

--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think a post is useful, please rate it as an ANSWER, it will help
others!!


"octet" wrote:

i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default problem of an empty cell

I'd suggest you avoid the ISERROR solution in this case since it will hide
errors you might want to know about.
All you have to do to avoid the divide by zero is to test the divisor cell
in your case B14 and make sure it is not zero

=IF(divisor=0,do_this,division_formula)


however if you have another error in the dividend like a value error than
most likely you would like
to know that so you can correct it. However if you use ISERROR it will hide
that error.
It's like swatting flies with an umbrella


--


Regards,


Peo Sjoblom

"octet" wrote in message
...
Thanks

"Pranav Vaidya" wrote:

You are getting this error because you are trying to divide the value by
zero. Either your cell b14 is empty or contains 0. To avoid this from
showing
you can make use of ISERROR function.

HTH,

--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think a post is useful, please rate it as an ANSWER, it will help
others!!


"octet" wrote:

i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this
fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default problem of an empty cell

Try this:

=IF(N(B14),(C14-B14)/B14,"")


"octet" wrote:

i have an empty cell B14 that says #DIV/0!
does anyone know why this formula i recieve an error try to use this fuction?
=IF(AND(B14<"",B14<0),C14-B14)/B14,"")

Thanks
Octet

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
When is a cell empty and how do I empty it. C Brandt Excel Discussion (Misc queries) 5 August 13th 07 05:37 PM
format a cell with a formula so an empty reference cell shows blan M2 Excel Discussion (Misc queries) 3 November 7th 06 10:42 PM
Leaving an empty cell empty GRL Excel Discussion (Misc queries) 4 April 22nd 06 05:47 PM
Problem with empty cells when creating chart using vba Xavier Charts and Charting in Excel 2 April 17th 06 10:28 PM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM


All times are GMT +1. The time now is 05:26 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"