ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Dive by Zero Error (https://www.excelbanter.com/setting-up-configuration-excel/93732-dive-zero-error.html)

[email protected]

Dive by Zero Error
 
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,


Bondi

Dive by Zero Error
 

wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,


Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi


Bondi

Dive by Zero Error
 

wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,


Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi


[email protected]

Dive by Zero Error
 
But how could I incorporate the following into that function?

=AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87, O87)


Bondi wrote:
wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,


Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi



Pete_UK

Dive by Zero Error
 
Try this:

=IF(SUM(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87,O 87)=0,0,AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E 87,J87,O87))

Hope this helps.

Pete

wrote:
But how could I incorporate the following into that function?

=AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87, O87)


Bondi wrote:
wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,


Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi



Dave Peterson

Dive by Zero Error
 
I would think that you'd want to check the count of numbers--not the sum of
them.

=if(count(...)=0,0,average(...))

(maybe be important if there are negative and positive values in those cells.)



Pete_UK wrote:

Try this:

=IF(SUM(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87,O 87)=0,0,AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E 87,J87,O87))

Hope this helps.

Pete

wrote:
But how could I incorporate the following into that function?

=AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87, O87)


Bondi wrote:
wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,

Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi


--

Dave Peterson

Pete_UK

Dive by Zero Error
 
Yeah, good point Dave. Thanks.

Pete

Dave Peterson wrote:
I would think that you'd want to check the count of numbers--not the sum of
them.

=if(count(...)=0,0,average(...))

(maybe be important if there are negative and positive values in those cells.)



Pete_UK wrote:

Try this:

=IF(SUM(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87,O 87)=0,0,AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E 87,J87,O87))

Hope this helps.

Pete

wrote:
But how could I incorporate the following into that function?

=AVERAGE(E6,J6,O6,E33,J33,O33,E60,J60,O60,E87,J87, O87)


Bondi wrote:
wrote:
I have a spreadsheet that divides 12 cells by another. The problem is
the cells do not always contain data. Is there any way to remove the
#DIV/0! message that comes up? It does not look too professional.
Thanks,

Hi,

You can use something like:

=IF(ISERROR(Result),"",Result)

Regards,
Bondi


--

Dave Peterson




All times are GMT +1. The time now is 06:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com