﻿{"id":23819,"date":"2026-11-17T10:14:58","date_gmt":"2026-11-17T03:14:58","guid":{"rendered":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/?post_type=ht_kb&#038;p=23819"},"modified":"2026-11-17T10:15:37","modified_gmt":"2026-11-17T03:15:37","slug":"bo-sung-ham-sumemployee-ho-tro-tinh-tong-du-lieu-luong-cua-nhan-vien-tren-amis-tien-luong","status":"publish","type":"ht_kb","link":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/kb\/bo-sung-ham-sumemployee-ho-tro-tinh-tong-du-lieu-luong-cua-nhan-vien-tren-amis-tien-luong\/","title":{"rendered":"B\u1ed5 sung h\u00e0m SUMEMPLOYEE h\u1ed7 tr\u1ee3 t\u00ednh t\u1ed5ng d\u1eef li\u1ec7u l\u01b0\u01a1ng c\u1ee7a nh\u00e2n vi\u00ean tr\u00ean AMIS Ti\u1ec1n l\u01b0\u01a1ng"},"content":{"rendered":"<div class=\"su-accordion su-u-trim\">\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><\/p>\n<h3><b>1. T\u1ed5ng quan<\/b><\/h3>\n<p><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p data-pm-slice=\"1 1 &#091;&#093;\"><strong>M\u1ee5c \u0111\u00edch:<\/strong> B\u00e0i vi\u1ebft h\u01b0\u1edbng d\u1eabn anh\/ch\u1ecb s\u1eed d\u1ee5ng h\u00e0m <strong>SUMEMPLOYEE<\/strong> tr\u00ean AMIS Ti\u1ec1n l\u01b0\u01a1ng \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng c\u1ed9ng t\u1ed5ng gi\u00e1 tr\u1ecb c\u1ee7a m\u1ed9t th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng t\u1eeb nhi\u1ec1u d\u00f2ng d\u1eef li\u1ec7u c\u1ee7a c\u00f9ng m\u1ed9t nh\u00e2n vi\u00ean (nh\u01b0 c\u00e1c d\u00f2ng t\u00e1ch theo \u0111\u1ecba \u0111i\u1ec3m l\u00e0m vi\u1ec7c, l\u1ecbch s\u1eed l\u01b0\u01a1ng,&#8230;). K\u1ebft qu\u1ea3 \u0111\u01b0\u1ee3c ghi nh\u1eadn tr\u00ean m\u1ed9t d\u00f2ng duy nh\u1ea5t, gi\u00fap thu\u1eadn ti\u1ec7n trong vi\u1ec7c t\u00ednh l\u01b0\u01a1ng, ph\u1ee5 c\u1ea5p v\u00e0 c\u00e1c kho\u1ea3n th\u01b0\u1edfng, ph\u1ea1t theo quy \u0111\u1ecbnh c\u1ee7a doanh nghi\u1ec7p.<\/p>\n<p><strong>N\u1ed9i dung h\u01b0\u1edbng d\u1eabn g\u1ed3m:<\/strong><\/p>\n<ul data-spread=\"false\">\n<li>Thi\u1ebft l\u1eadp c\u00f4ng th\u1ee9c t\u00ednh l\u01b0\u01a1ng b\u1eb1ng h\u00e0m SUMEMPLOYEE.<\/li>\n<\/ul>\n<p><strong>\u0110\u1ed1i t\u01b0\u1ee3ng \u00e1p d\u1ee5ng:<\/strong> HR, k\u1ebf to\u00e1n ti\u1ec1n l\u01b0\u01a1ng.<\/p>\n<\/div><\/div>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><\/p>\n<h3><b>2. H\u01b0\u01a1\u0301ng d\u00e2\u0303n th\u1ef1c hi\u1ec7n<\/b><\/h3>\n<p><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p data-pm-slice=\"1 1 &#091;&#093;\"><strong>V\u00ed d\u1ee5:<\/strong> Trong th\u00e1ng 10\/2026, nh\u00e2n vi\u00ean Nguy\u1ec5n V\u0103n An l\u00e0m vi\u1ec7c t\u1ea1i hai c\u00f4ng tr\u00ecnh:<\/p>\n<ul data-spread=\"false\">\n<li><strong>C\u00f4ng tr\u00ecnh A:<\/strong> 12 c\u00f4ng.<\/li>\n<li><strong>C\u00f4ng tr\u00ecnh B:<\/strong> 15 c\u00f4ng.<\/li>\n<\/ul>\n<p>Tr\u00ean b\u1ea3ng l\u01b0\u01a1ng, s\u1ed1 c\u00f4ng th\u1ef1c t\u1ebf c\u1ee7a nh\u00e2n vi\u00ean \u0111\u01b0\u1ee3c t\u00e1ch th\u00e0nh hai d\u00f2ng t\u01b0\u01a1ng \u1ee9ng v\u1edbi t\u1eebng c\u00f4ng tr\u00ecnh. Trong khi \u0111\u00f3, doanh nghi\u1ec7p c\u1ea7n t\u00ednh <strong>t\u1ed5ng c\u00f4ng th\u1ef1c t\u1ebf t\u1ea1i c\u1ea3 hai c\u00f4ng tr\u00ecnh<\/strong> \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh s\u1ed1 c\u00f4ng v\u01b0\u1ee3t chu\u1ea9n trong th\u00e1ng.<\/p>\n<p>V\u1edbi c\u00f4ng chu\u1ea9n l\u00e0 <strong>26 c\u00f4ng<\/strong>, t\u1ed5ng c\u00f4ng th\u1ef1c t\u1ebf c\u1ee7a nh\u00e2n vi\u00ean l\u00e0 <strong>27 c\u00f4ng (12 + 15)<\/strong>, t\u01b0\u01a1ng \u1ee9ng <strong>1 c\u00f4ng v\u01b0\u1ee3t chu\u1ea9n<\/strong>.<\/p>\n<p>\u0110\u1ec3 t\u1ef1 \u0111\u1ed9ng c\u1ed9ng t\u1ed5ng c\u00f4ng th\u1ef1c t\u1ebf t\u1eeb nhi\u1ec1u d\u00f2ng d\u1eef li\u1ec7u c\u1ee7a c\u00f9ng m\u1ed9t nh\u00e2n vi\u00ean m\u00e0 kh\u00f4ng ph\u1ea3i t\u00ednh th\u1ee7 c\u00f4ng, anh\/ch\u1ecb s\u1eed d\u1ee5ng h\u00e0m <strong>SUMEMPLOYEE<\/strong> theo c\u00e1c b\u01b0\u1edbc d\u01b0\u1edbi \u0111\u00e2y:<\/p>\n<p><strong>B\u01b0\u1edbc 1:<\/strong> Tr\u00ean <strong>AMIS Ti\u1ec1n l\u01b0\u01a1ng<\/strong>, v\u00e0o ph\u00e2n h\u1ec7 <strong>Th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng<\/strong>, sau \u0111\u00f3 anh\/ch\u1ecb c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-23827 aligncenter\" src=\"\/amis-tien-luong\/wp-content\/uploads\/2026\/11\/2026-11-17_10-07-39.png\" alt=\"\" width=\"1915\" height=\"521\" \/><\/p>\n<ul data-spread=\"false\">\n<li><strong>Th\u00eam m\u1edbi th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng:<\/strong> Nh\u1ea5n <strong>Th\u00eam <\/strong>\u0111\u1ec3 khai b\u00e1o th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng m\u1edbi c\u1ea7n t\u00ednh to\u00e1n.<\/li>\n<li><strong>S\u1eeda th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng:<\/strong> Ch\u1ecdn th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng \u0111\u00e3 c\u00f3 trong danh s\u00e1ch \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00f4ng th\u1ee9c t\u00ednh.<\/li>\n<\/ul>\n<p><strong>B\u01b0\u1edbc 2:<\/strong> T\u1ea1i giao di\u1ec7n khai b\u00e1o ho\u1eb7c ch\u1ec9nh s\u1eeda th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng, t\u00ecm \u0111\u1ebfn m\u1ee5c <strong>Gi\u00e1 tr\u1ecb<\/strong>, t\u00edch ch\u1ecdn <strong>Thi\u1ebft l\u1eadp t\u00ednh theo c\u00f4ng th\u1ee9c<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-23831 size-full aligncenter\" src=\"\/amis-tien-luong\/wp-content\/uploads\/2026\/11\/2026-11-17_10-09-37.png\" alt=\"\" width=\"1842\" height=\"711\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 3: <\/strong>T\u1ea1i giao di\u1ec7n thi\u1ebft l\u1eadp c\u00f4ng th\u1ee9c,\u00a0 nh\u1eadp d\u1ea5u &#8220;=&#8221; , sau \u0111\u00f3 t\u00ecm ho\u1eb7c nh\u1eadp h\u00e0m <strong>SUMEMPLOYEE(X)<\/strong> trong danh s\u00e1ch h\u00e0m t\u00ednh.<\/p>\n<p>Trong \u0111\u00f3:<\/p>\n<ul>\n<li><strong>SUMEMPLOYEE:<\/strong> H\u00e0m c\u1ed9ng t\u1ed5ng gi\u00e1 tr\u1ecb t\u1eeb c\u00e1c d\u00f2ng d\u1eef li\u1ec7u c\u1ee7a c\u00f9ng m\u1ed9t nh\u00e2n vi\u00ean.<\/li>\n<li><strong>X:<\/strong> Th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng c\u1ea7n c\u1ed9ng t\u1ed5ng, ch\u1eb3ng h\u1ea1n C\u00f4ng th\u1ef1c t\u1ebf, s\u1ed1 l\u1ea7n \u0111i mu\u1ed9n ho\u1eb7c s\u1ed1 l\u1ea7n v\u1ec1 s\u1edbm,&#8230;<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-23833 aligncenter\" src=\"\/amis-tien-luong\/wp-content\/uploads\/2026\/11\/2026-11-17_10-11-44.png\" alt=\"\" width=\"1840\" height=\"709\" \/><\/p>\n<p data-pm-slice=\"1 1 &#091;&#093;\">Theo v\u00ed d\u1ee5 tr\u00ean, \u0111\u1ec3 t\u00ednh t\u1ed5ng s\u1ed1 c\u00f4ng th\u1ef1c t\u1ebf c\u1ee7a nh\u00e2n vi\u00ean Nguy\u1ec5n V\u0103n An, anh\/ch\u1ecb s\u1eed d\u1ee5ng c\u00f4ng th\u1ee9c: <em><strong>SUMEMPLOYEE(CONGTHUCTE)<\/strong><\/em><\/p>\n<p>Khi \u0111\u00f3, ph\u1ea7n m\u1ec1m t\u1ef1 \u0111\u1ed9ng c\u1ed9ng t\u1ed5ng c\u00f4ng th\u1ef1c t\u1ebf t\u1ea1i hai c\u00f4ng tr\u00ecnh, k\u1ebft qu\u1ea3 l\u00e0 <strong>27 c\u00f4ng<\/strong>.<\/p>\n<p>Anh\/ch\u1ecb c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng k\u1ebft qu\u1ea3 n\u00e0y \u0111\u1ec3 x\u00e2y d\u1ef1ng c\u00f4ng th\u1ee9c t\u00ednh c\u00f4ng v\u01b0\u1ee3t chu\u1ea9n:<\/p>\n<p><em><strong>SUMEMPLOYEE(CONGTHUCTE) &#8211; CONGCHUAN =27 &#8211; 1= 26<\/strong><\/em><\/p>\n<p>V\u1edbi c\u00f4ng chu\u1ea9n 26 c\u00f4ng, k\u1ebft qu\u1ea3 t\u00ednh \u0111\u01b0\u1ee3c l\u00e0 <strong>1 c\u00f4ng v\u01b0\u1ee3t chu\u1ea9n<\/strong>.<\/p>\n<p><em>L\u01b0u \u00fd: <\/em>CONGTHUCTE v\u00e0 CONGCHUAN l\u00e0 m\u00e3 th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng minh h\u1ecda. Anh\/ch\u1ecb c\u1ea7n s\u1eed d\u1ee5ng \u0111\u00fang m\u00e3 th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng \u0111\u01b0\u1ee3c khai b\u00e1o tr\u00ean ph\u1ea7n m\u1ec1m.<\/p>\n<p><strong>B\u01b0\u1edbc 4:<\/strong> Ho\u00e0n t\u1ea5t thi\u1ebft l\u1eadp v\u00e0 nh\u1ea5n <strong>L\u01b0u<\/strong> \u0111\u1ec3 l\u01b0u th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng.<\/p>\n<\/div><\/div>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><\/p>\n<h3><strong>3. L\u01b0u \u00fd<\/strong><\/h3>\n<p><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul data-spread=\"false\">\n<li>H\u00e0m <strong>SUMEMPLOYEE(X)<\/strong> d\u00f9ng \u0111\u1ec3 c\u1ed9ng t\u1ed5ng gi\u00e1 tr\u1ecb c\u1ee7a th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng X t\u1eeb nhi\u1ec1u d\u00f2ng d\u1eef li\u1ec7u thu\u1ed9c c\u00f9ng m\u1ed9t nh\u00e2n vi\u00ean, kh\u00f4ng c\u1ed9ng d\u1eef li\u1ec7u gi\u1eefa c\u00e1c nh\u00e2n vi\u00ean kh\u00e1c nhau.<\/li>\n<li>Tr\u01b0\u1eddng h\u1ee3p b\u1ea3ng l\u01b0\u01a1ng \u0111\u01b0\u1ee3c t\u00e1ch theo \u0111\u1ecba \u0111i\u1ec3m l\u00e0m vi\u1ec7c, k\u1ebft qu\u1ea3 t\u00ednh to\u00e1n b\u1eb1ng c\u00f4ng th\u1ee9c s\u1eed d\u1ee5ng h\u00e0m SUMEMPLOYEE \u0111\u01b0\u1ee3c ghi nh\u1eadn t\u1ea1i d\u00f2ng \u0111\u1ecba \u0111i\u1ec3m l\u00e0m vi\u1ec7c \u0111\u1ea7u ti\u00ean c\u1ee7a nh\u00e2n vi\u00ean.<\/li>\n<li>Ngo\u00e0i ph\u00e2n h\u1ec7 <strong>Th\u00e0nh ph\u1ea7n l\u01b0\u01a1ng<\/strong>, anh\/ch\u1ecb c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng h\u00e0m <strong>SUMEMPLOYEE<\/strong> khi thi\u1ebft l\u1eadp c\u00f4ng th\u1ee9c t\u1ea1i <strong>M\u1eabu b\u1ea3ng l\u01b0\u01a1ng<\/strong>, <strong>Ch\u00ednh s\u00e1ch ph\u1ee5 c\u1ea5p, kh\u1ea5u tr\u1eeb<\/strong> v\u00e0 <strong>L\u1ecbch s\u1eed l\u01b0\u01a1ng<\/strong>.<\/li>\n<\/ul>\n<\/div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":141,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_links_to":"","_links_to_target":"","footnotes":""},"ht-kb-category":[319],"ht-kb-tag":[],"class_list":["post-23819","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-r76-phat-hanh-ngay-19-11-2026"],"_links":{"self":[{"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb\/23819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/comments?post=23819"}],"version-history":[{"count":3,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb\/23819\/revisions"}],"predecessor-version":[{"id":23837,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb\/23819\/revisions\/23837"}],"wp:attachment":[{"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/media?parent=23819"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb-category?post=23819"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/helpamis.misa.vn\/amis-tien-luong\/wp-json\/wp\/v2\/ht-kb-tag?post=23819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}