+ Reply to Thread
Results 1 to 4 of 4

Counting character occurance in range

  1. #1
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Counting character occurance in range

    I was wondering if anyone here could help me find a solution to my problem!

    I would like to get a code counts how many of a specific character is in a string of txt.

    so like...

    if cell A1 had 111223355

    it would search for 1 then it would say 3.

    This HAS to be VBA. I already know how to do this in Excel. (i don't want helper cells either.)

    Thanks in advance!
    Last edited by GaidenFocus; 06-18-2012 at 04:58 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Counting character occurance in range

    Try

    Please Login or Register  to view this content.
    to count the number of a's.
    Martin

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Counting character occurance in range

    GaidenFocus,

    One way...
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Counting character occurance in range

    mrice, your's seems to work. Thanks anyways tiger!

+ 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