#1
|
|||
|
|||
Divide by zero error
I have a cell with a divide by zero error.
I have conditional formatting for error "=IFERROR(SUM((A3+$K$2)/(B3-2)),"")" This cell should be blank. I also want the cell blank if the value turns negative. |
#2
|
|||
|
|||
Why don't you say =IF(calculation>0;calculation;"")?
/Møller |
#3
|
||||
|
||||
Try
=or(iserror((A3+$K$2)/(B3-2)),((A3+$K$2)/(B3-2))<0) as CF ( the SUM function you used is redundant)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
outatail. Conditional formatting cannot control the value of a cell. If you want it to be blank then the formula in the cell must return the value "".
Conditional formatting to control the color of the cell, borders and contents based on the value of a cell. |
#5
|
|||
|
|||
Well
=IF(($A3+$K$2)/($B3-2))>0;SUM(($A3+$K$2)/($B3-2));"") Does retturn "" don't it Also =or(iserror((A3+$K$2)/(B3-2)),((A3+$K$2)/(B3-2))<0) Dosn't do anything in conditional formatting. I want blank cells if less than zero or divide by zero error. |
#6
|
||||
|
||||
Quote:
What do you mean? Perhaps add a sample sheet ( no pics pse) By blank cell do you mean an empty cell or looking empty?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#7
|
|||
|
|||
G3 is negative so I want it BLANK
F3 -s Divide by zero error so I want it BLANK SIMPLE as that. |
#8
|
||||
|
||||
Then you will need VBA
And you could be a little more courteous to people trying to help. Cheers
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#9
|
|||
|
|||
=IF(OR($B3-1<=0;$A3+K$2<0);"";($A3+K$2)/($B3-1)) does what you need and you don't need conditional formatting.
|
#10
|
|||
|
|||
I put this into cell G3 and I got an error
=IF(OR($B3-3<=0;$A3+K$2<0);"";($A3+K$2)/($B3-3)) I assume that "You don't need conditional formatting means paste it into the cell directly. Attached error |
#11
|
|||
|
|||
Change the semicolons to commas.
|
#12
|
|||
|
|||
Conditional formatting is a feature in excel.
|
#13
|
|||
|
|||
Thanks
I have used conditional formatting but that wouldn't solve this problem. |
#14
|
|||
|
|||
Then it would probably have helped if you didn't start saying that you have that.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Divide Number between cells | s7y | Excel Programming | 2 | 01-15-2014 12:59 PM |
Hide Divide by Zero Option? | SteveBump | Excel | 4 | 12-15-2013 09:53 PM |
how to divide into group | tomlam | Excel Programming | 2 | 05-20-2013 09:46 PM |
formula divide by serio error | vthomeschoolmom | Excel | 1 | 04-18-2012 02:29 PM |
Divide by zero error | doublejoy | Excel | 1 | 08-22-2009 03:10 AM |