+ Reply to Thread
Results 1 to 11 of 11

Using Find and replace on part of the results

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Using Find and replace on part of the results

    Good day,

    When using find and replace, is there a way to Find All but replace only part of the results eg if I find 644 results can I replace 600 at one and leave the remaining 44 as before?

  2. #2
    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,002

    Re: Using Find and replace on part of the results

    Yes, but you'll need to provide us with representative examples of what you DO want to change and what you don't.

    On the basis of 1 example, the formula

    =--mid (A1,2, len (A1))

    will give 44 from 644; but it probably wont work for a more detailed list.
    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

  3. #3
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Find and replace on part of the results

    Using find and replace (Ctrl + H) I can find all the instances of a number or text and replace them with something else eg, find all instances of February 2013 and replace them with January 2015.

    I want to know if I can find all but replace only part of the results. As it stands now, I can either replace all or replace one.

  4. #4
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Find and replace on part of the results

    Using find and replace (Ctrl + H) I can find all the instances of a number or text and replace them with something else eg, find all instances of February 2013 and replace them with January 2015.

    I want to know if I can find all but replace only part of the results. As it stands now, I can either replace all or replace one.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using Find and replace on part of the results

    Then you did not understand the question of Glenn Kennedy well enough.

    If I understand it, he asked you to provide an excel example, without confidential information.

    Please also add the desired result in your file.

    After that it is much easier to forummembers to provide an good answer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Find and replace on part of the results

    In my attached file, I need to find all instances of Mar-13 and change some of them to Jan-14. I can change them by selecting each instances one by one and replacing with Jan-14. Can I select multiple instances and replace them all at once?
    Attached Files Attached Files

  7. #7
    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,002

    Re: Using Find and replace on part of the results

    Type the replacement text into a cell and copy it (CTRL-C). Then, with the \CTRL button held down, select (left click) all the cells you want to replace. Then use CTRL-V to replace.

  8. #8
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Find and replace on part of the results

    That will be a lot of work for a file that has 600 instances scattered randomly through out the work sheet. I want to know if there is a way to do it with the Find and Replace function.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using Find and replace on part of the results

    Select all cells (click in the cell in the left side, between the A and between the 1).

    Then CTRL + H

    find 1-3-2013
    replace by 1-3-2014

    replace all

  10. #10
    Registered User
    Join Date
    05-05-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Find and replace on part of the results

    I want to replace some of the cells not all of them. That is, I want to replace some of Mar-13 with Jan-14, not all.
    Last edited by CNN; 02-26-2015 at 03:26 PM.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using Find and replace on part of the results

    And how do you define, which cells needs to be changed?

+ 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. Find and Replace part of formula using VBA
    By chococ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2014, 01:26 PM
  2. find and replace part of formula only
    By iceshimmer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-06-2013, 06:51 AM
  3. [SOLVED] need VBA to find and replace part of a value in a cell
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-04-2013, 05:46 PM
  4. Find and Replace Part of cell
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2009, 05:50 AM
  5. Replies: 1
    Last Post: 04-27-2005, 08: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