+ Reply to Thread
Results 1 to 4 of 4

How to insert row and keep all the data together

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    How to insert row and keep all the data together

    Hello,

    I am having trouble figuring this problem out and hoping someone can help. I have attached an example of what we are dealing with. I have a online spread sheet that several people work with me on represented in Sheet1. Then we have another sheet which is represented by Sheet2 that has same data but also has additional data added to it.

    Some constraints we have are the following:
    • We need to keep the sheets separate.
    • New rows may get added from time to time on Sheet1 but not Sheet2.
    • There are columns on Sheet1 that are not on Sheet2 but Sheet 2 should contain all the columns from both.

    The problem we are having is keeping the data together when we insert a row. I tried using Indirect() and that works well except it does not work with the columns in Sheet2 that are not in Sheet1.

    in the attached example. The attached example, I inserted a row in-between the names Sam and Michelle and it worked fine for everything except for the Color data on Sheet2. Michelle should be brown but the data didn't shift downward.

    Does anyone know a good way to accomplish this task?
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to insert row and keep all the data together

    There is not enough information to provide a definitive answer.

    There >>HAS<< to be some way of linking the name to the comment. Otherwise, it won't work. One way would be to set up a separate table of names/comments and use VLOOKUP (or something more dynamic) to provide the final result.

    There is no need to use INDIRECT, BtW. Avoid it. It just causes performance issues.

    So how does the attached file fit the need? It can meb done more easily in modern Excel products... but your profile shows the rather elderly Excel 2007.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Re: How to insert row and keep all the data together

    Thank you Glenn. I have been tinkering with it and decided to use VLOOKUP as you suggested to get where I needed to go. Thank you for your advice.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to insert row and keep all the data together

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] Insert Columns, Filter Specific column, Add Data, Insert Formula
    By E5254730 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-31-2023, 11:37 AM
  2. [SOLVED] How to insert insert multiple rows between each existing row and past in data
    By Lojinxx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2022, 07:31 AM
  3. Insert blank rows when data changes and calculate how many rows to insert
    By Smartmart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2020, 01:04 PM
  4. [SOLVED] Insert Xnumber (X=A1) of rows between data in a table& copy data from a range to new cells
    By blue_clouds_mountain in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-09-2019, 12:47 PM
  5. [SOLVED] Loop through entire sheet, Insert row, copy row data, paste row data, delete row
    By Hyperdude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2012, 01:46 AM
  6. Copy paste data, insert rows, insert data and change . to -
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2010, 01:44 AM
  7. Replies: 5
    Last Post: 09-15-2008, 07:04 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