+ Reply to Thread
Results 1 to 20 of 20

how to find all occurrences of text and show at once

  1. #1
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    how to find all occurrences of text and show at once

    Hi, all. I've been using Excel for decades in a very basic, limited fashion. I have a document with dozens of tabs and I want to be able to see all occurrences of a string of text at once instead of using 'find again' over and over. Thanks in advance!!

  2. #2
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    So I found the "options" button in Find and Replace and that gave me a list. However, the list doesn't show other cells in the row. Is there a way to get the results of a full workbook search to show a full row and not just the defaults?

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to find all occurrences of text and show at once

    16.66.1 - what version of excel is that ?

    A sample sheet would help here, and possibly will enable a quicker and more accurate solution for you.


    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    It's Excel for Mac under a 365 subscription through my job. I'll pull out a few tabs from the workbook and upload when I get a chance today. Thank you.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to find all occurrences of text and show at once

    thanks, just for clarity can you include that info in the profile - see mine for instance
    365 (Mac OSX) (16.82 - (24021116))
    Last edited by etaf; 02-16-2024 at 09:30 AM.

  6. #6
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    I'm having trouble understanding how to post a sheet. I don't see Manage Attachments or Advanced anywhere on this page.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to find all occurrences of text and show at once

    ok, have a look at these screen shots

  8. #8
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    OK, let's see if this worked
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    There are NO explanations and NO expected results, as far as I can see.

    So what text are you looking for? What results to you expect to see? Where do you expect to see them?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  10. #10
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    I'm not sure what you are saying.

    I am able to search the entire workbook for a string of text, but it returns a list of info without showing me the entire row of data, which is what I want. Is that possible?

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    In that file, give an example of the text you are looking for.

    If I understand YOU correctly...

    then show me what result you expect a FORMULA to show you.

    If I have not understood you correctly, then you need to explain more clearly!!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    No reply, so a guess...

    =LET(A,VSTACK(Sheet1:Sheet2!A4:H100),B,FILTER(A,BYROW(A,LAMBDA(x,SUM(--ISNUMBER(SEARCH("Jim",x)))))>0),VSTACK(Sheet1!A2:H2,IF(B="","",B)))
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    This has nothing to do with formulas. The workbook is full of text in fields. I want to search for text in one of the cells and be able to see, in the results, an entire row of data connected to that cell. I want to be able to view every instance of "no ID" as well as the rest of the cells in the row.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    Fair enough so. In that case, I don't think that you can do that. One sheet at a time with advanced filter, maybe... but not across a workbook (I think).

    But take a look at the file. It >>might<< offer a workaround for you.

  15. #15
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    Thank you.

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    LoL. I attached the wrong file, in any event. Idiot.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    Yes - so how did you do it??

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    Looking at the formula in the file in Post 16 (the CORRECT one.... Dohhh!).


    =LET(A,VSTACK(Sheet1:Sheet2!A4:H100),B,FILTER(A,BYROW(A,LAMBDA(x,SUM(--ISNUMBER(SEARCH(G1,x)))))>0),VSTACK(Sheet1!A2:H2,IF(B="","",B)))

    Subformula A stacks sheets 1 &2 above each other. the blue bit is more complicated:

    FILTER(A,BYROW(A,LAMBDA(x,SUM(--ISNUMBER(SEARCH(G1,x)))))>0)

    row by row, it looks through stack arising from A for the search term in G1. If it finds it, it returns TRUE or FALSE. The -- turns them into 1 and 0. Sum adds them up, row by row. Filter then returns only those rows where the sum >0.

    The final result (green) stacks the headers and the result of the filter, with any blank cells being returned as blanks.... arather than the Excel default, which would be to return them as irritating zeros.


    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  19. #19
    Registered User
    Join Date
    02-16-2024
    Location
    Long Island, NY
    MS-Off Ver
    365 for Mac, 16.66.1
    Posts
    10

    Re: how to find all occurrences of text and show at once

    Wow, that's all way over my head. Thanks so much for all the help/work.

    I guess my last question is, where do I paste that formula so it runs on my entire workbook? And do I need to make changes so it applies to the dozens of tabs in the full workbook?

    Enjoy the weekend.

    Scott
    Last edited by henrod; 02-17-2024 at 08:15 AM.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how to find all occurrences of text and show at once

    Paste it wherever you like!! It needs minimal adjustment.

    =LET(A,VSTACK(Sheet1:Sheet2!A4:H100),B,FILTER(A,BYROW(A,LAMBDA(x,SUM(--ISNUMBER(SEARCH(G1,x)))))>0),VSTACK(Sheet1!A2:H2,IF(B="","",B)))

    1. Assume you have 25 sheets, and you want to search 20 of them. Ensure the 20 are beside each other in the tab list. The others can be to the left, the right or both... but not in the middle... of your 20.

    2. Blue. Change this to the name of the first of the 20 sheets

    3. Cyan. Change this to the name of the last of the 20 sheets.

    4. Green. Ensure this is an adequate range (don't go mad, using 100,000 rows, if you only have 100...)

    5. Red. Change this to reference the cell containing your search term.

    6. Purple. Make sure this covers ONE set of header rows, from ONE of the sheets. It can be any of them.

    Fingers crossed... it >>>should<<< now just work. So, a nice formula for a problem that had "nothing to do with formulas". Never underestimate the power fo formulae (especially with O365).


    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Show how many occurrences on a day of the week
    By stacydmeyer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2015, 05:33 PM
  2. [SOLVED] Occurrences but if greater than or less than, But Show value, (not FALSE- TRUE)
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-26-2014, 02:50 AM
  3. Replies: 5
    Last Post: 10-10-2012, 10:39 AM
  4. Replies: 4
    Last Post: 07-20-2011, 09:20 AM
  5. Show All Occurrences
    By Larry.LeBlanc@O in forum Excel General
    Replies: 5
    Last Post: 08-17-2010, 05:53 PM
  6. Using VLOOKUP to find multiple occurrences and find the Total quantity
    By susanpa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2009, 09:54 AM
  7. Replies: 4
    Last Post: 10-18-2006, 12:25 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