+ Reply to Thread
Results 1 to 6 of 6

Look for value in column B and copy if to several cells i column A

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Look for value in column B and copy if to several cells i column A

    Hello.

    In the attached file I want to look for the text IOH in column A.
    When the loop finds IOH I would like to copy the value in column B to all rows below on column A until the next IOH appears.
    Then the loops copies the new value in column B and continues.

    I have attached a file where you can see how it looks and how the result of the macro should look like.


    I hope you can help me with this.

    Kind regards
    AndersNettobehovslista.xlsm

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Look for value in column B and copy if to several cells i column A

    Try this....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Look for value in column B and copy if to several cells i column A

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Look for value in column B and copy if to several cells i column A

    Try
    BTW your explanation is very clear and your file well prepared: Thx
    Please Login or Register  to view this content.
    Last edited by PCI; 09-25-2015 at 08:37 AM.
    - Battle without fear gives no glory - Just try

  5. #5
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Look for value in column B and copy if to several cells i column A

    Thanks a lot. This worked perfectly for me!!!

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Look for value in column B and copy if to several cells i column A

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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. Replies: 4
    Last Post: 01-07-2015, 08:29 PM
  2. [SOLVED] UNSOLVED - Identify highlighted cells in column, copy cell value to column B of active row
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2014, 04:42 AM
  3. [SOLVED] Copy all cells in column that contain data & paste to first empty row of another column.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 08:45 AM
  4. [SOLVED] copy selected data into column A cells if column B contains text
    By El Conquistador in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-05-2013, 02:51 PM
  5. Replies: 3
    Last Post: 08-28-2012, 10:09 AM
  6. Copy nonerror values from a column to new column, no blank cells in between
    By farmerdave in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2009, 12:47 AM
  7. Copy a formula to cells in column A which don't have an empty cell in column B
    By floep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2006, 04:57 AM

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