Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default devide by 0 error

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default devide by 0 error

Typically by using something like this:

=IF(B1=0,"",A1/B1)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 709
Default devide by 0 error

Dreamstar, one way, something like this, =IF(ISERROR(A1/B1),"",A1/B1)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dreamstar_1961" wrote in message
...
is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default devide by 0 error

found the answer, =iferror(a1/b1,"")

"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default devide by 0 error

Just one warning.

This will hide any error that is produced, not just the #DIV/0! error.

I think you would be better off with Ron's suggested formula.


Gord Dibben MS Excel MVP

On Fri, 4 May 2007 20:09:00 -0700, Dreamstar_1961
wrote:

found the answer, =iferror(a1/b1,"")

"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default devide by 0 error

I just found out that this will not work as it has to go back to a office
2003, the problem with Rons is that this is a cubic devision, whick means
that it has to check 3 cells and not just one, and the max formula is being
used, this is the formula I'm using.
=(MAX(INT(B1D/D)*INT(B1W/W)*INT(B1H/H),INT(B1W/D)*(B1H/W)*INT(B1D/H),INT(B1H/D)*INT(B1D/W)*INT(B1W/H))
and this is the formula I'm using with office 2007
=IFERROR(MAX(INT(B2D/D)*INT(B2W/W)*INT(B2H/H),INT(B2W/D)*(B2H/W)*INT(B2D/H),INT(B2H/D)*INT(B2D/W)*INT(B2W/H)),"")
the second hids the error if one of the cell are empty, which I'd prefer,
but as it's going back to 2003 it will not work,
what it's for is a fit test on part verses location.

"Gord Dibben" wrote:

Just one warning.

This will hide any error that is produced, not just the #DIV/0! error.

I think you would be better off with Ron's suggested formula.


Gord Dibben MS Excel MVP

On Fri, 4 May 2007 20:09:00 -0700, Dreamstar_1961
wrote:

found the answer, =iferror(a1/b1,"")

"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default devide by 0 error

IFERROR function is only work for XL2007, and not work for previous versions.
To make it work for all versions then try this:

=IF(ISERROR(your formula),"",your formula)



"Dreamstar_1961" wrote:

I just found out that this will not work as it has to go back to a office
2003, the problem with Rons is that this is a cubic devision, whick means
that it has to check 3 cells and not just one, and the max formula is being
used, this is the formula I'm using.
=(MAX(INT(B1D/D)*INT(B1W/W)*INT(B1H/H),INT(B1W/D)*(B1H/W)*INT(B1D/H),INT(B1H/D)*INT(B1D/W)*INT(B1W/H))
and this is the formula I'm using with office 2007
=IFERROR(MAX(INT(B2D/D)*INT(B2W/W)*INT(B2H/H),INT(B2W/D)*(B2H/W)*INT(B2D/H),INT(B2H/D)*INT(B2D/W)*INT(B2W/H)),"")
the second hids the error if one of the cell are empty, which I'd prefer,
but as it's going back to 2003 it will not work,
what it's for is a fit test on part verses location.

"Gord Dibben" wrote:

Just one warning.

This will hide any error that is produced, not just the #DIV/0! error.

I think you would be better off with Ron's suggested formula.


Gord Dibben MS Excel MVP

On Fri, 4 May 2007 20:09:00 -0700, Dreamstar_1961
wrote:

found the answer, =iferror(a1/b1,"")

"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default devide by 0 error

Perhaps test D,W, or H for 0:
=IF(OR(D=0,W=0,H=0),"",MAX(INT(B1D/D)*INT(B1W/W)*INT(B1H/H),INT(B1W/D)*(B1H/W)*INT(B1D/H),INT(B1H/D)*INT(B1D/W)*INT(B1W/H)))



"Dreamstar_1961" wrote:

I just found out that this will not work as it has to go back to a office
2003, the problem with Rons is that this is a cubic devision, whick means
that it has to check 3 cells and not just one, and the max formula is being
used, this is the formula I'm using.
=(MAX(INT(B1D/D)*INT(B1W/W)*INT(B1H/H),INT(B1W/D)*(B1H/W)*INT(B1D/H),INT(B1H/D)*INT(B1D/W)*INT(B1W/H))
and this is the formula I'm using with office 2007
=IFERROR(MAX(INT(B2D/D)*INT(B2W/W)*INT(B2H/H),INT(B2W/D)*(B2H/W)*INT(B2D/H),INT(B2H/D)*INT(B2D/W)*INT(B2W/H)),"")
the second hids the error if one of the cell are empty, which I'd prefer,
but as it's going back to 2003 it will not work,
what it's for is a fit test on part verses location.

"Gord Dibben" wrote:

Just one warning.

This will hide any error that is produced, not just the #DIV/0! error.

I think you would be better off with Ron's suggested formula.


Gord Dibben MS Excel MVP

On Fri, 4 May 2007 20:09:00 -0700, Dreamstar_1961
wrote:

found the answer, =iferror(a1/b1,"")

"Dreamstar_1961" wrote:

is there a way to stop the devide by 0 or empty cell error from showing if
the cell you are using is empty?



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
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 08:55 AM.

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

About Us

"It's about Microsoft Excel"