Tìm những giá trị chung giữa hai danh sách

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* 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-qformat:yes; mso-style-parent:\"\"; mso-padding-alt:0mm 5.4pt 0mm 5.4pt; mso-para-margin:0mm; mso-para-margin-bottom:.0001pt; 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-fareast-font-family:\"Times New Roman\"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:\"Times New Roman\"; mso-bidi-theme-font:minor-bidi;}Giả sử trong Excel có hai danh sách , ví dụ như hình dưới  Bạn cần phải tìm trong danh sách ở cột A và cột B có những giá trị nào chung . Nếu nhìn bằng mắt thường ta có thể thấy giá trị AA , BB , CF , FD và MM là chung .Ở ô C2 bạn có thể dùng công thức mảng như sau =INDEX($A$2:$A$11, SMALL(IF(COUNTIF($B$2:$B$11, $A$2:$A$11), ROW($A$2:$A$11)-MIN(ROW($A$2:$A$11))+1, \"\"), ROW(A1))) rồi bấm tổ hợp phím CTRL+SHIFT+ENTER để thành {=INDEX($A$2:$A$11, SMALL(IF(COUNTIF($B$2:$B$11, $A$2:$A$11), ROW($A$2:$A$11)-MIN(ROW($A$2:$A$11))+1, \"\"), ROW(A1)))}  Sau đó bạn dùng  tính năng Hand-Fill để kéo cho tới hết . Lúc đó bạn sẽ thấy kết quả như sau