+ Reply to Thread
Results 1 to 5 of 5

vba if column B contains text then copy that cell and Adjacent Cell to bottom row column

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    northern Ireland
    MS-Off Ver
    365
    Posts
    4

    vba if column B contains text then copy that cell and Adjacent Cell to bottom row column

    Hello,

    I am trying to cut calls that contain information in column B and also copy the adjacent cell C and insert them to the bottom roll in cells A and B.

    Would someone have a VBA code for this?

    Also how do you attach a file on this forum?

    Before
    Stephen yes 58
    Stephen 48
    Stephen no 15
    Stephen 51
    Stephen 2
    Stephen why 564
    Stephen 454
    Stephen 15
    Stephen yes 12
    Stephen 748
    Stephen 11
    Stephen may 21
    Stephen 2
    Stephen 5
    Stephen no 5
    Stephen 5

    After
    Stephen 58
    Stephen 48
    Stephen 15
    Stephen 51
    Stephen 2
    Stephen 564
    Stephen 454
    Stephen 15
    Stephen 12
    Stephen 748
    Stephen 11
    Stephen 21
    Stephen 2
    Stephen 5
    Stephen 5
    Stephen 5
    yes 58
    no 15
    why 564
    yes 12
    may 21
    no 5

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: vba if column B contains text then copy that cell and Adjacent Cell to bottom row colu

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: vba if column B contains text then copy that cell and Adjacent Cell to bottom row colu

    Perhaps...

    Please Login or Register  to view this content.
    Last edited by sintek; 05-02-2019 at 12:50 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    04-16-2019
    Location
    northern Ireland
    MS-Off Ver
    365
    Posts
    4

    Re: vba if column B contains text then copy that cell and Adjacent Cell to bottom row colu

    Thank you this work great.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: vba if column B contains text then copy that cell and Adjacent Cell to bottom row colu

    Pleasure...If this answers your initial query then please 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. [SOLVED] Find matching value in one column to copy adjacent cell on same row
    By soradsauce in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-21-2020, 12:40 AM
  2. [SOLVED] Copy cell down to bottom of adjacent variable list
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2017, 07:12 AM
  3. [SOLVED] If number in Column A matches number in column B - Copy B cell and adjacent cells ?
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2014, 12:30 PM
  4. Need loop to copy value on a column until cell adjacent to it is blank.
    By boonboonzzz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2014, 02:04 AM
  5. [SOLVED] Macro to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  6. Replies: 12
    Last Post: 09-15-2012, 10:20 PM
  7. To copy values in a column relevant to text in an adjacent column?
    By Guy Keon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2005, 04:15 PM

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