setting text in 1 cell from values in other

B

bp

hello,
I think this is pretty easy. but cannot get it.
I have 2 cells. lets say A1 and B1. in B1 I have text. I want to set the
value of A1 to 100, if B1 contains the values "ABC" or "DEF". B1 can
contain a lot of text. not exact values. can anyoe help me out with this?

thanks.
 
B

Bob Phillips

One way

=IF(SUMPRODUCT(COUNTIF(B1,{"*ABC*","*DEF*"}))>0,100,"")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
B

bp

thanks. it does work

Bob Phillips said:
One way

=IF(SUMPRODUCT(COUNTIF(B1,{"*ABC*","*DEF*"}))>0,100,"")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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