+ Reply to Thread
Results 1 to 6 of 6

Macro needed for multiple Find and Replace in Excel 2010

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro needed for multiple Find and Replace in Excel 2010

    NEW to the writing of a macro in excel. I need a macro to find all instances of 05000 in Column G and replace the current number zero (all instances of it) in Column H with .015. thanks

  2. #2
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: Macro needed for multiple Find and Replace in Excel 2010

    Are you saying that you want to replace all instances of 0 with .015 where the cell value = 05000? So, in all cells in column H where the value = 05000, your proposed value would be .0155.015.015.015? That's how I'm reading your description of what you want.

    Greg
    Just a guy trying to make work stuff easier.

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro needed for multiple Find and Replace in Excel 2010

    No. There is a value of 0 in a cell in column H where 05000 is in a cell in column G. so column H should read .015 instead of 0 when 05000 is in column G.

    example

    10358053 12.02
    1004426 5.96
    05000 0 **** this needs to be .015 instead of 0
    0623 0.078
    10358053 12.02
    10358536 9.11
    05000 0 **** this needs to be .015 instead of 0

    Thanks

  4. #4
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: Macro needed for multiple Find and Replace in Excel 2010

    Try this. Note, the code only changes values of 0 to .015. So, for example, you could have 05000 in G, and 1 in H, and the code will not change the 1 to .015.

    Please Login or Register  to view this content.
    Greg

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro needed for multiple Find and Replace in Excel 2010

    Another:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-23-2012
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro needed for multiple Find and Replace in Excel 2010

    thank you Greg that worked

+ 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 & Replace text in Word 2010 with Excel 2010 values.
    By pricep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2015, 06:36 AM
  2. Macro Multiple Find and Replace with a formatted cell in Excel 2010
    By isasa74 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-31-2014, 08:01 AM
  3. Macro for Multiple Find and Replace in Excel
    By lxlth20000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2013, 07:37 AM
  4. Help Needed with Find and Replace Macro
    By e30325i in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 02:49 PM
  5. Formula needed for find and replace multiple lines
    By helloandrew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2010, 09:29 AM

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