Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2016, 01:34 AM
otuatail otuatail is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2007
Competent Performer
Divide by zero error
 
Join Date: Jun 2012
Posts: 246
otuatail is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 08-16-2016, 01:58 AM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

Why don't you say =IF(calculation>0;calculation;"")?

/Møller
Reply With Quote
  #3  
Old 08-16-2016, 04:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #4  
Old 08-16-2016, 05:09 AM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 08-16-2016, 08:42 AM
otuatail otuatail is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2007
Competent Performer
Divide by zero error
 
Join Date: Jun 2012
Posts: 246
otuatail is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 08-16-2016, 09:10 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by otuatail View Post

=or(iserror((A3+$K$2)/(B3-2)),((A3+$K$2)/(B3-2))<0)
Dosn't do anything in conditional formatting.

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
Reply With Quote
  #7  
Old 08-16-2016, 10:03 AM
otuatail otuatail is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2007
Competent Performer
Divide by zero error
 
Join Date: Jun 2012
Posts: 246
otuatail is on a distinguished road
Default

G3 is negative so I want it BLANK

F3 -s Divide by zero error so I want it BLANK

SIMPLE as that.
Attached Files
File Type: xlsx Temp.xlsx (41.6 KB, 16 views)
Reply With Quote
  #8  
Old 08-16-2016, 11:37 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #9  
Old 08-16-2016, 10:58 PM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

=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.
Reply With Quote
  #10  
Old 08-17-2016, 07:10 AM
otuatail otuatail is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2007
Competent Performer
Divide by zero error
 
Join Date: Jun 2012
Posts: 246
otuatail is on a distinguished road
Default

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
Attached Images
File Type: jpg Error.jpg (49.1 KB, 16 views)
Reply With Quote
  #11  
Old 08-17-2016, 07:14 AM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

Change the semicolons to commas.
Reply With Quote
  #12  
Old 08-17-2016, 07:19 AM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

Conditional formatting is a feature in excel.
Attached Images
File Type: jpg 2.jpg (46.1 KB, 14 views)
Reply With Quote
  #13  
Old 08-17-2016, 09:01 AM
otuatail otuatail is offline Divide by zero error Windows 7 64bit Divide by zero error Office 2007
Competent Performer
Divide by zero error
 
Join Date: Jun 2012
Posts: 246
otuatail is on a distinguished road
Default

Thanks

I have used conditional formatting but that wouldn't solve this problem.
Reply With Quote
  #14  
Old 08-17-2016, 11:48 AM
c991257 c991257 is offline Divide by zero error Windows 10 Divide by zero error Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

Quote:
Originally Posted by otuatail View Post
I have conditional formatting for error
Then it would probably have helped if you didn't start saying that you have that.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Divide by zero error Divide Number between cells s7y Excel Programming 2 01-15-2014 12:59 PM
Divide by zero error 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
Divide by zero error 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft