Consulting

Results 1 to 3 of 3

Thread: Solved: How Do I Count 2

  1. #1

    Solved: How Do I Count 2

    Hi all

    I am using this code to count the word yes in a range (thanks to dr for the help), how do I make it count the word "yes" or the letter "y". This is to account for the user either typing yes or just y.

    =COUNTIF(C9:C25,"yes")

    Alan

  2. #2
    VBAX Contributor
    Joined
    Aug 2006
    Location
    Hampshire, UK
    Posts
    140
    Location
    Hi Alan

    =COUNTIF(C9:C25,"y*")

    will count abything beginning with a "y" - if you want to ensure it only counts "y" or "yes" then maybe:

    =SUM(COUNTIF(C9:C25,{"y","yes"}))

    Hope this helps!

    Richard

  3. #3
    Thanks Richard

Posting Permissions

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