how to check umatched rows in excel - Page 1
Forum section: electronics / beginners

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: May 29, 2022, 04:37:31 am
content: 1. in excel i have around 500rows x 4 colums during one data looginf of one hour.2. in next test, i may get 510rowsx4 columns.3. Is there any way in excel to which new rows are added whose data doesnt match the rpevious stored rows?each rows has 4 columns..

author: Psi
author_rank: Super Contributor
timestamp: May 29, 2022, 05:20:28 am
content: Do you mean remove the data does not matchanyother rows orjustthe previous row?You can remove all duplicate rows using the "Data > Remove Duplicates" tool.But i'm guessing you only want to remove dups that are adjacent to each other?There's probably an easier way, but if you create a new column that is a concat of all your 4 columns (to make a unique column).Then you can create another column that looks at this column and only displays something if that column is different to it's previous value using the =IF statement.Then you should be able to use the remove duplicate tool on that new column and remove all the blank cells, which should be all the duplicates that are adjacent to each other

author: RoGeorge
author_rank: Super Contributor
timestamp: May 29, 2022, 06:31:32 am
content: Log all rows, then create apivotto show only the unique entries.A pivot can be used for other purposes, it works with multiple columns, but if you want to look for unique combinations of all the 4 columns value each row, maybe make a 5th column as a concatenation of all 4.

author: golden_labels
author_rank: Super Contributor
timestamp: May 29, 2022, 10:09:59 am
content: This answer is relevant mostly if you want to see the differences and not programmatically process them.You may skip it if it’s not the case.Are you actually collecting data inside Excel (with VBA?) or is that anXY problem? If the latter, next time please describe the actual situation — it will really aid helping you. I will assume youdo notuse Excel, as that would both be a weird choice of a tool, and it’s unlikely that one first writes entire data collection code and then fails to iterate over rows to find new entries. In case you do, you may export data as a CSV file.What you ask about iscreating a diffof two lists of rows. I believe they are ordered, as without that assumption the question can’t even be answered. If you have data in consistently formatted rows, for example a CSV file, there are many tools that can handle that. In *nix systems you have adiffandcomm. In Windows you may use commandfcor a GUI application likeMeldorNotepad++.

author: MikeK
author_rank: Super Contributor
timestamp: May 29, 2022, 07:12:31 pm
content: No mention of how this data is collected and written to Excel, and it's important. I would probably use Python. Easy to check the previous data and then write it out to any file format needed.

author: rob77
author_rank: Super Contributor
timestamp: May 29, 2022, 07:45:40 pm
content: create a unique key by converting the 4 columns into single stringthen use VLOOKUP() for each new entry's unique key to scan the previous data set to see if the key is present or not.