Cell result dependant on a word

S

Scoober

I require help with a formula that does one thing unless another cell has a
particular word in it then it does something different.

e.g
C55 has the formula B7*.6

But if F19 say Bare Land I need the answer in C55 to be 0

so =if((b7="","",B7*0.6,if(f19="Bare Land",0))

Where am I going wrong?
 
S

Scoober

Altough this completes the formula correctly it doesn't calculate a 0 when
Bare Land is written in f19?
 
J

Jacob Skaria

Check out for any spaces...
OR try

=IF(TRIM(F19)="Bare Land",0,IF(B7="","",B7*0.6))

If this post helps click Yes
 
R

Ron Rosenfeld

Altough this completes the formula correctly it doesn't calculate a 0 when
Bare Land is written in f19?

Most likely, F19 does not really contain "Bare Land". There may be extraneous
non-printing characters. Or the space between the two words may not be ASCII
code 32.

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