finding text and performing a calculation

S

scokaw

Is it possible to look for a string of text in a cell, then perform a
calculation?
Example:
A1 = Senior Thesis Research (this column also contains data like "Lab Thesis")
B1 = 10
C1 = 5

If the word "Thesis" is in A1, multiply B1*C1, if it's not, enter zero. The
formula I tried works, but when a cell in column A doesn't have the word
"Thesis" I get "#Value!" error.

The formula I tried is:
=IF(FIND("Thesis",A1)>0,B1*C1,0)

Thanks in advance. Scott
 
T

T. Valko

The formula I tried is:
=IF(FIND("Thesis",A1)>0,B1*C1,0)

Try it like this:

=IF(COUNT(FIND("Thesis",A1)),B1*C1,0)

Or:

=IF(COUNTIF(A1,"*Thesis*"),B1*C1,0)
 

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