ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Trouble with an IF formula (https://www.excelbanter.com/excel-worksheet-functions/101729-trouble-if-formula.html)

glenn

Trouble with an IF formula
 
I have an IF formula which selects a date (in text format) and, if the
criteria is met, will perform a calculation. It works fine except it returns
a value error when the date I'm looking for isn't in the field. I'm looking
to have it return 0 instead of value.

SimonCC

Trouble with an IF formula
 
Can just add another IF outside of your formula:
=IF(ISERROR(YourFormula),0,YourFormula)

-Simon

"glenn" wrote:

I have an IF formula which selects a date (in text format) and, if the
criteria is met, will perform a calculation. It works fine except it returns
a value error when the date I'm looking for isn't in the field. I'm looking
to have it return 0 instead of value.



All times are GMT +1. The time now is 08:50 PM.

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