+ Reply to Thread
Results 1 to 7 of 7

VBA to find text and show the number of occurances in msg box

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    VBA to find text and show the number of occurances in msg box

    Hi,

    With the help of VBA, i am able to find the data in column P. Few of the cell of column P has text "Not found".

    I need VBA which just find this text entire column P and tell me the number of occuraces

    Msg "4 occuraces of not found record"

    Thanks
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: VBA to find text and show the number of occurances in msg box

    I think this should do it
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to find text and show the number of occurances in msg box

    I get error below error code

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to find text and show the number of occurances in msg box

    With the help of your code, made below tweak. It works for me now.

    Please Login or Register  to view this content.
    Thanks hectop


    Regards,

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: VBA to find text and show the number of occurances in msg box

    hectop's code works for me.

    can you post workbook example that shows the error you are getting
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to find text and show the number of occurances in msg box

    Thanks Andy..

    Got it worked around.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: VBA to find text and show the number of occurances in msg box

    care to reveal how you worked around?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to only show multiple occurances only once
    By Raidon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2012, 08:21 AM
  2. Find highest number of sales in a date range and show seller and sale number
    By audiofreak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 03:34 AM
  3. How to find out the duplicate number and show it in a new cell?
    By Junh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2012, 12:35 AM
  4. Find and show sum of values that equal a specific number
    By nplouffe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 12:07 PM
  5. Replies: 3
    Last Post: 07-07-2006, 09:10 PM

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