Comparing 2 spreadsheets
Closed
bumblebee
-
May 28, 2010 at 07:23 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 31, 2010 at 12:29 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 31, 2010 at 12:29 PM
Hello,
I need to compare 2 spreadsheets that are coming form different sources but have mainly the same content. I can easily edit them so that the columns are in the same positions in both but I need to know how to compare each column of one spresheet to the corresponding one on the other.
Basically, to compare things such as stock codes, barcodes and price to make sure they are all the same on both sheets. One list will contain items that the other does not.
I need it to return items that do not match
Appreciate any help on tis
I need to compare 2 spreadsheets that are coming form different sources but have mainly the same content. I can easily edit them so that the columns are in the same positions in both but I need to know how to compare each column of one spresheet to the corresponding one on the other.
Basically, to compare things such as stock codes, barcodes and price to make sure they are all the same on both sheets. One list will contain items that the other does not.
I need it to return items that do not match
Appreciate any help on tis
Related:
- Comparing 2 spreadsheets
- Tentacle locker 2 - Download - Adult games
- Feeding frenzy 2 download - Download - Arcade
- Fnia 2 - Download - Adult games
- My cute roommate 2 - Download - Adult games
- Resident evil 2 remake free download - Download - Horror
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 28, 2010 at 07:39 AM
May 28, 2010 at 07:39 AM
How many columns are we talking about here
Also on a single row, if you add up all the cell how many maximum characters would be there
Also on a single row, if you add up all the cell how many maximum characters would be there
May 28, 2010 at 07:46 AM
Maybe create a spreadsheet and import the two files, have the macros in place. I would like to create a quick method of comparing this data as it will have to be done twice a week
May 28, 2010 at 08:07 AM
In a new column Add a new column using formula that combine all columns into one and then use a match function
Let say you have two sheets, Sheet1 and Sheet2 and you want to compare columns A-H
Then on column J add this formula
=A1 & "|" & B1 & "|" & C1 & "|" & D1 & "|" & E1 & "|" & F1 & "|" & G1 & "|" & H1
and drag it down to last row
Do same on the other sheet
Now in column K on Sheet1 add this formula
=IF(ISERROR(MATCH(J1, Sheet2!J1:J65536,0)), 0, MATCH(J1, Sheet2!J1:J65536,0))
Now filter on 0. These are the values that do not match
May 28, 2010 at 08:57 AM
That is a very useful formula that you gave me though, must write it down.
May 28, 2010 at 09:42 AM
Lets say that dash or space you can substitute function like
=SUBSTITUTE(TRIM(A1), "-", "") & "|" & SUBSTITUTE(TRIM(B1), "-", "") & "|" & SUBSTITUTE(TRIM(C1), "-", "") & "|" & SUBSTITUTE(TRIM(D1), "-", "") & "|" & SUBSTITUTE(TRIM(E1), "-", "") & "|" & SUBSTITUTE(TRIM(F1), "-", "") & "|" & SUBSTITUTE(TRIM(G1), "-", "") & "|" & SUBSTITUTE(TRIM(H1), "-", "")
It first remove any leading or trailing space and then remove any "-"
This is just an example. Of course it was to just get the ball rolling
May 28, 2010 at 11:00 AM
It looks like I may need to do a search for each individual value on one sheet to compare it to the column with the same heading in the other sheet and if it does not match, get it to return the value, and then continue along the row.
Forgive my ignorance, I have never had to do this kind of thing before! I'm beginning to think that comparing the data manually might be easier and faster!