adding numbers but not letters

S

SoozeeC

I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3>=5, E3>=5), "yes", "no") gives the right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?
 
B

Bernard Liengme

=IF(COUNT(D3:E3)=2,IF(AND(D3>=5, E3>=5), "yes", "no"),"no")
or
=IF(AND(COUNT(D3:E3)=2,D3>=5, E3>=5), "yes", "no")
best wishes
 
R

Ron Rosenfeld

I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3>=5, E3>=5), "yes", "no") gives the right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?


=IF(AND(N(D3)>=5, N(E3)>=5), "yes", "no")


--ron
 

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