+ Reply to Thread
Results 1 to 15 of 15

Search for value through entire workbook

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Search for value through entire workbook

    I have read this forum and nothing seems to fully apply to what I am trying to do. I just want a search cell, type in a value such as 'Tower' and have it query up to 9 additional sheets within the workbook. I am trying to find costcodes for multiple 'Tower' Options.


    Search ---> INPUT TEXT

    Output ---> Everything found
    ---> Additional
    ---> So on and so on.
    Attached Images Attached Images
    Attached Files Attached Files
    Best Regards,

    JC

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Search for value through entire workbook

    What do you want the results to look like? In the example you gave, I found 118 cells with "TOWER".

    It might be possible to do this with a complex formula but I would be more inclined to use a VBA solution. Are you open to using VBA? Any experience with it?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  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: Search for value through entire workbook

    Hi

    Some examples would have been useful.
    Which are the 9 sheets? Are they the ones that all have the same layouts with columns A:F and is it the Description column you're searching?

    Personally I'd simplify your data and put all your data on a common sheet to create a single database, adding an extra column to record the description that the current tab name shows.

    You'll then have a much more efficient database which will allow you to interrogate it in much moe efficient ways. You'll also have the big advantage of being able to use a Pivot Table for analysis and summarisation.
    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.

  4. #4
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search for value through entire workbook

    The proj code and or description, both would be nice. I believe "TOWER*" should be in the code as well.

  5. #5
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search for value through entire workbook

    used to have pretty good experience with vba, I am pretty rusty nowadays though, definitely not against it.

  6. #6
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Search for value through entire workbook

    Enter all the names of the worksheets within your workbook somewhere in your workssheet or another worksheet and refer to it with this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you do a global search you'll get 118. The formula gives you 117 because it is not counting the one in the LOOKUP sheet.
    Attached Files Attached Files
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Search for value through entire workbook

    Quote Originally Posted by ron2k_1 View Post
    Enter all the names of the worksheets within your workbook somewhere in your workssheet or another worksheet and refer to it with this formula:
    Nice solution.

    jclegg42002, do you need a list of what was found, or just the count?

  8. #8
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search for value through entire workbook

    Quote Originally Posted by 6StringJazzer View Post
    Nice solution.

    jclegg42002, do you need a list of what was found, or just the count?
    A list of what is found, and description would be great, not count.

  9. #9
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search for value through entire workbook

    I did as you asked..... about adding the sheetnames
    Attached Files Attached Files

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Search for value through entire workbook

    jclegg42002, different people have different interpretations of what you want, and this is because your description of what result you want is incomplete. "I am trying to find costcodes for multiple 'Tower' Options." There is nowhere in your file where "costcodes" are mentioned. Also

    Output ---> Everything found
    ---> Additional
    ---> So on and so on.

    is quite mysterious. All we have to go on is a "0" in the Output cell (BTW merging cells is rarely a good idea).

    I suggest you update your file to show a concrete example, such as what you want the output to look like for searching TOWER. You don't have to type up all 118 matches but at least do a few so we get the idea.

  11. #11
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search for value through entire workbook

    Here is a revised copy of what I am looking for... Thanks for all of your help.
    Attached Files Attached Files

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Search for value through entire workbook

    So you want to search for the term only in the "Description" columns, and then return "Item" and "Description" in the list?

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Search for value through entire workbook

    One issue: the sheets are formatted differently with Item in columns A or B and Description in D or E: these do not exist in all 16 sheets so we need to know the 9 sheets required to be searched..

  14. #14
    Registered User
    Join Date
    07-23-2012
    Location
    Fishers, IN
    MS-Off Ver
    Excel 2013
    Posts
    16
    Quote Originally Posted by 6StringJazzer View Post
    So you want to search for the term only in the "Description" columns, and then return "Item" and "Description" in the list?
    Exactly, well if I can see how you guys get it working on the first few I can modify to do the rest I think.

  15. #15
    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: Search for value through entire workbook

    I'm struggling to understand.

    You seem to have a partial database in columns J:L on the lookup sheet and this is where your 5 'Tower' results seem to have come from. So I'm not quite sure why you are making it harder by trying to search across nine sheets.

    As I said in #3 these things are much simpler of you have a single database. One you have that then a simple Advanced Data Filter will extract all the information you're looking fif and you won't need any formula. Even easier yuo'll be abe to apply A Pivot Table and see the information needed without even needing to perform a data filter to extract the records form the database.

    So I suggest you extend that database on the lookup sheet, or better still put it in a sheet of its own and work from that.

+ 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
    By SpeckM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2015, 10:55 AM
  2. [SOLVED] Macro search entire workbook
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 11-25-2013, 06:44 AM
  3. [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
  4. Replies: 0
    Last Post: 02-14-2012, 12:34 PM
  5. Search Entire Workbook
    By Sloth in forum Excel General
    Replies: 1
    Last Post: 10-14-2005, 04:05 AM
  6. [SOLVED] RE: Search Entire Workbook
    By Sloth in forum Excel General
    Replies: 0
    Last Post: 10-14-2005, 01:05 AM
  7. [SOLVED] How to Search for word in the Entire Workbook
    By lbbss in forum Excel General
    Replies: 4
    Last Post: 07-04-2005, 04:05 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