A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DIV/0



 
 
Thread Tools Display Modes
  #1  
Old August 14th, 2004, 02:09 AM
wiredbliss
external usenet poster
 
Posts: n/a
Default DIV/0

I have 4 cells that are the sum of four columns of data and some other stuff
(that is determined by running a macro). The columns contain the unit
pricing for different suppliers, and the macro applies the unit prices to the
quantities needed and gives the total the cell mentioned above. If the
column of datais empty (i.e. no pricing is available for the supplier) then a
#DIV/0! is returned which is I understand. What I would like to do is either
apply conditional formatting to the cells (say A20 thru D20) which says that
if it is equal to #DIV/0! then the font color is clear so it doesn't show up
or add some code in the macro that looks at each of the 4 cells and if it is
equal to #DIV/0 then it clears the contents.

The cells are NOT formulas, they are just the results of a copy and paste
special values. So I can't simply tell the formula to use "". I am having a
hard time getting the conditional formatting to respond to #DIV/0! but I am
sure there is someone out there who konws how to do it with using the macro
-- I just dont

Any Ideas???
  #2  
Old August 14th, 2004, 04:09 AM
Biff
external usenet poster
 
Posts: n/a
Default DIV/0

The cf is the easy way out!

Conditional Formatting
Formula is =ISERROR(A1)

I can't help with the macro but someone that can will
surely ask you to post the code for analysis.

Biff

-----Original Message-----
I have 4 cells that are the sum of four columns of data

and some other stuff
(that is determined by running a macro). The columns

contain the unit
pricing for different suppliers, and the macro applies

the unit prices to the
quantities needed and gives the total the cell mentioned

above. If the
column of datais empty (i.e. no pricing is available for

the supplier) then a
#DIV/0! is returned which is I understand. What I would

like to do is either
apply conditional formatting to the cells (say A20 thru

D20) which says that
if it is equal to #DIV/0! then the font color is clear so

it doesn't show up
or add some code in the macro that looks at each of the 4

cells and if it is
equal to #DIV/0 then it clears the contents.

The cells are NOT formulas, they are just the results of

a copy and paste
special values. So I can't simply tell the formula to

use "". I am having a
hard time getting the conditional formatting to respond

to #DIV/0! but I am
sure there is someone out there who konws how to do it

with using the macro
-- I just dont

Any Ideas???
.

  #3  
Old August 14th, 2004, 09:02 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default DIV/0

Hi
just as a different approach: Why not correct the source formulas to
prevent the #DIV/0 Error?

--
Regards
Frank Kabel
Frankfurt, Germany

"wiredbliss" schrieb im
Newsbeitrag ...
I have 4 cells that are the sum of four columns of data and some

other stuff
(that is determined by running a macro). The columns contain the

unit
pricing for different suppliers, and the macro applies the unit

prices to the
quantities needed and gives the total the cell mentioned above. If

the
column of datais empty (i.e. no pricing is available for the

supplier) then a
#DIV/0! is returned which is I understand. What I would like to do

is either
apply conditional formatting to the cells (say A20 thru D20) which

says that
if it is equal to #DIV/0! then the font color is clear so it doesn't

show up
or add some code in the macro that looks at each of the 4 cells and

if it is
equal to #DIV/0 then it clears the contents.

The cells are NOT formulas, they are just the results of a copy and

paste
special values. So I can't simply tell the formula to use "". I am

having a
hard time getting the conditional formatting to respond to #DIV/0!

but I am
sure there is someone out there who konws how to do it with using the

macro
-- I just dont

Any Ideas???


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find #DIV/0! Error and Replace Dave Peterson Worksheet Functions 5 January 12th, 2004 06:18 PM


All times are GMT +1. The time now is 09:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.