{"id":11827,"date":"2025-01-15T05:21:05","date_gmt":"2025-01-15T05:21:05","guid":{"rendered":"https:\/\/blog.ezworkapp.com\/index.php\/2025\/01\/15\/cach-tim-nhung-gia-tri-xuat-hien-mot-lan-hoac-nhieu-lan-trong-hai-cot-hay-trong-hai-trang-tinh\/"},"modified":"2025-01-15T05:21:05","modified_gmt":"2025-01-15T05:21:05","slug":"cach-tim-nhung-gia-tri-xuat-hien-mot-lan-hoac-nhieu-lan-trong-hai-cot-hay-trong-hai-trang-tinh","status":"publish","type":"post","link":"https:\/\/blog.ezworkapp.com\/index.php\/2025\/01\/15\/cach-tim-nhung-gia-tri-xuat-hien-mot-lan-hoac-nhieu-lan-trong-hai-cot-hay-trong-hai-trang-tinh\/","title":{"rendered":"C\u00e1ch t\u00ecm nh\u1eefng gi\u00e1 tr\u1ecb xu\u1ea5t hi\u1ec7n m\u1ed9t l\u1ea7n ho\u1eb7c nhi\u1ec1u l\u1ea7n trong hai c\u1ed9t hay trong hai trang t\u00ednh"},"content":{"rendered":"<div class=\"uk-panel uk-margin\" id=\"template-nJy84WMn#1\">\n<p style=\"text-align: justify\">C\u00f3 th\u1ec3 vi\u1ec7c so s\u00e1nh hai v\u00f9ng d\u1eef li\u1ec7u trong c\u00f9ng trang t\u00ednh v\u00e0 t\u00ecm ra nh\u1eefng gi\u00e1 tr\u1ecb tr\u00f9ng l\u1eb7p ho\u1eb7c xu\u1ea5t hi\u1ec7n m\u1ed9t l\u1ea7n s\u1ebd d\u1ec5 d\u00e0ng v\u1edbi m\u1ed9t s\u1ed1 b\u1ea1n, nh\u01b0ng n\u1ebfu hai v\u00f9ng d\u1eef li\u1ec7u trong hai trang t\u00ednh kh\u00e1c nhau, l\u00e0m c\u00e1ch n\u00e0o b\u1ea1n c\u00f3 th\u1ec3 nhanh ch\u00f3ng t\u00ecm ra nh\u1eefng gi\u00e1 tr\u1ecb \u0111\u00f3? Trong b\u00e0i vi\u1ebft n\u00e0y, H\u1ecdc Excel Online s\u1ebd gi\u1edbi thi\u1ec7u cho b\u1ea1n m\u1ed9t v\u00e0i c\u00e1ch t\u1eaft \u0111\u1ec3 gi\u1ea3i quy\u1ebft c\u00f4ng vi\u1ec7c n\u00e0y.<\/p>\n<p style=\"text-align: justify\"><strong>So s\u00e1nh hai c\u1ed9t c\u00f3 c\u00f9ng ti\u00eau \u0111\u1ec1trong hai trang t\u00ednh b\u1eb1ng c\u00f4ng th\u1ee9c Excel<\/strong><\/p>\n<p style=\"text-align: justify\">B\u1eb1ng c\u00f4ng th\u1ee9c Excel, b\u1ea1n c\u00f3 th\u1ec3 so s\u00e1nh hai c\u1ed9t c\u00f3 c\u00f9ng ti\u00eau \u0111\u1ec1 trong nhi\u1ec1u trang t\u00ednh v\u00e0 t\u00ecm c\u00e1c gi\u00e1 tr\u1ecb tr\u00f9ng l\u1eb7p ho\u1eb7c c\u00e1c gi\u00e1 tr\u1ecb xu\u1ea5t hi\u1ec7n m\u1ed9t l\u1ea7n.<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7215\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/untitled-35.png\" width=\"514\" height=\"336\" title=\"untitled-35\"><\/p>\n<p style=\"text-align: justify\">1. G\u00f5 c\u00f4ng th\u1ee9c <em><strong> =COUNTIF(Sheet1!$A:$A, A1)<\/strong><\/em>\u00a0v\u00e0o \u00f4 tr\u1ed1ng li\u1ec1n k\u1ec1 v\u1edbi v\u00f9ng d\u1eef li\u1ec7u trong Sheet3.<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/doc-finde-duplicate-values-in-sheets-3.png\" title=\"doc-finde-duplicate-values-in-sheets-3\"><\/p>\n<p style=\"text-align: justify\">2. Nh\u1ea5n Enter, sau \u0111\u00f3 sao ch\u00e9p c\u00f4ng th\u1ee9c v\u00e0o c\u00e1c v\u00f9ng d\u1eef li\u1ec7u b\u1ea1n mu\u1ed1n so s\u00e1nh v\u1edbi d\u1eef li\u1ec7u trong Sheet1. (S\u1ed1 0 ngh\u0129a l\u00e0 gi\u00e1 tr\u1ecb tr\u00f9ng trong hai v\u00f9ng d\u1eef li\u1ec7u, s\u1ed1 1 l\u00e0 gi\u00e1 tr\u1ecb duy nh\u1ea5t trong Sheet3, nh\u01b0ng kh\u00f4ng c\u00f3 trong Sheet1)<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/doc-finde-duplicate-values-in-sheets-4.png\" title=\"doc-finde-duplicate-values-in-sheets-4\"><\/p>\n<div class=\"code-block code-block-2\" style=\"margin: 8px 0;clear: both\">\n<div class=\"ad-inserterpro\">\n<a href=\"https:\/\/hocexcel.online\/course\/preview\/vba101-tu-dong-hoa-excel-voi-lap-trinh-vba-cho-nguoi-moi-bat-dau\"><br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/vba101_92019-nho-62.gif\" title=\"vba101_92019-nho-62\"><br \/>\n<\/a>\n<\/div>\n<\/div>\n<div class=\"code-block code-block-1\" style=\"margin: 8px 0;clear: both\">\n<div class=\"ad-inserterpro\">\n<a href=\"https:\/\/hocexcel.online\/course\/preview\/ex101-excel-tu-co-ban-den-chuyen-gia-danh-cho-nguoi-di-lam\"><br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/ex101_92019-nho-328.gif\" title=\"ex101_92019-nho-328\"><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p style=\"text-align: justify\"><strong>M\u1eb9o.<\/strong><\/p>\n<p style=\"text-align: justify\">1. C\u00f4ng th\u1ee9c n\u00e0y ch\u1ec9 c\u00f3 th\u1ec3 so s\u00e1nh hai c\u1ed9t c\u00f3 c\u00f9ng ti\u00eau \u0111\u1ec1 trong hai trang t\u00ednh.<\/p>\n<p style=\"text-align: justify\">2. N\u1ebfu b\u1ea1n mu\u1ed1n t\u00ecm gi\u00e1 tr\u1ecb ch\u1ec9 xu\u1ea5t hi\u1ec7n m\u1ed9t l\u1ea7n trong Sheet1, nh\u01b0ng kh\u00f4ng c\u00f3 trong Sheet3, b\u1ea1n c\u1ea7n g\u00f5 c\u00f4ng th\u1ee9c <em><strong>=COUNTIF(Sheet3!$A:$A, A1)<\/strong><\/em>\u00a0v\u00e0o Sheet1.<\/p>\n<p style=\"text-align: justify\"><strong>So s\u00e1nh hai v\u00f9ng d\u1eef li\u1ec7u trong hai trang t\u00ednh b\u1eb1ng VBA<\/strong><\/p>\n<p style=\"text-align: justify\">1. Nh\u1ea5n gi\u1eef ph\u00edm\u00a0<em><strong>Alt + F11<\/strong><\/em>, c\u1eeda s\u1ed5 <em><strong>Microsoft Visual Basic for Applications\u00a0<\/strong><\/em>m\u1edf ra.<\/p>\n<p style=\"text-align: justify\">2. Nh\u1ea5p <em><strong>Insert &gt; Module<\/strong><\/em>, d\u00e1n \u0111o\u1ea1n m\u00e3 sau v\u00e0o <em><strong>Module Window<\/strong><\/em>.<\/p>\n<\/p>\n<div class=\"oembed-gist\">View the code on <a href=\"https:\/\/gist.github.com\/ndthanh\/d37b2214fde92d219b9cf34ed676ff0d\">Gist<\/a>.<\/div>\n<div class=\"line number1 index0 alt2\"><\/div>\n<div class=\"line number16 index15 alt1\"><\/div>\n<div class=\"line number16 index15 alt1\"><\/div>\n<div class=\"line number16 index15 alt1\"><\/div>\n<div class=\"line number16 index15 alt1\">3. Nh\u1ea5n\u00a0<em><strong>F5\u00a0<\/strong><\/em>\u0111\u1ec3 ch\u1ea1y m\u00e3, m\u1ed9t h\u1ed9p tho\u1ea1i hi\u1ec7n ra nh\u1eafc nh\u1edf b\u1ea1n ch\u1ecdn v\u00f9ng d\u1eef li\u1ec7u b\u1ea1n mu\u1ed1n so s\u00e1nh v\u1edbi.<\/div>\n<div class=\"line number16 index15 alt1\" style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/doc-finde-duplicate-values-in-sheets-5.png\" title=\"doc-finde-duplicate-values-in-sheets-5\"><\/div>\n<div class=\"line number16 index15 alt1\" style=\"text-align: justify\">4. Nh\u1ea5n OK. M\u1ed9t h\u1ed9p tho\u1ea1i l\u1ea1i xu\u1ea5t hi\u1ec7n \u0111\u1ec3 ch\u1ecdn v\u00f9ng d\u1eef li\u1ec7u th\u1ee9 hai.<\/div>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/doc-finde-duplicate-values-in-sheets-6.png\" title=\"doc-finde-duplicate-values-in-sheets-6\"><\/p>\n<p style=\"text-align: justify\">5. Nh\u1ea5n OK. C\u00e1c gi\u00e1 tr\u1ecb tr\u00f9ng l\u1eb7p trong c\u1ea3 hai V\u00f9ng A v\u00e0 V\u00f9ng B s\u1ebd \u0111\u01b0\u1ee3c t\u00f4 m\u00e0u \u0111\u1ecf trong V\u00f9ng A.<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/doc-finde-duplicate-values-in-sheets-7.png\" title=\"doc-finde-duplicate-values-in-sheets-7\"><\/p>\n<p style=\"text-align: justify\"><strong>M\u1eb9o.\u00a0<\/strong>B\u1eb1ng VBA, b\u1ea1n c\u00f3 th\u1ec3 so s\u00e1nh hai v\u00f9ng d\u1eef li\u1ec7u trong c\u00f9ng trang t\u00ednh ho\u1eb7c nhi\u1ec1u trang t\u00ednh kh\u00e1c nhau.<\/p>\n<p> Tham gia kho\u00e1 h\u1ecdc VBA c\u1ef1c \u0111\u1ec9nh c\u1ee7a H\u1ecdc Excel Online<\/p><\/div>\n<div class=\"uk-panel uk-margin uk-width-xlarge\">\n<p>Click \u0111\u0103ng k\u00fd h\u1ecdc t\u1ea1i:<\/p>\n<p><a href=\"http:\/\/blog.ezworkapp.com\/khoa-hoc\" target=\"_blank\" rel=\"noopener\">T\u1ea5t c\u1ea3 kho\u00e1 h\u1ecdc\u00a0<span>\ud83d\udcd6<\/span><\/a><\/p>\n<p><a href=\"http:\/\/blog.ezworkapp.com\/huong-dan-kich-hoat-khoa-hoc-tai-hoc-excel-online.html\" target=\"_blank\" rel=\"noopener\">H\u01b0\u1edbng d\u1eabn k\u00edch ho\u1ea1t<\/a><\/p>\n<p>HKD H\u1ecdc Excel Online<br \/>S\u1ed1 \u0110K: 17A80048102<\/p>\n<\/div>\n<div class=\"uk-panel uk-text-small uk-margin uk-margin-remove-bottom uk-text-center\">\n<p>\u00a9  document.currentScript.insertAdjacentHTML(&#8216;afterend&#8217;, &#8221; + new Intl.DateTimeFormat(document.documentElement.lang, {year: &#8216;numeric&#8217;}).format() + &#8221;);  H\u1ecdc Excel Online. All rights reserved.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"ad-inserterpro\">\n<a href=\"https:\/\/hocexcel.online\/course\/preview\/vba101-tu-dong-hoa-excel-voi-lap-trinh-vba-cho-nguoi-moi-bat-dau\"><br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.ezworkapp.com\/wp-content\/uploads\/2025\/01\/vba101_92019-nho-62.gif\"><br \/>\n<\/a>\n<\/div>\n","protected":false},"author":1,"featured_media":11828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-11827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-co-ban"],"_links":{"self":[{"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/posts\/11827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/comments?post=11827"}],"version-history":[{"count":0,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/posts\/11827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/media\/11828"}],"wp:attachment":[{"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/media?parent=11827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/categories?post=11827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ezworkapp.com\/index.php\/wp-json\/wp\/v2\/tags?post=11827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}