Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 160
Default hiding error message when dividing by 0

I have a formula calling for an average in a workbook that refers to a cell
group that is sometimes not used. To keep the cells from averaging, I insert
an X. That works fine, but when ALL the cells are X I get that irritating
"You are trying to divide something by 0" message. I understand that and
just don't want it to show up in the cell. Can't think of a way. Any help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default hiding error message when dividing by 0

=IF(ISERROR(AVERAGE()),"",AVERAGE())
--
Gary''s Student - gsnu200765


"Patrick" wrote:

I have a formula calling for an average in a workbook that refers to a cell
group that is sometimes not used. To keep the cells from averaging, I insert
an X. That works fine, but when ALL the cells are X I get that irritating
"You are trying to divide something by 0" message. I understand that and
just don't want it to show up in the cell. Can't think of a way. Any help?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default hiding error message when dividing by 0

Hi Patrick,

You can use a formula like:

=IF(ISERR(AVERAGE(A1:A20)),"",AVERAGE)

or if you are using 2007

=IFERROR(AVERAGE(A1:A20),"")

or if you are only concerned with print the errors then choose the following
command in 2003:

File, Page Setup, Sheet, Cell errors as, Blank.

This last feature is available in 2007 also.

You can replace the "" with 0 or anything else.

You may also be able to use the slightly shorter form in 2003 of:

=IF(SUM(A1:A10)=0,"",AVERAGE(A1:A10))
--
Thanks,
Shane Devenshire


"Patrick" wrote:

I have a formula calling for an average in a workbook that refers to a cell
group that is sometimes not used. To keep the cells from averaging, I insert
an X. That works fine, but when ALL the cells are X I get that irritating
"You are trying to divide something by 0" message. I understand that and
just don't want it to show up in the cell. Can't think of a way. Any help?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default hiding error message when dividing by 0

Thank you!

"Gary''s Student" wrote:

=IF(ISERROR(AVERAGE()),"",AVERAGE())
--
Gary''s Student - gsnu200765


"Patrick" wrote:

I have a formula calling for an average in a workbook that refers to a cell
group that is sometimes not used. To keep the cells from averaging, I insert
an X. That works fine, but when ALL the cells are X I get that irritating
"You are trying to divide something by 0" message. I understand that and
just don't want it to show up in the cell. Can't think of a way. Any help?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default hiding error message when dividing by 0

Thank you very much

"ShaneDevenshire" wrote:

Hi Patrick,

You can use a formula like:

=IF(ISERR(AVERAGE(A1:A20)),"",AVERAGE)

or if you are using 2007

=IFERROR(AVERAGE(A1:A20),"")

or if you are only concerned with print the errors then choose the following
command in 2003:

File, Page Setup, Sheet, Cell errors as, Blank.

This last feature is available in 2007 also.

You can replace the "" with 0 or anything else.

You may also be able to use the slightly shorter form in 2003 of:

=IF(SUM(A1:A10)=0,"",AVERAGE(A1:A10))
--
Thanks,
Shane Devenshire


"Patrick" wrote:

I have a formula calling for an average in a workbook that refers to a cell
group that is sometimes not used. To keep the cells from averaging, I insert
an X. That works fine, but when ALL the cells are X I get that irritating
"You are trying to divide something by 0" message. I understand that and
just don't want it to show up in the cell. Can't think of a way. Any help?

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
hiding columns, error message says cannot shift objects off sheet JORGE ORTIZ Excel Discussion (Misc queries) 11 August 19th 08 10:34 AM
Why do I get an error message hiding excel columns George Excel Worksheet Functions 2 October 30th 07 09:01 AM
hiding columns in Excell error message jude Excel Discussion (Misc queries) 2 October 12th 06 07:32 PM
Hiding error message Mark Flynn Excel Worksheet Functions 3 September 21st 06 10:08 PM
hiding error message Shooter Excel Worksheet Functions 3 January 27th 05 04:06 AM


All times are GMT +1. The time now is 05:03 PM.

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

About Us

"It's about Microsoft Excel"