+ Reply to Thread
Results 1 to 4 of 4

Move Row to another table based on cell value

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    Northampton, England
    MS-Off Ver
    Office 365
    Posts
    14

    Move Row to another table based on cell value

    Hi all

    I have been looking for a solution for this particular problem.
    I have found numerous links and have tried them to no avail.

    This is what I am trying to acheive.
    1. Move a row from one table to another based on the values in a column.
    I have two tables on top of each other with 2 rows inbetween, both formatted as tables.
    The top table has a fixed number of rows.
    I would like to move the data from the top table to the bottom table depending on the value on one of the columns.
    When rows are moved the table length should not change as it has a link to a formula in another sheet.

    2. Move a row from one sheet to another based on the values in a column.
    I would like to move the data from a table in one sheet to another sheet based on the cell value.
    When rows are moved the table length should not change as it has a link to a formula in another sheet.

    I have tried advanced filter x2. 1, copies to another location and 2, without the copy criteria so it deletes the row. but this is causing some issues for me.

    I have tried a vba but it comes back with an error 13 and it is removing the row and pasting it on existing data?! .

    Any advice or guidance appreciated.

    Thanks
    J

  2. #2
    Registered User
    Join Date
    05-22-2016
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    15

    Re: Move Row to another table based on cell value

    Hello Janarthenan,

    This shouldnt be too difficult to solve with vba. Some questions for you

    1. If you MOVE a row from table 1, to table 2, how can the table length remain the same? Do you instead need to COPY the row to table 2, and delete the non--formula cells in table 1?
    2. What are the criteria for moving cells? eg. Is cell B6 says "Move Down" then move the selected row from table 1 etc
    3. What are the workbook, worksheets, table, cell references you are working with?

    Seeing the data would be beneficial, are you able to post samples or the workbooks?

    Many Thanks
    Caleeco
    www.excelwtf.com - Helping solve those WTF moments

  3. #3
    Registered User
    Join Date
    06-09-2016
    Location
    Northampton, England
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Move Row to another table based on cell value

    Hi Caleeco

    1. Basically I would like a row to be inserted at the end when a row is moved.
    2. I have created a List via Data Validation and when RIP or Discharged is selected the row should move down, When Moved to another place is selected it should go to the appropriate sheet.

    The table length refers to the number of beds available, the formula in Dashboard counts the empty spaces within the length and gives a vacancy number.
    I will do an autosort vba so the empty spaces stay at the bottom.


    I have attached the workbook I have removed the names for confidentiality.

    Thanks
    J
    Attached Files Attached Files
    Last edited by janarthenan; 06-09-2016 at 04:57 PM.

  4. #4
    Registered User
    Join Date
    06-09-2016
    Location
    Northampton, England
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Move Row to another table based on cell value

    Hi All,

    Is this at all possible?! Or should I ditch it and try something else - I am open to other options.

    I have managed to move rows from top table to bottom table, but this reduces the table length.

    I am Still Unable to move from one sheet to another as when I move the row gets copied to the last line of the second table.

    Maybe I should try Side by Side..

    Regards
    Jan

+ 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. Move or delete cell information based on reference table
    By JW90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2016, 02:06 AM
  2. [SOLVED] Move Rows to another sheet based on Table Title
    By BOFH in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-19-2015, 09:53 AM
  3. [SOLVED] VBA to move specific cell to a table in another worksheet
    By markharris2004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2014, 03:52 PM
  4. Move rows in a table based upon a certain criteria.
    By Sm1tty in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-05-2014, 04:48 PM
  5. Move row based on value in a particular cell
    By goosetopher in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-12-2013, 11:58 AM
  6. Move row based on value in a particular cell
    By goosetopher in forum Excel General
    Replies: 0
    Last Post: 02-10-2013, 12:53 AM
  7. [SOLVED] Move row to different table depending on cell value
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 12-18-2011, 06:05 PM

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