+ Reply to Thread
Results 1 to 17 of 17

Find and Replace in Selection

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Find and Replace in Selection

    Is it possible to make "Find and Replace" only in "Selection"?

    When I select some text in whole text and make find and replace all the text get subjected to changes.

  2. #2
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Find and Replace in Selection

    I am puzzled. What you seem to be asking for is what Excel does by default.

    If I
    - select cells and
    - click on Replace and
    - enter values to replace "x" with "y" and
    - click on Repalce All
    Excel only replaces within the selected cells

    Can you please explain exactly what you are doing that is not working
    thanks
    If a response has helped then please consider rating it by clicking on *Add Reputation below the post
    When your issue has been resolved don't forget to mark the thread SOLVED (click Thread Tools at top of thread)

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Find and Replace in Selection

    Hi zanshin777,

    While selecting, it will only "Find or Replace" within the selection only.

    What you have to take care of is that when you click on "Replace All" within the selection, a dialog box will pop up saying..

    "We made X replacements in your selection.

    Do you want to search the rest of the document"
    Make sure you click on "No" and your changes will take in place only in the selection.

    Please let me know if this answer solve your purpose.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Quote Originally Posted by Kevin# View Post
    I am puzzled. What you seem to be asking for is what Excel does by default.
    Maybe you're puzzled because the post is about Word, not Excel.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    As Anil Dhawan says, you can simply select the range and choose 'Replace All', then answer 'No' when prompted to continue. Do note:
    1. If nothing is selected, 'Replace All' applies to the whole document; and
    2. If something is selected and you choose 'Replace' instead of 'Replace All', the selection is collapsed to the first found expression, if any, when found and is collapsed entirely after the first item is replaced. Consequently, if you want to do anything more with the original selection, you'd need to re-select it. This is different to 'Replace All', which leaves the original selection selected.

  6. #6
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Find and Replace in Selection

    @macropod Paul - What stroke of wizardry is this? Where in post#1 is the clue that this is about Word? Does MS MVP status come with an extra superpower?

  7. #7
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Quote Originally Posted by Kevin# View Post
    @macropod Paul - What stroke of wizardry is this? Where in post#1 is the clue that this is about Word? Does MS MVP status come with an extra superpower?
    Well, gee, umm, let me see....

    As I browse this august site I see we have a group of forums under the heading 'Microsoft Office Application Help - Excel Help forum'. I see there we have forums with names like 'Excel General', 'Excel Programming / VBA / Macros', 'Excel Formulas & Functions', 'Excel Charting & Pivots', 'Non English Excel' and 'For Other Platforms(Mac, Google Docs, Mobile OS etc)'. For whatever reason, the OP chose not to post in any of them. Instead he found another one under the heading 'Other Applications & Softwares', named 'Word Formatting & General' and posted there. Do you suppose the fact it it's posted in that particular forum instead of any of those Excel forums doesn't count for anything?

  8. #8
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Find and Replace in Selection

    @macropod - that makes a lot of sense - wandered aimlessly into the wrong forum. Oops!

  9. #9
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Find and Replace in Selection

    1) I select whilst pressing CTRL bunch of cells in tables.

    Then I make replace and say "no" to the question

    however only 4 cells change rest of the selection remains the same.

    Why?

    2) I can't attach a file to the website. Why?

  10. #10
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Find and Replace in Selection

    Quote Originally Posted by zanshin777 View Post
    1) I select whilst pressing CTRL bunch of cells in tables.

    Then I make replace and say "no" to the question

    however only 4 cells change rest of the selection remains the same.

    Why?

    Hi Zanshin777,

    Your original question was only to replace text within the selections based on that the solution was provided to you.

    Is it possible to make "Find and Replace" only in "Selection"?

    When I select some text in whole text and make find and replace all the text get subjected to changes.
    In case you want all text that matches criteria should replace with new content, You can click on "Yes" instead of clicking on "No".


    2) I can't attach a file to the website. Why?
    Currently the paper clip option is not working so you can try attaching your file by by going on "Go Advanced-->Additional Options-->Attachments-->Manage Attachments".

    Hope this answer your query.

  11. #11
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Quote Originally Posted by zanshin777 View Post
    1) I select whilst pressing CTRL bunch of cells in tables.
    That only selects the actual characters selected while holding down the Ctrl key - it does not select entire cells unless you triple-click on each selected cell. Even then, the Find/Replace will only apply to the last-selected range.

  12. #12
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Find and Replace in Selection

    Quote Originally Posted by macropod View Post
    That only selects the actual characters selected while holding down the Ctrl key - it does not select entire cells unless you triple-click on each selected cell. Even then, the Find/Replace will only apply to the last-selected range.
    The characters in the cells I select are the same.

    Is there a method to replace all the selection?

  13. #13
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Select the range by dragging the mouse over it or by just clicking on the start then on the end while holding down the Shift key.

  14. #14
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Find and Replace in Selection

    Then?

    Where to write what is replaced and what is written?

  15. #15
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Then use Find/Replace like you normally would - what else would you expect?

  16. #16
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Find and Replace in Selection

    Like I said find and replace don't replace all the selected cells.

    It changes only the last selected.

    How to change all the selected cells in a single move?

  17. #17
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Find and Replace in Selection

    Sorry, but that's just nonsense; Word does not work like that. Clearly you haven't followed the advice I gave.

+ 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] Find and replace (from selection)
    By thisismyname2 in forum Excel General
    Replies: 1
    Last Post: 12-09-2014, 06:33 PM
  2. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  3. Find and replace selection of values with one value
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2013, 09:57 AM
  4. How Can I make find/replace work ONLY with the selection
    By WadeLair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 05:36 PM
  5. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  6. Find/Replace (Selection only)
    By bospheros in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2008, 07:45 AM
  7. [SOLVED] Find and REPLACE within a selection, or column- not entire sheet/.
    By smithers2002 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2005, 12:06 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