How do i subtract cells in an IF function?

G

Guest

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.
 
P

Peo Sjoblom

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top