Index / Match Fucntion Failure

%3CLINGO-SUB%20id%3D%22lingo-sub-2633831%22%20slang%3D%22en-US%22%3EIndex%20%2F%20Match%20Fucntion%20Failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2633831%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20creating%20a%20tool%20to%20compare%20data%20tables.%26nbsp%3B%20An%20original%20table%20resides%20on%20one%20tab%2C%20while%20an%20updated%20version%20of%20the%20table%20is%20copied%20onto%20another%20tab%20and%20compared%20with%20the%20original.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20table%20(the%20updated%20and%20the%20master)%20have%20about%2030%20columns.%26nbsp%3B%20To%20compare%20the%20entries%2C%20I%20am%20concatenating%20all%20columns%20(i.e.%2C%20A1-B1-C1-D1...)%20and%20comparing%20them%20via%20index%2Fmatch%20to%20the%20concatenated%20columns%20of%20the%20master%20list%20(i.e.%20%3DIF(concatenation_1%3Dconcatenation_2%2C%22same%22%2C%22different%22).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20some%20reason%2C%20however%20it%20doesn't%20work%20consistently.%26nbsp%3B%20It%20works%20for%20most%20entries%2C%20but%20for%20some%20it%20doesn't.%26nbsp%3B%20I've%20tried%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ECopy%2Fpasting%20the%20exact%20same%20data%20into%20both%20tables%20to%20validate%20the%20formulas%2C%20and%20there%20are%20still%20discrepancies.%20I%20swear%20the%20concatenation%20formulas%20AND%20the%20data%20are%20identical%20-%20I've%20checked%20MULTIPLE%20times.%3C%2FLI%3E%3CLI%3EFormat%20Painting%20entries%20in%20both%20tables%20so%20their%20formatting%20matches.%26nbsp%3B%20Doesn't%20seem%20to%20matter.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAny%20ideas%3F%20Could%20it%20be%20a%20problem%20with%20the%20base%20file%20from%20which%20I'm%20copying%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2633831%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2634418%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20%2F%20Match%20Fucntion%20Failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2634418%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F286940%22%20target%3D%22_blank%22%3E%40warrevar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWell%2C%20in%20general%20I'd%20trust%20Excel%20to%20be%20doing%20the%20comparisons%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20look%20for%20discrepancies%20in%20the%20two%20sets%20of%20data.%20Have%20you%20tried%20doing%20the%20comparisons%20with%20the%20data%20in%20each%20of%20the%2030%20columns%20without%20doing%20that%20concatenation%3F%20If%20there%20are%20discrepancies%2C%20they're%20going%20to%20originate%20in%20a%20column%2C%20so%20they'd%20be%20more%20readily%20tracked%20down%20by%20comparing%20at%20that%20level.%3C%2FP%3E%3CP%3EAnd%20time%20and%20again%20the%20discrepancies%20in%20a%20case%20like%20this%20can%20be%20trailing%20spaces--invisible%20to%20the%20human%20eye%20but%20glaringly%20obvious%20to%20the%20computer.%20Or%20special%20characters%2C%20or%20numbers%20that%20are%20text%20in%20one%20case%20but%20numbers%20in%20another.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%2C%20my%20main%20point%20is%20to%3CU%3E%3CEM%3E%20assume%20that%20there%20is%20a%20discrepancy%2C%20not%20to%20assume%20that%20Excel%20is%20failing%3C%2FEM%3E%3C%2FU%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20for%20you%20to%20attach%20a%20copy%20of%20the%20spreadsheet%2C%20or%20a%20representative%20portion%20of%20it%3F%20Without%20that%2C%20all%20we%20can%20do%20is%20offer%20generalizations%2C%20such%20as%20I've%20done%20above%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am creating a tool to compare data tables.  An original table resides on one tab, while an updated version of the table is copied onto another tab and compared with the original.

 

Each table (the updated and the master) have about 30 columns.  To compare the entries, I am concatenating all columns (i.e., A1-B1-C1-D1...) and comparing them via index/match to the concatenated columns of the master list (i.e. =IF(concatenation_1=concatenation_2,"same","different").

 

For some reason, however it doesn't work consistently.  It works for most entries, but for some it doesn't.  I've tried:

 

  1. Copy/pasting the exact same data into both tables to validate the formulas, and there are still discrepancies. I swear the concatenation formulas AND the data are identical - I've checked MULTIPLE times.
  2. Format Painting entries in both tables so their formatting matches.  Doesn't seem to matter.

Any ideas? Could it be a problem with the base file from which I'm copying?

 

Thanks,

 

1 Reply

@warrevar 

 

Well, in general I'd trust Excel to be doing the comparisons correctly.

 

I'd look for discrepancies in the two sets of data. Have you tried doing the comparisons with the data in each of the 30 columns without doing that concatenation? If there are discrepancies, they're going to originate in a column, so they'd be more readily tracked down by comparing at that level.

And time and again the discrepancies in a case like this can be trailing spaces--invisible to the human eye but glaringly obvious to the computer. Or special characters, or numbers that are text in one case but numbers in another.

 

Anyway, my main point is to assume that there is a discrepancy, not to assume that Excel is failing.

 

Is it possible for you to attach a copy of the spreadsheet, or a representative portion of it? Without that, all we can do is offer generalizations, such as I've done above