ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   divide by zero (https://www.excelbanter.com/excel-worksheet-functions/89371-divide-zero.html)

belliotb

divide by zero
 
i have 2 cells: f4 and f8 on status spreadsheet. they may not be populated,
(have a value in the cell), all the time. need a formula that will calculate
when only both of them are populated. and not return a #div/0!, divide by
zero error. when neither or only one of those cells are populated

Gary

divide by zero
 
=If(and(F40,F80),(F4/F8),"")

try this...I think it would do what you want.

"belliotb" wrote in message
...
i have 2 cells: f4 and f8 on status spreadsheet. they may not be populated,
(have a value in the cell), all the time. need a formula that will
calculate
when only both of them are populated. and not return a #div/0!, divide by
zero error. when neither or only one of those cells are populated




[email protected]

divide by zero
 
belliotb wrote:
i have 2 cells: f4 and f8 on status spreadsheet. they may
not be populated, (have a value in the cell), all the time.
need a formula that will calculate when only both of them
are populated. and not return a #div/0!, divide by zero error,
when neither or only one of those cells are populated


=if(or(f4="", f8="", f8=0), "", f4/f8)


belliotb

divide by zero
 
To everyone - Thank you very much. Was running out of time to have my status
sheet ready for todays afternoon meeting. Was being pulled in to many
directions to get my thought processes coordinated. Thanks again! ! !

" wrote:

belliotb wrote:
i have 2 cells: f4 and f8 on status spreadsheet. they may
not be populated, (have a value in the cell), all the time.
need a formula that will calculate when only both of them
are populated. and not return a #div/0!, divide by zero error,
when neither or only one of those cells are populated


=if(or(f4="", f8="", f8=0), "", f4/f8)




All times are GMT +1. The time now is 07:21 AM.

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