+ Reply to Thread
Results 1 to 6 of 6

Replace values in rows based on criteria in column B

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Bournemouth, England
    MS-Off Ver
    Office 365
    Posts
    24

    Replace values in rows based on criteria in column B

    Could someone please help me with a macro which would change all values "<-10" and ">25" to 0 in columns C:BT, but only in those rows where column B contains word "Deviation"?

    The data looks as shown on the screenshot below, I have also attached a sample of the main spreadsheet.

    screen.PNG


    Kind regards
    Attached Files Attached Files

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

    Re: Replace values in rows based on criteria in column B

    Not a solution to your problem, but I noticed you work with merged cells.

    My advice is NOT to work with merged cells, you get in troubl with it sooner or later.
    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.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Replace values in rows based on criteria in column B

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-19-2014
    Location
    Bournemouth, England
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Replace values in rows based on criteria in column B

    stnkynts, thank you very much for your reply, the code works like a charm!

  5. #5
    Registered User
    Join Date
    07-19-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Replace values in rows based on criteria in column B

    Hi, I have a similar need. I have a list of data in column A that contains text values. I need to find all the ones that contain the text "(Federated)" or "(CDK)" and replace the values in column B with the same value - say 1234

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Replace values in rows based on criteria in column B

    @pookyman; Please start a new thread of your own.

+ 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 multiple values based on criteria
    By samuelhzb in forum Excel General
    Replies: 6
    Last Post: 01-04-2015, 01:25 PM
  2. Replace column values based on a list
    By bigroo1958 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2014, 07:12 AM
  3. [SOLVED] Finding Values in a Column based on Criteria and Selecting Rows Above
    By LvaughnL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2013, 03:07 PM
  4. Replies: 6
    Last Post: 10-18-2012, 03:10 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