+ Reply to Thread
Results 1 to 7 of 7

Move cells in the same row to a new column based on another cells value in the same column

  1. #1
    Registered User
    Join Date
    10-19-2015
    Location
    TEXAS
    MS-Off Ver
    EXCEL2013
    Posts
    4

    Red face Move cells in the same row to a new column based on another cells value in the same column

    Hello, i am searching for a function that allows me to move two cells from their current position in a row to two other columns based off of the value of another cell in that row. I have seen many options to move data to another sheet but, not on the same row. Thank you for your help in advance.
    Example would be: Move c1 and d1 to a1 and b1 based on the word in i1.

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Move cells in the same row to a new column based on another cells value in the same co

    @RJREAD
    Functions cannot do what you want, you'll need to write a VBACode
    Tell us if you need help on that

    HTML Code: 
    A user-defined function called by a formula in a worksheet cell cannot change the environment of Microsoft Excel. This means that such a function cannot do any of the following:
    Insert, delete, or format cells on the spreadsheet.
    Change another cell's value.
    Move, rename, delete, or add sheets to a workbook.
    Change any of the environment options, such as calculation mode or screen views.
    Add names to a workbook.
    Set properties or execute most methods.
    Barriers are there for those who don't want to dream

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move cells in the same row to a new column based on another cells value in the same co

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-19-2015
    Location
    TEXAS
    MS-Off Ver
    EXCEL2013
    Posts
    4

    Re: Move cells in the same row to a new column based on another cells value in the same co

    Will this work for all rows in a column or just row specific? Thanks.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move cells in the same row to a new column based on another cells value in the same co

    That was just for your example. This will check each cell in Column I.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-19-2015
    Location
    TEXAS
    MS-Off Ver
    EXCEL2013
    Posts
    4

    Re: Move cells in the same row to a new column based on another cells value in the same co

    Thanks all!

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move cells in the same row to a new column based on another cells value in the same co

    You're welcome. Glad to help out.

+ 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] Auto populate cells in one column based if cells in next column are populated
    By diablo86 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-22-2013, 06:29 AM
  2. Move selected cells to corresponding cells in a new column
    By ami_mark in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-14-2012, 12:35 PM
  3. Move selected cells to corresponding cells in a new column
    By ami_mark in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-14-2012, 12:10 PM
  4. [SOLVED] macro to move column cells to another column row
    By kurapay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2012, 09:18 PM
  5. How to move cells to another column based on a certain value?
    By t_gagliardi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2012, 10:56 AM
  6. how to move cells in a column with different column width
    By ajish002 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-07-2012, 03:26 PM
  7. Merge cells in a column based on cells highlighted in other column
    By nileshrg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2011, 03:22 AM
  8. How to move cells to another column based on a certain value
    By April12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2008, 12:47 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