![]() |
#1
|
|||
|
|||
![]()
Hallo everyone, I get a table of data/text made of 6 columns (from A to F), generated by a system. I simply past this table (green) manually in a Excel sheet.
After pasting the table, I add manually a column G (yellow) at the right of the table, and add manually some comments for each row in this column. Every month I get an updated table from the system and paste over the current, but the G column is not more aligned with each row, and some comments for one specific line could be related to another one! Any suggestions how to make sure each table row will match correct comments on G column? Hope to be clear! See attached .... Thanks ![]() |
#2
|
|||
|
|||
![]()
In case some column in range A:F has unique value for for table row, define the datarange of this column as dynamic Named Range (e.g. nTableRowID). Otherwise add a column with formula, which creates such unique identifier for every table row, and define the datarange of this calculated column as dynamic Named Range (e.g. nTableRowID).
Now in another sheet, create a 2-column table, where for 1st column you define Data Validation List, which allows you to select a row inentifier value from main table (using defined dynamic Named Range as source (e.g. '= nTableRowID'). Select the row identifier value in 1st column, and enter comment for this main table row into 2nd one. In main table add a column to display comments, and fill it with VLOOKUP formula to get matching comments from 2nd table for every row. Now when you have next update of your main table, your old comments are displayed in comments column of main table. In case there are new data added, the comment field will return error or be empty in case you used IFERROR(...,"") in formula. You can add missing comments into 2nd (comments) table. You also can update existing comments in comments table whenever you need this. All changes will be displayed in main table. |
#3
|
|||
|
|||
![]()
Thank you! But I need to update the comments column of main table, how can I update my comments if there is a formula vlookup inside?
thanks for help! ![]() |
#4
|
|||
|
|||
![]() Quote:
Another possible solution will be having a separate table where you copy new data, and then run a VBA procedure, which compares both new and old data row-wise, and overewrites row-wise old data when there is some difference. What I adviced is much easier, I think! |
#5
|
|||
|
|||
![]()
Thanks, I will try by manually the main table!
Thank you for the help, regards |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
extract data from table based on data from another table | zevbn | Excel | 7 | 12-10-2023 12:46 AM |
Creating a dynamic table pulling data in through data.dot file from database. | njacobs | Word VBA | 4 | 12-14-2021 07:41 AM |
![]() |
canar | Word Tables | 3 | 09-08-2015 03:36 PM |
Retrieving data from cell Comments | RogerB | Excel Programming | 3 | 06-16-2014 03:04 AM |
Copy all comments & cell contents (i.e. data) to word? | IanM | Excel | 0 | 07-03-2010 11:14 PM |