+ Reply to Thread
Results 1 to 5 of 5

Counting Strings

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    Counting Strings

    Hey Guys

    I have a Log that goes from E6:E200 for the day and i want to count how many times a string occurs, I have been using sumproduct but
    people cant type or use the right grammer

    Having Problems i thought i had it figured out with this
    Please Login or Register  to view this content.
    But gets errors and when it does work wont count Multibles

    the 4 Strings are Shop 1, Shop 2, Shop 3, & Shop 4 these can be used all at once also so say Shane goes to Shop 1 & 2 then Bill goes to
    Shop 3 & 4 and then Kim Goes to Shop 2, 3 & 4

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Counting Strings

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Counting Strings

    Almost but adds all the Shops up Im trying to get them seperate
    eg Shane goes to Shop 1 & 2 then Bill goes to Shop 3 & 4 and then Kim Goes to Shop 2, 3 & 4
    Will Be Trips
    Shop 1 1
    Shop 2 2
    Shop 3 2
    Shop 4 2

    ---------- Post added at 09:29 AM ---------- Previous post was at 09:24 AM ----------

    Nevermind some editing i worked it ou thank you so much :D <3

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Counting Strings

    Try this one instead.

    =COUNTIF($A$2:$C$2,"*Shop*1*")

    Change 1 to 2, 3, or 4 for the remaining shops / strings.

    Note that if there is any additional text at the end of the string with the same numbers then it will trip the result.

    Simple example, "Shane goes to Shop 1 at 2:00", although to look at it appears obvious that 2 is time, not a shop number, it would still be counted as Shop 2.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,303

    Re: Counting Strings

    Hi Ryuujin,

    You will need to change your Shop 2, 3 & 4 into Shop 2 Shop 3 Shop 4 to eliminate the problem. Use this formula.
    If in A1 is Shop 2, 3 & 4 then in B1 put this formula
    Please Login or Register  to view this content.
    Then try to do your problem again.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Counting Strings

    That one works also thankyou


    Nope Sorry MarvinP that isnt what im Looking for Thankou thou

+ 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