Compare 2 sheets or ranges (multiple columns) and highlight/count mismatches

Solvap

New Member
Joined
Sep 17, 2015
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I hope that you have some free time to help me because this post will be quite long. First of all, I hope that I'll be clear enough to explain you my problem.
FYI, I'm working on Excel 2010 and Windows 7. I'm from Belgium so, in my workbook, parameters are separated with a semicolon ";" instead of a comma ","

I would like to build a formula to get the number of rows containing mismatches errors comparing all their cells with a corresponding row on another worksheet using their leftmost cell as common key (= UniqueID) ?

Suppose a worksheets containing contacts info with 10 columns (uniqueID, firstname, lastname, address...), each row corresponds to one unique contact identified by leftmost cell of each row; UniqueID. This worksheet has to be considered as a reference or list of valid and known contacts, lets name it;"Known_Contacts".

You then get another worksheet with the same column structure and type (10 column; UniqueID, firstname, lastname, address....). Lets name it;"Imported_Contacts".
In this "Imported_Contacts" I would like to highlight new and/or modified contacts (details mismatches):

So, I've managed to build that kind of compare/mismatch check-up using conditional format. For this, I use 3 dynamic named ranges for both imported and known contacts: Header, UniqueID and whole data (3 named ranges * 2 worksheets = 6 named ranges).

Cells color in the worksheet "Imported_Contacts" change dynamically based on the UniqueID.
a) Imported UniqueIDs not found in known ones are considered as a new contacts. All details (same row) are colored in yellow and ready to be copy-pasted under the last known contact in the Known_Contacts worksheet to be available for next update.
b) Imported UniqueIDs that are known but have mismatches are highlighted in red and all mismatches (on the same row) in orange for further investigation. They will overwrite values in the Known_Contacts worksheet if changes are confirmed.
c) Imported UniqueIDs that are known and don't have any mismatches remain with white background as no further action is required.

Now what I didn't managed to do so far (yes, here start my request for help ;))
1) In the summary table below, I would like to have, in one cell, the count of changed contacts (which should be highlighted in red) regardless of the number of mismatches they have (on their row).
2) In the summary table below, I would like to have, in one cell, the total count of mismatches for all changed contacts (which are highlighted in orange). In other words, if one contact has a new phone number (=1 mismatch) and another contact has a new address and new town value (= 2 mismatches), then I should see in that summary cell the value of: 3


Here are the formulas I use in my conditional format. They could be useful and surely improved.

RED background which applies to: =$A$2:$A$20
UniqueID cell is highlighted in red (not the rest of the row) in the "Imported_Contacts" worksheet when that same UniqueID exists in Known_Contacts worksheet AND at least one mismatch has been detected.
=NOT(AND(Imported_Contacts!A2:J2=INDIRECT("Known_Contacts!A"&MATCH(Imported_Contacts!$A2;Known_Contacts!$A$2:$A$100;0)+1&":J"&MATCH(Imported_Contacts!$A2;Known_Contacts!$A$2:$A$100;0)+1)))

ORANGE background which applies to: =$A$2:$J$20
Details cells are highlighted in orange in the "Imported_Contacts" worksheet whenever there is a mismatch of values for the corresponding UniqueID in the Known_Contacts worksheet.
=A2<>VLOOKUP($A2;Known_Data;COLUMNS($A1:A1);FALSE)

YELLOW background which applies to: =$A$2:$J$20
UniqueID from the Imported_Contacts worksheet not found in the Known_Contacts worksheet are colored (all details of same row) in yellow.
=NOT(ISNUMBER(MATCH($A2;Known_UniqueIDs;0)))


I also use dynamic named ranges, 3 on each Imported and Known worksheets:
_Header (=top row with titles)
_UniqueIDs (all cells with values from column A)
_Data (=full data range A2:Jx)



I've made a sample workbook for you to see, just ping me and I'll send it to you. Here some rows as example:
1° Imported_Contacts

[garbled image code removed]

2° Known_Contacts
UniqueID
FirstNameLastNameBirthdateSexCountryTownPostCodeAddressPhone
IH12VWMorganAguilar01-01-16MSint MaartenOutrijve3038763-6901 A, Impasse094 656 6238042
IP91TXIllianaHancock26-04-16MUnited States Minor Outlying IslandsRipacandida3242CP 932, 1007 Suspendisse Av.022 515 7861121
GE12HYBarryFlores10-12-14MMozambiqueGlovertown3579Appartement 889-9536 Ipsum Ave035 447 6735003
ZL32WVImaBurt29-03-16MMontserratLichfield37579460 Sed Avenue012 053 8279662
BC67UCOlegLandry25-02-15FGreeceFontanigorda24967CP 830, 2476 Magna Rd.016 866 3312095
RR69NZRanaSandoval04-02-15MSloveniaVal Rezzo34145CP 998, 1092 In, Rd.014 619 6328776
HI43ZTLaithMclaughlin15-11-14MIrelandCollege35687Appartement 677-246 Mauris Av.099 910 3926914
YI95FYMelindaHerring29-10-14MPanamaEksaarde571274806 Augue Impasse011 022 8788063
NA62AQCaesarPruitt10-06-16MCocos (Keeling) IslandsSint-Renelde Saintes71912CP 124, 8333 Viverra. Av.096 528 7849548
ST18EDJadeWright03-12-14MAmerican SamoaMunicipal District910361Appartement 310-2602 Dolor Rd.003 584 6316235
UZ52JPOrenWalter29-09-15FKuwaitGateshead13-709CP 323, 6841 Diam. Route013 667 3435189
RN15MNOlegGreene09-08-16MPolandWilliams LakeC2M 7S9447 Phasellus Chemin078 095 2592880
QY59UEAureliaStout10-04-15MEthiopiaNormanL1J 1C32675 Ultrices Chemin014 821 1574983
HV45MHZenaBooth06-09-15MGuadeloupeNorthumberlandL8A 0T44833 Libero. Rue004 388 2234326
BK93ILAuroraRoth19-05-16MBhutanPortlandQ2T 2AS228-3541 Pellentesque Route086 625 4165753

