Excel: Highlight all instances of a phrase like in notepad++

07
2013-08
  • stefahn

    If I select a phrase in notepad++ it will highlight all other instances of that phrase.

    Is there a way to do this in Excel as well?

    Thanks for your help!

  • Answers
  • halligan26

    I do not believe that it is possible without writing a decent chunk of code. There may be a plugin for that feature in the online store, but the closest answer to your question appears to be at this link:

    http://www.mrexcel.com/forum/excel-questions/488558-highlight-cells-same-text.html


  • Related Question

    selection - Is it possible to make Excel select the word and only the word when you double-click on a word?
  • DanM

    In pretty much every software application on the planet, if you double-click on a word, it will select just the word, not all the surrounding punctuation. Excel doesn't work this way. If you select a word in Excel, chances are, it will select a lot more than just that word.

    It also depends whether the word is part of a formula or just regular text. Check out the table below. If a word is not part of a formula, it will select the punctuation mark/symbol every time except for hyphen/dash. If the word comes after an equal sign, the rules are very different.

    What happens when you double-click Word?
    -----------------------------------
            Selects            Selects
             Word               Word
    Phrase   Only     Phrase    Only
    -----------------------------------
    Word~             =Word~     
    Word`             =Word`     
    Word#             =Word#     
    Word$             =Word$     
    Word%             =Word%     
    Word^             =Word^     Y
    Word&             =Word&     Y
    Word*             =Word*     Y
    Word(             =Word(     Y
    Word)             =Word)     Y
    Word-     Y       =Word-     Y
    Word_             =Word_     
    Word+             =Word+     Y
    Word=             =Word=     Y
    Word|             =Word|     Y
    Word\             =Word\     
    Word.             =Word.     
    Word,             =Word,     Y
    Word<             =Word<     Y
    Word>             =Word>     Y
    Word?             =Word?     
    Word/             =Word/     Y
    Word"             =Word"     
    Word'             =Word'     
    Word:             =Word:     Y
    Word;             =Word;     Y
    

    This is completely non-standard behavior, and it's almost never what I want (and even if it were, I probably would forget and just select it by hand). One of the worst examples to me is when I'm trying to select a word between quotation marks, and it selects the the quotation marks as well.

    So, I ask, probably helplessly, is there any way to turn this off?

    Also, just out of curiosity, does anyone find these unusual selection rules useful?

    I just submitted a feature request to Microsoft:

    I would like the following option to be added to Excel: "Double-clicking on a word selects only the word". With pretty much every Windows software application on the planet, you double-click a word and it selects that word. It doesn't select the quotation marks or any of the punctuation surrounding the word, it just selects the word. For some reason, Excel violates this standard and often selects punctuation along with the word. This is almost never the behavior I'm expecting or want, and I would like to be able to turn this weird implementation off. Please consider offering this feature for the next release of Excel. Thank you.


  • Related Answers
  • alex

    Well, I'm afraid the behavior is hardwired into Excel. It's not something you can change. Word has a different behavior as well (try double clicking on a word with an underscore (_) in the middle in Word and in notepad and observe the difference).