If "text" exist within "cell" then TRUE

  • Thread starter Thread starter JemyM
  • Start date Start date
J

JemyM

I cant find a way to look up if a string of text exist within a cell and
reply with TRUE or FALSE, such as "if "text" exist somewhere within
"cell" then TRUE".


I have a list that looks something like:

Archetype Skill
Dancer Acrobatics, Dance, Seduction
Repairman Mechanics, Technology, Security

And a cell where I can define an Archetype, such as:
A1=Dancer

I am trying to create a formula that's something like:
If "Dance" exist somewhere in "1 column from the archetype declared in
A1", then type the text "Good at dancing" here, else "Cannot Dance"
 
Thanks both of you for your reply...

I am using FINDROW to detect the cell that need to be compared with.

A36 contains the word "Dancer"
$A$542:$I$564 is the field where all data exist. First column contains
the profession, and the 9th column from that contains the skills.

When I type:
=FINDROW($A$36;$A$542:$I$564;9)
in cell J551, then I get the skills, such as Dance etc, listed in that
cell. That works.

If I use
=IF(COUNTIF(J551;"*Dancer*");"Is a Dancer";"Is not a Dancer")
then I get "Is a Dancer.

So far everything works.

However, when I try to replace J551 with the FINDROW line I am met with
an error:

=IF(COUNTIF(FINDROW($A$36;$A$542:$I$564;9);"*Dancer*");"Is a
Dancer";"Is not a Dancer")

I only get "Error in formula" and Excel refuses to accept it. :(
 
I have no idea what FINDROW is, but it looks to return a cell value, whereas
COUNTIF wants the cell reference. So it won't work. As FINDROW seems to be a
UDF, maybe you could change it to do it all.
 
Oh. :(
FINDROW is a direct translation of what the function is called i
swedish "LETARAD". It starts to be very annoying with the swedis
version so next time I will go for an english one...

But ohwell, I might have an alternative. :)

Thanks anywa
 
Back
Top