+ Reply to Thread
Results 1 to 6 of 6

Fill the values & replace the old values by vba code depends upon 2 col

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Fill the values & replace the old values by vba code depends upon 2 col

    Dear experts

    I have set of data in multiple range ,need to fill the and replace the old values depends upon two column values (AH & AL)

    IF Active Calls is "TATA" In AH:AH, and IF Action Onwer Col is "Blank",in AL:AL
    Then Fill the Blank cells by Values "SVC" in the col Action Owner,Then Replace Old values by "Updates Awaited" in Status Col(AM:AM)



    find the attachment & basic code take this code for this task

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Fill the values & replace the old values by vba code depends upon 2 col

    Hi,

    Rather than a looping macro (which can often be slow) use a macro to first filter the data set for the two conditions you mention and then add SVC and Updates Awaited to columns AL & AM using the .SpecialCells(xlCellTypeVisible) instruction.

    Your macro doesn't seem to reflect the requirement you stated in the bold text.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Fill the values & replace the old values by vba code depends upon 2 col

    sir, This code used for different scenario but Not able to loop to this task... you may take this code as base level or try new code...

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Fill the values & replace the old values by vba code depends upon 2 col

    Hi,

    Run the following macro.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Fill the values & replace the old values by vba code depends upon 2 col

    John You got solution...

  6. #6
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Fill the values & replace the old values by vba code depends upon 2 col

    Yes.... Richard sir thanks alot works perfectly.. superb one

+ 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. replace code/id values with a name found in a list
    By ebbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2015, 10:25 AM
  2. vba code to replace old values by new value depends upon 2 col values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2014, 03:22 AM
  3. [SOLVED] vba to Replace Old values by new values depends upon cell values in AC:AC col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:15 AM
  4. [SOLVED] vba code to replace old values by new value with 2 type of criteria
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2014, 03:31 AM
  5. [SOLVED] Need vba or formula help to set values depends upon 3 conditions values in 3 col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2014, 12:34 PM

Tags for this Thread

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