+ Reply to Thread
Results 1 to 4 of 4

Excel Macro to Cut all cell vaues between two specific words and paste in next column

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    179 bertro
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel Macro to Cut all cell vaues between two specific words and paste in next column

    Hi, I am looking for some excel macro when run it will look in column A for the value "DISCOUNTED SECURITIES" and "FIXED INTEREST" and cut all the cell values between these two words and place them in Column B starting from top. Sample file attached, needs the middle values to be placed in next column. kindly helpBook1.xlsx

    Example

    Column A
    Val1
    Val2
    Val3
    Val4
    Val5
    DISCOUNTED SECURITIES
    ABG1711A
    ABN1702B
    ABN1805B
    FIXED INTEREST
    sdasda
    ABG1711A

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel Macro to Cut all cell vaues between two specific words and paste in next column

    Hi, fasrose,

    if both item only appear once like in your sample you may take an approach like
    Please Login or Register  to view this content.
    If there is more data in your real workbook and the items appear multiple times you should use Find/FindNext for a macro.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-28-2013
    Location
    179 bertro
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Macro to Cut all cell vaues between two specific words and paste in next column

    Thanks a lot, its working. You are great

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel Macro to Cut all cell vaues between two specific words and paste in next column

    Hi, fasrose,

    thanks for the feedback. Could you mark the thread as Solved via Thread Tools over the first post?

    Ciao,
    Holger

+ 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. How to remove two specific words from each cell in a column
    By pahari75 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-10-2013, 06:29 PM
  2. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  3. [SOLVED] Macro to find specific words and compare with a cell
    By kinirobin in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-27-2012, 10:18 PM
  4. Macro-Copy&Paste Fixed Data Ranges Into Last Empty Cell of Specific Column
    By hailnorm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2009, 10:15 PM
  5. Replies: 2
    Last Post: 03-16-2006, 09:53 AM

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