<tbody>
</tbody>



3° Summary table:
<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]-->
Import date
17-09-15
Nbr of imported contacts :
8
Nbr of known contacts :
16
Nbr of changed Contacts :
2
<-- Count of changed contacts (cells in red in the Imported_Contacts sheet)
Total nbr of changes :
3
<-- Total count of changes (cells in orange in the Imported_Contacts sheet)
New contacts imported :
1
<
Imported known contacts :
7
<-- Nbr of imported contacts - new contacts

<tbody>
</tbody>
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>FR-BE</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:EnableOpenTypeKerning/> <w:DontFlipMirrorIndents/> <w:OverrideTableStyleHps/> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-fareast-language:EN-US;} </style> <![endif]-->


Wow, that was indeed a long post !!! :eek:


Don't hesitate to contact me if you have any suggestion or questions.

Thank you in advance for your help
Pavlos
 
Last edited by a moderator:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi again,

PFFF post is too long I had to restart it as I had to re-login :-/ Furthermore, I've tried different ways to have my tables with colors but without success :-/
Now there is this whole bunch of crap between these
...
tags pfff, really sorry for that but I assure you I'm more that frustrated about this!

So, here the table where I coloured the fonts instead of the background as I didn't found any other way to show my tables with colours on this forum.
UniqueIDFirstNameLastNameBirthdateSexCountryTownPostCodeAddressPhone
ST18EDJadeWright03-12-14MAmerican SamoaMunicipal D.910361Appartement 310-2602 Dolor Rd.003 584 6316235
HV45MHZenaBooth06-09-15MGuadeloupeNorthumberlandL8A 0T44833 Libero. Rue004 388 2234326
YI95FYMelindaHerring29-10-14MPanamaEksaarde5712734 Applestreet
011 123 4332483
ZL32WVImaBurt29-03-16MMontserratLichfield37579460 Sed Avenue012 053 8279662
QY59UEAureliaStout10-04-15MEthiopiaNormanL1J 1C32675 Ultrices Chemin014 821 1574983
TC55PT
AudraAnthony02-04-15MAlgeriaOrosei46-797967-4353 Hendrerit. Route015 388 9262638
BC67UCOlegLandry25-02-15FGreeceFontanigorda24967CP 830, 2476 Magna Rd.016 866 3312095
IP91TXIllianaHancock26-04-16MUnited States Minor Outlying IslandsRipacandida3242CP 932, 1007 Suspendisse Av.022 515 7861121

<tbody>
</tbody>

I hope it is clear enough, there are:
2 UniqueIDs where at least 1 mismatch has been found
3 Mismatches found in total
1 Unknown UniqueID

No, it's 3:16 am, time for me to go to sleep !!!
Good night all !!!
Pavlos
 
Upvote 0
Hello All,

No idea ?

Let me present it differently, you have a reference table with all your customer details and an imported with some known customers which might need to be updated, some of their details have changed.
So, I need 2 results;
1) How many customers need an update (found with differences based on their ID).
In other words, count how many rows that have the same ID in the reference table but count at least 1 difference with that reference row.

2) Count of the total of differences (cross-customers).
For this result I was thinking of a table of true/false, based on the ID of each found row, any matching value would produce a true and a false if not matching.

Any help is welcomed.

Pavlos
 
Upvote 0
Hello again,

Isn't there someone who could help, plz ? Or at least help me get on the right path ?
I'm thinking of using a sub array of the range of "known_Contacts".
If I could use the unique identifier of the Imported_Contacts" to retrieve all rows having the corresponding unique identifier and then build up 2 arrays, one from each worksheet (known and imported contacts) and both having the same number of rows and columns.

Imported_Contacts_Array
ST18EDJaden
03-12-14M
3EEF32Stev
23-08-11
M
TC55PT
Audra02-04-15M
BC67UC
Maria
25-02-15F

<tbody>
</tbody>


Known_Contacts_Array
ST18EDJade03-12-14F
HV45MHZena06-09-15M
YI95FYMelinda29-10-14M
ZL32WVIma29-03-16M
QY59UEAurelia10-04-15M
TC55PTAudra02-04-15M
BC67UCMarina
25-02-15F

<colgroup><col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3766;width:77pt" width="103"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:2230;width:46pt" width="61"> </colgroup><tbody>
</tbody>


Then, there should be then a way to compare each corresponding row, some kind of true/false table, based on:
a) The 1st column (the unique ID) with question; Is known contact identical ?
b) All columns except the 1st one (contact details) with question; Are contact details identical ?

FALSE
FALSE
TRUE
FALSE
#N/A#N/A#N/A
#N/A
TRUETRUE
TRUETRUE
FALSEFALSE
TRUE
TRUE

<colgroup><col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3766;width:77pt" width="103"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:2230;width:46pt" width="61"> </colgroup><tbody>
</tbody>

And then count how many contacts might need an update (focusing on 1st column only) as well as the total number of differences (focusing on all column except the 1st one)

Result I would like to achieve is automatically:
Number of contacts where differences have been spotted: 2
Total number of differences spotted within contact details: 3

That's currently the strategy I'm thinking of.

Again, any help would be appreciated.
Pavlos
 
Upvote 0

Forum statistics

Threads
1,215,642
Messages
6,125,987
Members
449,276
Latest member
surendra75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top