+ Reply to Thread
Results 1 to 7 of 7

Find in column B, copy/paste from column C

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Find in column B, copy/paste from column C

    This seems like it should be simple, but I haven't found a solution yet.

    I am trying to go through a list of television shows where there is a column with the network (Col A), a column with a program name (Col B), and a column with an episode or movie title (Col C).

    Where a movie has aired, the program name will usually be something that says "movie" in it (e.g. BET Movie of the Week, FX Morning Movie).

    When "movie" appears in a cell of column B, I want to copy/paste the movie title from column C left into Col B.

    I would show some code, but so far nothing has really come close to working.
    Attached Files Attached Files
    Last edited by jbentley73; 10-24-2011 at 03:56 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find in column B, copy/paste from column C

    You could use a helper column formula like in D5:

    =IF(ISNUMBER(SEARCH("movie",B5)),C5,B5)

    copied down.

    Then you can copy the column D range and paste special, selecting Values over column B. Then delete column D.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Find in column B, copy/paste from column C

    or using VBA:

    Please Login or Register  to view this content.



  4. #4
    Registered User
    Join Date
    10-24-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find in column B, copy/paste from column C

    The VBA code worked almost perfectly--only problem is that I wanted to replace the program name (Col B), not just insert the movie title (Col C).

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find in column B, copy/paste from column C

    Using the formula method is just as quick and works as you requested.

  6. #6
    Registered User
    Join Date
    10-24-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find in column B, copy/paste from column C

    The helper column formula worked!

    Thanks so very much!

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Find in column B, copy/paste from column C

    The amended VBA method:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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