+ Reply to Thread
Results 1 to 6 of 6

Incremental find and replace

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Incremental find and replace

    Hello, I have a large group of cells that I need to change. The first cell of each row for table a needs to be changed to match with the first cell from table b. Unfortunately for each single row in table b, there is a variable number of rows in table a that need to be changed to match, so I can't just do a simple copy/paste. What I'm looking for is some way to automatically go through and change all of them, since there are far too many to do by hand.

    I don't know anything about Access scripts/macros, but what I am thinking it needs to do is start with a pair of values, one that needs to be changed and one that it needs to change to, and then loop, increasing these numbers by 1 each time until it gets to a defined number.

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: Incremental find and replace

    Any chance you can post the spreadsheet/dummy spreadsheet so I can see what you are trying to do. I am sure there is a way in Access.

    Dan
    "I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
    If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!

  3. #3
    Registered User
    Join Date
    08-16-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Incremental find and replace

    Here is a quick example. The numbers in column a of sheet 2 need to be changed to match the numbers in column a of sheet 1. All instances of the same number in sheet 2 need to be changed to the name number from sheet 1. For example, in the attached spreadsheet, all 9 cells that are 181939 in sheet 2 need to change to 192956 to match sheet 1, then all the cells that are 181940 need to change to 192957 etc.

    To do this by hand would mean changing several thousand cells, which is why I came here hoping for help. The original information is in access, but I can copy/paste into and out of excel if that is easier or needed.

    I appreciate you taking the time to look at this for me.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: Incremental find and replace

    dougsc,

    I almost have this completely solved, however am out of time today. I got the replace part done.

    I have 2 questions for you:

    1. Every single Number in Column A on Sheet 1 will have at least 1 number in Table 2 Correct?

    2. They are in sequential order correct?

    Ie. 19256 - 181939 the next 2 numbers in the list will always match? (Hope that makes sense)

    Dan

    P.S. I could prolly have done it easier in Access, I just wrote a simple macro in excel atm.

  5. #5
    Registered User
    Join Date
    08-16-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Incremental find and replace

    Yes to both questions. Thanks again!

  6. #6
    Forum Contributor
    Join Date
    04-23-2009
    Location
    IOWA
    MS-Off Ver
    2010 Professional
    Posts
    270

    Re: Incremental find and replace

    I think this will work for you after only slight modifications.

    Hope this helps,

    Dan
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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