+ Reply to Thread
Results 1 to 3 of 3

Move contents of a cell based on contents of another cell

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Move contents of a cell based on contents of another cell

    Hi,

    This is difficult to explain but here goes,

    Column A has changing values and if that value only appears once in that column then do nothing, but if the value appears more than once as in value 114612546-a below then move the value of colum C to Column D of the first appearance of that value as displayed below.

    Start like below:
    Column A Column B Column C
    114745628-1 8/2/2012 883020360433190
    114748693 8/2/2012 883020360433145
    114612546-a 8/2/2012 883020360433305
    114612546-a 8/2/2012 883020360433381
    114612546-a 8/2/2012 883020360433389


    After vba code runs like below:

    Column A Column B Column C Column D Column E
    114745628-1 8/2/2012 883020360433190
    114748693 8/2/2012 883020360433145
    114612546-a 8/2/2012 883020360433305 883020360433381 883020360433389
    114612546 8/2/2012 883020360434295

    The value in column A can appear up to 14 times before the script runs but above is my required result.

    Thanks for any help,

    David
    Last edited by djfscouse; 08-03-2012 at 04:44 PM. Reason: Not displaying properly

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Move contents of a cell based on contents of another cell

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Move contents of a cell based on contents of another cell

    Excellent, thank you very much!!

+ 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