+ Reply to Thread
Results 1 to 5 of 5

Search Entire Workbook

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    13

    Search Entire Workbook

    Good Morning,

    I'm looking to search my entire workbook for text.
    What I would like to do is type a name in cell M4 and then show in M5 how many times that name was found in my workbook.
    Can this be done?

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Search Entire Workbook

    it can be done.
    First create a list of the sheet tabs say from A1 to A10 then
    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A1:A10&"'!a1:z500"),M4))
    a1:z500 is the range to look for.

    another approach is to create a named range for the list of sheet tabs

    Go to Formulas Menu -> select Name Manager -> NEW - > in the Name box say LISTA -> and in the Refers to box -> Select the range of the tab names that is in A1 to A10

    then the formula becomes

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&LISTA&"'!a1:z500"),M4))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Search Entire Workbook

    Hi SpeckM,
    Welcome to the Forum.

    Other than what Vladimir suggested and without having sufficient details, the other option is to have a macro to count in whole workbook.
    Just to give you an idea that it is very much possible and depends on what is your actual requirement, please find the workbook and click on the Green button on Sheet1 to get the count of the word Hello in M5 in all the sheets except sheet1.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    12-24-2014
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    13

    Re: Search Entire Workbook

    Thank You vlady and sktneer, They both do exactly what I am looking for.
    Thank u both for all of your support with this.
    Speckm

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Search Entire Workbook

    You're welcome. Glad we could help.

+ 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] Search entire workbook except 1 tab
    By stuartgood24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 06:03 AM
  2. Replies: 0
    Last Post: 02-14-2012, 12:34 PM
  3. Search function over entire workbook
    By tommy75 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-02-2009, 09:02 AM
  4. Search Entire Workbook
    By Sloth in forum Excel General
    Replies: 1
    Last Post: 10-14-2005, 04:05 AM
  5. [SOLVED] RE: Search Entire Workbook
    By Sloth in forum Excel General
    Replies: 0
    Last Post: 10-14-2005, 01:05 AM

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