+ Reply to Thread
Results 1 to 2 of 2

Thread: [Solved] Countif problem

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    Donna,Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    [Solved] Countif problem

    I collect logoed golf balls and use Excel as a database to keep track of them. I have nearly 9000 in my collection so far. I use the COUNTIF function to give me a running total as they are not all on the same worksheet. I have made a summary worksheet to keep track of how many I have from each state. Here is an example of an entry...
    Tierra Santa GC [Weslaco,Texas] blue c,/org quadrant badge,2cl
    Using COUNTIF(range,"*Texas*") gives me a running total of how many balls from Texas. To be accurate I would need to get only the result from what is inside the braket and not the entire text string. An example would be Washington, there is a Washington in Michigan that would make the result less accurate.

    I sure would appreciate any help...
    Last edited by logoballman; 02-14-2012 at 06:19 PM. Reason: To add the "Solved" word.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    Re: Countif problem

    Try including the brackets like this

    =COUNTIF(Range,"*[*Texas*]*")

    or if Texas is in cell A1 you can reference that like this

    =COUNTIF(Range,"*[*"&A1&"*]*")

    You might still get discrepancies where one State is a "subset" of another, e.g. Kansas and Arkansas, if there is always a comma before the state you could include that in the COUNTIF too, in order to avoid miscounting.......
    Audere est facere

+ 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.2.0