I need a formula

M

monker

HI,al
please hel

a1 To
a2 Ji
a3 And

b1 Lis

I need a formula, make c1 = "a" when I can find b1 in a1:a3 , otherwise, c1="b
thanks
 
N

Norman Harker

Hi monker!

One way:
=IF(COUNTIF($A$1:$A$3, B1)>0,"a","b")

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
K

Ken

Norman,

I'm "lurking" trying to learn Excel. I follow most of this formula but why
is the >0 necessary?

Thank you,
Ken
 
F

Frank Kabel

Hi Ken
in this case the '>0' part is not required. i think Norman added it
just for clarification
 

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