+ Reply to Thread
Results 1 to 3 of 3

Count the number of occurrences of an integer withing a larger integer

  1. #1
    Registered User
    Join Date
    09-26-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Count the number of occurrences of an integer withing a larger integer

    is anyone familiar with the LEN and MID functions to this code?
    I sue text box for entering the integer then the text box for the key that want to be searched,
    and another text box showing the number of occurrences

    additional with two command buttons for Search and Clear

    Attachment 33673
    please help!!!

    thanks
    Attached Files Attached Files

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Count the number of occurrences of an integer withing a larger integer

    Try this idea

    Please Login or Register  to view this content.
    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count the number of occurrences of an integer withing a larger integer

    Hi,

    There's no need for code, other than the trivial task of clearing the entries. With your Value in cell C4, Search key in C6, just use the following formula to calculate the number of occurencies

    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    to clear the value and search key.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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