ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If statements (https://www.excelbanter.com/excel-worksheet-functions/33373-if-statements.html)

df1234

If statements
 
This must have been solved already.
I want to compare budget(cell a) and actual(cell b) columns and display a
percentage result in an adjacent cell(cell c). If either cell a or cell b is
0, I want cell c to display either: "n/a" or "0" or be blank.

IC

One way
=IF(A1=0,0,IF(B1=0,0,B1/A1))

Ian

"df1234" wrote in message
...
This must have been solved already.
I want to compare budget(cell a) and actual(cell b) columns and display a
percentage result in an adjacent cell(cell c). If either cell a or cell b
is
0, I want cell c to display either: "n/a" or "0" or be blank.





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

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