+ Reply to Thread
Results 1 to 17 of 17

Search Engine across all sheets

  1. #1
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Search Engine across all sheets

    Hello, I should start with the fact that my understanding and use of Excel functions are minimal at best. The last Language I could actually write was Pascal in the 1980's, lol.

    Here is what I'm looking to do. I have a workbook that I am starting to compile data on, I haven't completed it yet, just put in some random info to see if I could create what I wanted. I would like to be able to search all the lines on five different sheets on a sixth sheet using a "Search Engine" on the sixth sheet. The data would be starting on line 2 with columns ranging from A to J, going down to say 150 lines once all the data is entered onto the sheets. I would like the "search Engine" to return the results below the search box in the same format as it is shown on the original sheet. Further if it would be possible to color code the results with different colors for each sheet that would be fantastic. I would like to use red for the warrior sheet, blue for the magus sheet, green for the sentinel sheet, gold for the gunner sheet and purple for the assassin sheet. I have attached a copy of the excel workbook I have started. I have only populated the warrior and magus sheets with some random data for a couple of lines.

    Is this even possible? Any help would be greatly appreciated. Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    What are we searching for? Typically where would the Item searched be located.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Search Engine across all sheets

    Hi Fred and welcome to the forum.

    I think what you want is built into the Find and Replace dialog. Try these steps:

    1. Click on your search sheet and click on "STUN" and Copy it into the Windows Clipboard (Ctrl+C)
    2. Click on Ctrl+F to open the Find and Replace Dialog
    3. Paste the word (STUN) into the Find what box, using Ctrl+V
    4. Change the Within to "WORKBOOK"
    5. Change the Look in: to "VALUES"
    6. Click on the "Find All" button at the bottom.

    This will give you a list of all the places you seek. BETTER is you can leave this Find dialog open and click on the list in the bottom and it will show the correct sheet and cell the word was found in.

    Also BETTER is you can click on the bottom lists column heads and it will sort that column with what it has found.

    I think the Find All dialog is just what you were looking to do with a Search sheet. You don't need to build a whole new sheet you can simply use a tool already in Excel.

    Here is a link with more information that I didn't know about (Ctrl+A)
    https://www.ablebits.com/office-addi...-find-replace/
    Ablebits is an Excel Add-In which may give a few extra features but I don't think you need it.

    Hope this helps.
    Last edited by MarvinP; 04-07-2020 at 08:11 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Thank you for the quick reply. I would like to search for any matching words or parts of words. For example if I were to search for the effect 'bleed' I would like the search engine to return the results showing the match under the warrior sheet for the entire 3rd line and the entire 5th line from the magus sheet. this way I would be able to see all the effects from the "Fictitious A Talisman" on the warrior sheet and where its located, how many are in a set, etc., along with the same information for the "Magus C Talisman" on the magus sheet. If it would be able to highlight the warrior red, and the magus blue, even better. Thanks Again!

  5. #5
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Marvin P, surprisingly I was able to find this and make it work for me, but its a bit clunky. The problem is that as illiterate as I am in Excel, believe it or not some of the people I'm trying to compile this workbook for are even worse!! I'm trying to make it as user friendly as possible for them. As the old Army saying goes Keep It Simple Stupid or K.I.S.S., lol

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    Based upon what you have provided, give this a shot.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    ok, that is way beyond me!!! lol Guess that's why I'm asking for help after all. But what do I do with that? Do I copy and paste it somewhere? Thanks for everything, and putting up with my stupid questions

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    How to install your new code
    • Copy the Excel VBA code
    • Select the workbook in which you want to store the Excel VBA code
    • Press Alt+F11 to open the Visual Basic Editor
    • Choose Insert > Module
    • Edit > Paste the macro into the module that appeared
    • Close the VBEditor
    • Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    To run the Excel VBA code:
    • Press Alt-F8 to open the macro list
    • Select a macro in the list
    • Click the Run button

  9. #9
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Thanks! I think I can follow that well enough. I'll try it tonight when I have access to the computer, wifey is using it during the day while working from home. Thanks again!

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  11. #11
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Alan, thanks for the update on how to enter the code, I was able to do that without an issue. However I did receive an error, not sure what they mean, so I have included a screen shot of the error and a screenshot of what happens when I hit the 'debug' button. This is Greek to me, lol. Thanks!Attachment 671459Attachment 671458

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    Your attachment is not visible. Suggest if you wish to add a screen shot, that you create a file using the snipping tool and then upload it by going to the Go Advanced Button. Scroll down to Manage Attachments.

  13. #13
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Sorry, Here are the screen shots, Thanks
    Attached Images Attached Images

  14. #14
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    Make sure that there are no spaces in the Tab name before or after the actual letters. This is usually the cause of something like this. Users will inadvertently type the name they want for a tab and then hit the space bar. This causes the names to be different from what you type in the code causing this type of issue. Spelling of Range names and Sheet names is critical that they match exactly with the code.

  15. #15
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    Ok, I will make sure that the Tabs have no spaces before or after the name when my wife is done later. If everything works ok I will make sure I come back here and mark this thread "Solved". Thank you for everything

  16. #16
    Registered User
    Join Date
    04-07-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Search Engine across all sheets

    ok, I found that I did indeed have a space after one of the words for the tab. Once I corrected that the operation did run and little box popped up saying 'completed'. What it seemed to do was to populate everything onto the first tab (introduction). What I was looking for was a way to create a search box (perhaps in cell B1) on the search tab, and have the results populate below the search box. Am I doing something wrong? I have included a screen shot of what did happen when I ran the code. Thanks again for your help!
    Attached Images Attached Images

  17. #17
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: Search Engine across all sheets

    I guess I missed that you wanted to have the information posted to the search sheet. Any way, here is the modified code to move the data to the search sheet.

    Please Login or Register  to view this content.

+ 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. Automatically Searching a Search Engine Not Recognizing Search Term
    By mattman123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2017, 02:03 PM
  2. Search Engine Tips to search through multiple URLs
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2016, 06:56 AM
  3. Simple "SEARCH ENGINE" in a userform, from data across multiple sheets
    By daisiroi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2016, 07:53 AM
  4. [SOLVED] how to create a search engine on one sheet to pull results from other sheets
    By vickyp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-12-2013, 03:59 PM
  5. Search engine
    By Ryan_Bernal in forum Excel General
    Replies: 8
    Last Post: 12-24-2012, 03:14 AM
  6. Developing Search Engine to search several Excel sheets
    By cruiser102 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2009, 09:30 AM
  7. Search Engine from multiple sheets
    By Flower R in forum Excel General
    Replies: 6
    Last Post: 10-19-2008, 08:28 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