+ Reply to Thread
Results 1 to 12 of 12

Macro to move number values from one cell into another

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Macro to move number values from one cell into another

    Dear All

    I am trying to come up with a Macro that moves a number value from cells in column B into the neighboring cell in column A.

    Before:

    Screenshot 2018-10-27 19.02.01.png

    After:

    Screenshot 2018-10-27 19.02.39.png

    This must only be done to numbers. Cells with text should not be moved.

    In the above example pictures, a change was done in row 20: number value "12" was added/moved into cell A20.

    The excel file is also attached.

    Thank you!!
    Attached Files Attached Files
    Last edited by elgato74; 10-27-2018 at 01:19 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,408

    Re: Macro to move number values from one cell into another

    Please Login or Register  to view this content.
    Last edited by daboho; 10-27-2018 at 02:07 PM.

  3. #3
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Re: Macro to move number values from one cell into another

    sorry isnt working

  4. #4
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,408
    Quote Originally Posted by elgato74 View Post
    sorry isnt working
    Try again


    Please Login or Register  to view this content.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  5. #5
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Re: Macro to move number values from one cell into another

    that is better but it needs to also delete the value in column B after it was added

    thank you!!

    and in my "real" workbook, Column A is really Column C, and Column B is really Column G.

    How can i adjust your code to fit my needs?

    Screenshot 2018-10-27 20.19.14.png
    Last edited by elgato74; 10-27-2018 at 02:19 PM.

  6. #6
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,408
    Quote Originally Posted by elgato74 View Post
    that is better but it needs to also delete the value in column B after it was added

    thank you!!
    Oo i am sorri
    Try again
    Please Login or Register  to view this content.
    Last edited by daboho; 10-27-2018 at 02:23 PM.

  7. #7
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Re: Macro to move number values from one cell into another

    see my post #5

    can you adjust your code?

  8. #8
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,408

    Re: Macro to move number values from one cell into another

    Change to
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Re: Macro to move number values from one cell into another

    perfect !! thank you very much !!

  10. #10
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,408
    Quote Originally Posted by elgato74 View Post
    perfect !! thank you very much !!
    Thank for feed back
    Dont forget mark as solved

  11. #11
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Germany
    MS-Off Ver
    365
    Posts
    569

    Re: Macro to move number values from one cell into another

    sorry, i have to reopen.

    what if the case is the other way around. I have number in "C" and text in "G" and the text needs to be moved into "C"

    ?

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

    Re: Macro to move number values from one cell into another

    daboho's codes

    Please Login or Register  to view this content.

+ 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: 2
    Last Post: 08-22-2015, 09:40 AM
  2. [SOLVED] Macro to Move Multiple Objects based on Cell Values (NFL Schedule) only works sometimes
    By edneal2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 01:49 AM
  3. Replies: 4
    Last Post: 11-13-2012, 02:16 PM
  4. Macro to move all values to left if the cell is empty
    By Blake 7 in forum Excel General
    Replies: 6
    Last Post: 05-05-2011, 06:28 AM
  5. macro to move a number to another cell
    By Neuther in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2008, 02:06 AM
  6. Replies: 4
    Last Post: 01-02-2007, 07:50 AM
  7. [SOLVED] Macro to insert to move values of a cell to next cell in the same row
    By Macro man in forum Excel General
    Replies: 1
    Last Post: 08-06-2005, 01:05 AM

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