Results 1 to 5 of 5

Replace values between two keywords in a colmn

Threaded View

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Replace values between two keywords in a colmn

    Hi All,

    I'm having trouble solving the following problem:
    I have data in which there are important keywords within a row (e.g.,# Message: FacesSc0_1) that are 'boundary markers' for data that is relevant to me. What I want to do is to select the data in the column between two such keywords, replace them all with the same specific value, and delete the other rows.

    For example a column may look like this:

    534.88
    534.78
    # Message: FacesSc0_1
    534.78
    534.55
    534.59
    # Message: FacesSc0_2
    534.55
    534.55
    # Message: FacesSc0_3
    534.78
    534.55
    534.59
    # Message: FacesSc0_4

    I would like to replace the values in the cells between "# Message: FacesSc0_1" and "# Message: FacesSc0_1" with the value 1, delete the values between "# Message: FacesSc0_2" and "# Message: FacesSc0_3", and replace the values in the cells between "# Message: FacesSc0_3" and "# Message: FacesSc0_4" with value 2. The resulting column would be reduced to this:

    # Message: FacesSc0_1
    1
    1
    1
    # Message: FacesSc0_2
    # Message: FacesSc0_3
    2
    2
    2
    # Message: FacesSc0_4

    Can anyone help me out?

    Many thanx in adance!
    Last edited by huijding; 02-03-2014 at 07:19 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Search for keywords and copy rows containing keywords to new sheet
    By lenorsk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-15-2013, 06:54 AM
  2. [SOLVED] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  3. IF formula that checks several values and several keywords
    By vlife in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2013, 11:40 AM
  4. "Find and Replace" missing the ability to replace values?
    By dylanemcgregor in forum Excel General
    Replies: 6
    Last Post: 06-05-2013, 01:13 AM
  5. How to get text below in a new colmn?
    By Bandini in forum Excel General
    Replies: 7
    Last Post: 10-15-2012, 12:38 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