ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do i subtract cells in an IF function? (https://www.excelbanter.com/excel-worksheet-functions/70503-how-do-i-subtract-cells-if-function.html)

Ryan

How do i subtract cells in an IF function?
 
When using an IF function, how do you eliminate the #VALUE when you try to
subtract one cell from another cell. The #VALUE sign appears in the cell with
the formula.

Peo Sjoblom

How do i subtract cells in an IF function?
 
It's because one or more cells in a calculation are text and not numbers or
blanks like "" or " "
=IF(ISTEXT(A2),0,B2-A2)

--
Regards,

Peo Sjoblom

Portland, Oregon




"Ryan" wrote in message
...
When using an IF function, how do you eliminate the #VALUE when you try to
subtract one cell from another cell. The #VALUE sign appears in the cell
with
the formula.




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

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