+ Reply to Thread
Results 1 to 4 of 4

found and replace

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    Finland
    MS-Off Ver
    Excel 2003 and Excel 2010
    Posts
    12

    found and replace

    Hi,

    How can I found a some value and replace it?
    Example:
    A1=A
    A2=B
    A3=C
    B1=1
    B2=2
    B3=3

    I have a imput cell D1 and D2.
    I add in D1 value "A" and D2 value 2. I need that excel can found this cell B1 and replace it by value "2".
    D1 is value what I need to find and D2 what is a value whitc will replace this old value 1.
    Or can I decrease or increase the value by same way.
    Any ideas?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: found and replace

    To physically change the flat values in column B would require a macro, VBA. Is that OK? A whole new world...
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    Finland
    MS-Off Ver
    Excel 2003 and Excel 2010
    Posts
    12

    Re: found and replace

    Hi, yes if some one can write a macro for that purpose. I will like that.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: found and replace

    Based on the exact description you have given...

    1) Right-click on the sheet tab and select VIEW CODE
    2) Paste in this event macro to the sheet module that appears:

    Please Login or Register  to view this content.
    3) Close the VBEditor and save the workbook as a macro-enabled (*.xlsm)
    4) Now put a value C1 and D1

    Each time you change D1 while there is a value in C1 it will update your table in columns A:B.

+ 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