View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Find if value exist in array

How about selecting column A
Edit|Find
What: HR

To see if the function is working ok (but that you didn't notice that it was
there).

Isa wrote:

Hi,

I'm sorry but it's still not working.
It returns HR all the time.

Is there another function that can be used?

Thanks.

"JE McGimpsey" wrote:

To return HR if HR exists in the array:

=IF(COUNTIF(A:A,"*HR*"),"HR","No HR")


In article ,
Isa wrote:

Thanks for this but it doesn't seem to work.
What I would like is for the function to return HR if HR exists in the array.
Your suggestion does not seem to recognise when HR or Human resource exists
in the array.

Any other suggestions?

Thanks.

"JE McGimpsey" wrote:

One way;

=COUNTIF(A:A,"*HR*") + COUNTIF(A:A,"*Human resource*")



--

Dave Peterson