ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   #DIV/0! error (https://www.excelbanter.com/excel-discussion-misc-queries/250251-div-0-error.html)

Memo Larach

#DIV/0! error
 
I'm using the following formula =100%-(H6/J4) to get a percentage,
however result is #DIV/0! error

Can anybody help with this error?


Thanks for your help

peabrain25

#DIV/0! error
 

If J4 is zero or blank, you'll get this error. Check to make sure there is a
value in that cell.


"Memo Larach" wrote:

I'm using the following formula =100%-(H6/J4) to get a percentage,
however result is #DIV/0! error

Can anybody help with this error?


Thanks for your help


peabrain25

#DIV/0! error
 

Sorry, I forgot to add that if you still get the error even if there is
something in J4, hit the "F9" button to recalculate the spreadsheet. It could
be that your workbook isn't set up to automatically calculate when changes
are made. You can change this by going to Options, Calculation tab.



"peabrain25" wrote:


If J4 is zero or blank, you'll get this error. Check to make sure there is a
value in that cell.


"Memo Larach" wrote:

I'm using the following formula =100%-(H6/J4) to get a percentage,
however result is #DIV/0! error

Can anybody help with this error?


Thanks for your help


Gord Dibben

#DIV/0! error
 
=IF(J4=0,"",100%-(H6/J4))


Gord Dibben MS Excel MVP

On Sun, 6 Dec 2009 06:57:01 -0800, Memo Larach <Memo
wrote:

I'm using the following formula =100%-(H6/J4) to get a percentage,
however result is #DIV/0! error

Can anybody help with this error?


Thanks for your help



מיכאל (מיקי) אבידן

#DIV/0! error
 
Assuming you always format the result cell as percentage - you may try this:
=IF(ISERR(1-H6/J4),"",1-(H6/J4))
In order to avoid the error.
Micky


"Memo Larach" wrote:

I'm using the following formula =100%-(H6/J4) to get a percentage,
however result is #DIV/0! error

Can anybody help with this error?


Thanks for your help



All times are GMT +1. The time now is 01:15 PM.

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