+ Reply to Thread
Results 1 to 6 of 6

how to Move Column A data to Column B

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    28

    how to Move Column A data to Column B

    I would like a macro that looks to see if Column A has data and if it does, move it to column B. (If Column A has data, then Column B will be empty.) If column A does NOT have data, I don't want anything to happen (because Column B will have data then).

    Before
    A B C D
    Wednesday
    ARK School 9:00am 9:00am

    SG mtg 1:00pm 1:00pm
    FUEL! 7:00pm 7:00pm
    VIEW 7:00pm 7:00pm

    After
    A B C D
    Wednesday
    ARK School 9:00am 9:00am

    SG mtg 1:00pm 1:00pm
    FUEL! 7:00pm 7:00pm
    VIEW 7:00pm 7:00pm

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: how to Move Column A data to Column B

    Hi, There are multiple ways of doing this but the simplest is shown in the code below

    Please Login or Register  to view this content.
    It simply looks at each cell from 1 to 1000 and if empty moves to the next row. If Cell(Ai) has data. it copies the data to Cell(Bi) and clears the content of Cell(Ai). Change the row numbers to suit your data range. Hope this helps.
    Regards

    NoClass1980

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: how to Move Column A data to Column B

    Hi steven_e

    Perhaps like this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-02-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: how to Move Column A data to Column B

    Thanks a lot!

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: how to Move Column A data to Column B

    You';re welcome, can you mark thread as solved and give feedback. Thanks

  6. #6
    Registered User
    Join Date
    11-02-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: how to Move Column A data to Column B

    I did both things....but I'm new at this. Hope it worked. I see [SOLVED] on my web browser tab

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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