Consulting

Results 1 to 4 of 4

Thread: Solved: countif

  1. #1
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location

    Solved: countif

    Hello, to go down each cell in the column to find particular keywords inside the cell. I use countif(range,"*keyword*") before but I notice that countif will only count about 100 characters into the text, whatever after that, it doesn't count anymore. I also looked into find function but the find function is case sentitive.

    Is there a way I can do this with VBA. I want to know if a cell contains a certain keyword.

    Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    SEARCH is case insensitive.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    BTW, COUNTIF works well into 200 for me.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    thank you, search will work. I dont know the exact character that countif do, but if i have a paragraph, it won't work.

    thanks xld

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •