+ Reply to Thread
Results 1 to 4 of 4

Macro to find specific word in cell and then copy and paste the adjacent cell upwards

  1. #1
    Registered User
    Join Date
    11-02-2014
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    12

    Macro to find specific word in cell and then copy and paste the adjacent cell upwards

    I have a system download that downloads onto a csv file, i open this into excel, however the unique code instead of it appearing downwards in a column for each item it puts the unique code at the bottom of each section.

    As there is a large volume of data I require the data to go into a pivot table, however as the code it displayed at the bottom this makes it time consuming to manually copy and paste the code upwards.

    Is there a macro code that I can use that search's for 'Branch Plant' in column E and then copy the unique code in F into cell E where there is an 'Item group' present in column E. Each week there will be different number of cells.

    See attached file: eg, I require F15 to be shown in E13 and E14, and F30 to be shown in E21 to E29 and so on........

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro to find specific word in cell and then copy and paste the adjacent cell upwards

    I'd be interested if someone had a better implementation than this. This is just my first thought, but it should work just fine for you:

    Please Login or Register  to view this content.

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

    Re: Macro to find specific word in cell and then copy and paste the adjacent cell upwards

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  4. #4
    Registered User
    Join Date
    11-02-2014
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    12

    Re: Macro to find specific word in cell and then copy and paste the adjacent cell upwards

    Amazing, they both work.

    Thank you very much, this will save me so much time.

    Very happy

+ 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: 1
    Last Post: 10-29-2014, 10:48 AM
  2. Find specific Data copy and paste into Cell Macro VBA
    By kunmateo93 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2014, 10:17 AM
  3. Replies: 8
    Last Post: 11-04-2013, 02:34 PM
  4. Need to find a word in a cell, copy the entire cell and two adjacent columns on same row
    By hang_sandwich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 11:16 AM
  5. [SOLVED] find value, copy value of adjacent cell and paste it on another sheet
    By Ajgor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 04:21 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