+ Reply to Thread
Results 1 to 4 of 4

Help on searching and counting

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 365
    Posts
    30

    Help on searching and counting

    i need help on searching and counting a certain word on a column.
    for example, everyone that lives on Pennsylvania has to be counted.

    the addresses on the cells are in this format:
    312 Here Street, Somewhereville Pennsylvania 19460

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help on searching and counting

    hi there, welcome to the forum. if there's always a space before & after:
    =COUNTIF(A1:A10,"*Pennsylvania*")

    if not, try:
    =SUMPRODUCT(--(ISNUMBER(SEARCH(" Pennsylvania "," "&A1:A10&" "))))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help on searching and counting

    Try

    =COUNTIF(A2:A100,"*Pennsylvania*")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    01-21-2013
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 365
    Posts
    30

    Re: Help on searching and counting

    is this formula case sensitive?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1