Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Divide by zero

I have hundreds of formulas on multiple spreadsheets and each has the
possibiltity of dividing by zero and creating an error in the cell. Is there
code or a function to eliminate all of the error messages in all cells
without having to change each cell's formula?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Divide by zero

1. select cell A1
2. Format Conditional formatting... Formula is =iserror(a1)
3. format with the color of the font matching the background color
4. Copy A1
5. Select the entire worksheet
5. Edit PasteSpecial Formats

The divide by zero message and other error messages will become "invisible"

--
Gary''s Student - gsnu200740


"D Huber" wrote:

I have hundreds of formulas on multiple spreadsheets and each has the
possibiltity of dividing by zero and creating an error in the cell. Is there
code or a function to eliminate all of the error messages in all cells
without having to change each cell's formula?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Divide by zero

What should I do if some of the cells have different formats to begin with?
Some, but not all, of the cells are currency and some of the cells are bold
or have outlines.

"Gary''s Student" wrote:

1. select cell A1
2. Format Conditional formatting... Formula is =iserror(a1)
3. format with the color of the font matching the background color
4. Copy A1
5. Select the entire worksheet
5. Edit PasteSpecial Formats

The divide by zero message and other error messages will become "invisible"

--
Gary''s Student - gsnu200740


"D Huber" wrote:

I have hundreds of formulas on multiple spreadsheets and each has the
possibiltity of dividing by zero and creating an error in the cell. Is there
code or a function to eliminate all of the error messages in all cells
without having to change each cell's formula?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Divide by zero

You don't have to copy and paste formats.


Select all the cells in the worksheet (or all the cells where you want the
conditioanl formatting) with cell A1 as the Activecell. Follow the
instructions as given by Gary's Student for applying the format. If you
have existing conditional formatting in place, this would be problematic.

<editorial comment
I don't know why anyone would do it any other way, but they seem to <g.
</editorial comment
--
Regards,
Tom Ogilvy


"D Huber" wrote:

What should I do if some of the cells have different formats to begin with?
Some, but not all, of the cells are currency and some of the cells are bold
or have outlines.

"Gary''s Student" wrote:

1. select cell A1
2. Format Conditional formatting... Formula is =iserror(a1)
3. format with the color of the font matching the background color
4. Copy A1
5. Select the entire worksheet
5. Edit PasteSpecial Formats

The divide by zero message and other error messages will become "invisible"

--
Gary''s Student - gsnu200740


"D Huber" wrote:

I have hundreds of formulas on multiple spreadsheets and each has the
possibiltity of dividing by zero and creating an error in the cell. Is there
code or a function to eliminate all of the error messages in all cells
without having to change each cell's formula?

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
divide by zero Meebers[_2_] Excel Worksheet Functions 6 January 27th 09 10:05 PM
divide by 0 sony654 Excel Worksheet Functions 4 April 24th 05 08:10 AM
Divide by Zero rocky Excel Worksheet Functions 3 April 22nd 05 12:50 PM
Divide one row over other row I dont wont to divide one number Rick Excel Discussion (Misc queries) 0 March 4th 05 07:13 PM
Divide Expression stops in Macro when Can't divide JUAN Excel Programming 6 May 6th 04 07:05 AM


All times are GMT +1. The time now is 04:58 PM.

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

About Us

"It's about Microsoft Excel"