+ Reply to Thread
Results 1 to 7 of 7

Search for specific word in excel and paste it in the next column(not sure how to start)

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Search for specific word in excel and paste it in the next column(not sure how to start)

    Hey Guys,

    I am looking for macro that will search column A for a specific word, in this case it will search for "NFF". If any cell in column A contains NFF, it will paste NFF into column B. For instance if A1 = "NFF, Upgraded" then B1 will show "NFF" I have attached a sample spreadsheet with a couple of examples. Sheet 1 is what I have, sheet 2 is what I need.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    Try the attached.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    I am just guessing but maybe

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    That works great!! One question, is there a way to make the macro only paste what it is searching for?? Like instead of pasting NFF, UPGRADED.... it only pastes NFF

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    Amended code
    Attached Files Attached Files
    Last edited by AB33; 12-17-2013 at 03:19 PM.

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    I think I might misunderstood your request. Try this file. The input box is case sensitive
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Search for specific word in excel and paste it in the next column(not sure how to star

    Life saver!!!

+ 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. Search document for rows containing a specific word, cut/paste into new sheet
    By mea02300 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-09-2013, 08:44 AM
  2. Replies: 3
    Last Post: 02-05-2013, 12:57 PM
  3. Excel Macro to Search Row for specific set of word
    By borzoa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2011, 11:40 PM
  4. Replies: 1
    Last Post: 01-25-2011, 10:50 PM
  5. Replies: 3
    Last Post: 05-05-2010, 09:15 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