{"id":1628,"date":"2020-10-26T09:23:07","date_gmt":"2020-10-26T02:23:07","guid":{"rendered":"https:\/\/hoctin.vn\/?p=1628"},"modified":"2020-10-26T09:25:48","modified_gmt":"2020-10-26T02:25:48","slug":"ham-date-trong-excel","status":"publish","type":"post","link":"https:\/\/hoctin.vn\/ham-date-trong-excel\/","title":{"rendered":"C\u00e1ch S\u1eed D\u1ee5ng H\u00e0m DATE – H\u00e0m Ng\u00e0y Th\u00e1ng N\u0103m Trong Excel"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

H\u00e0m DATE L\u00e0 G\u00ec? T\u1ea1i Sao Ph\u1ea3i S\u1eed D\u1ee5ng H\u00e0m DATE?<\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

Khi l\u00e0m vi\u1ec7c v\u1edbi b\u1ea3ng t\u00ednh Excel, ch\u1eafc h\u1eb3n b\u1ea1n \u0111\u00e3 t\u1eebng l\u00e0m vi\u1ec7c v\u1edbi ki\u1ec3u d\u1eef li\u1ec7u ng\u00e0y th\u00e1ng. C\u00e1ch hi\u1ec3n th\u1ecb\/ \u0111\u1ecbnh d\u1ea1ng ng\u00e0y th\u00e1ng c\u00f3 th\u1ec3 kh\u00e1c nhau, nh\u01b0ng khi x\u1eed l\u00fd d\u1eef li\u1ec7u t\u00ednh ng\u00e0y th\u00e1ng th\u00ec Excel th\u1ef1c hi\u1ec7n t\u00ednh to\u00e1n v\u1edbi \u0111\u1ecbnh d\u1ea1ng s\u1ed1 s\u00ea-ri.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

V\u00ed d\u1ee5, \u0111\u1ec3 t\u00ednh t\u1eeb ng\u00e0y 8\/3\/2019 \u0111\u1ebfn ng\u00e0y 1\/1\/2020 c\u00f3 bao nhi\u00eau ng\u00e0y, Excel s\u1ebd th\u1ef1c hi\u1ec7n ph\u00e9p tr\u1eeb gi\u1eefa 2 s\u1ed1 s\u00ea-ri t\u01b0\u01a1ng \u1ee9ng l\u00e0 43532 v\u00e0 43831.<\/span><\/p>\n

B\u1ea1n kh\u00f4ng th\u1ec3 nh\u1eadp tr\u1ef1c ti\u1ebfp c\u00f4ng th\u1ee9c =1\/1\/2020 \u2013 8\/3\/2019 v\u00ec Excel s\u1ebd hi\u1ec3u \u0111\u00e2y l\u00e0 ph\u00e9p tr\u1eeb c\u1ee7a 2 ph\u00e9p chia.<\/span><\/p>


<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

Ngo\u00e0i ra, khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ng\u00e0y th\u00e1ng ki\u1ec3u mm\/dd\/yyyy (th\u00e1ng\/ ng\u00e0y\/ n\u0103m) ho\u1eb7c dd\/mm\/yyy (ng\u00e0y\/ th\u00e1ng\/ n\u0103m), b\u1ea1n c\u00f3 th\u1ec3 nh\u1ea7m l\u1eabn, v\u00ed d\u1ee5 ng\u00e0y 08\/03\/2020, b\u1ea1n c\u00f3 th\u1ec3 kh\u00f4ng bi\u1ebft h\u1ec7 th\u1ed1ng \u0111ang ghi nh\u1eadn ng\u00e0y hay th\u00e1ng tr\u01b0\u1edbc.<\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

H\u00e0m DATE gi\u00fap b\u1ea1n x\u00e1c \u0111\u1ecbnh r\u00f5 ng\u00e0y, th\u00e1ng, n\u0103m c\u1ee7a 1 ng\u00e0y c\u1ee5 th\u1ec3 m\u00e0 kh\u00f4ng g\u00e2y nh\u1ea7m l\u1eabn gi\u1eefa th\u00e1ng v\u00e0 ng\u00e0y, \u0111\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp tr\u1ef1c ti\u1ebfp ng\u00e0y v\u00e0o ph\u00e9p t\u00ednh trong Excel b\u1eb1ng c\u00e1ch nh\u1eadp qua h\u00e0m DATE.<\/span><\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t

M\u1ee5c L\u1ee5c B\u00e0i Vi\u1ebft<\/h4>\t\t\t\t\t\t\t
<\/i><\/div>\n\t\t\t\t
<\/i><\/div>\n\t\t\t\t\t<\/div>\n\t\t
\n\t\t\t
\n\t\t\t\t<\/i>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

1, C\u00fa Ph\u00e1p H\u00e0m DATE Trong Excel<\/span><\/span><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

=DATE(year, month, day)<\/span><\/p>

Trong \u0111\u00f3 year, month, day l\u1ea7n l\u01b0\u1ee3t l\u00e0 n\u0103m, th\u00e1ng, ng\u00e0y c\u1ee7a ng\u00e0y c\u1ea7n nh\u1eadp.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

V\u00ed d\u1ee5, \u0111\u1ec3 nh\u1eadp ng\u00e0y 8 th\u00e1ng 3 n\u0103m 2020, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00f4ng th\u1ee9c DATE(2020,3,8).<\/span><\/p>

Khi \u0111\u00f3 d\u00f9 h\u1ec7 th\u1ed1ng m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n \u0111ang ghi nh\u1eadn c\u00e1ch hi\u1ec3n th\u1ecb ng\u00e0y th\u00e1ng m\u1eb7c \u0111\u1ecbnh l\u00e0 mm\/dd\/yyyy hay dd\/mm\/yyyy th\u00ec \u00f4 Excel \u0111\u01b0\u1ee3c nh\u1eadp b\u1eb1ng c\u00f4ng th\u1ee9c h\u00e0m DATE tr\u00ean v\u1eabn tr\u1ea3 v\u1ec1 \u0111\u00fang s\u1ed1 s\u00ea-ri 43898 c\u1ee7a ng\u00e0y ng\u00e0y 8 th\u00e1ng 3 n\u0103m 2020.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\"V\u00ed\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

\u00a0<\/span><\/p>

T\u01b0\u01a1ng t\u1ef1, \u0111\u1ec3 gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 kh\u00f4ng th\u1ec3 nh\u1eadp tr\u1ef1c ti\u1ebfp c\u00f4ng th\u1ee9c =1\/1\/2020 \u2013 8\/3\/2019 nh\u01b0 \u0111\u00e3 n\u00eau \u1edf tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00f4ng th\u1ee9c h\u00e0m DATE:<\/span><\/p>

=DATE(2020,1,1) – DATE(2019,3,8)<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\"s\u1eed\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

2, L\u01b0u \u00dd C\u00e1ch D\u00f9ng H\u00e0m DATE<\/span><\/span><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

2.1, \u0110\u1ed1i s\u1ed1 \u201cYear\u201d \u0110\u1ec3 X\u00e1c \u0110\u1ecbnh N\u0103m<\/span><\/span><\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

Khi d\u00f9ng h\u00e0m DATE \u0111\u1ec3 l\u1ea5y ng\u00e0y trong Excel, c\u1ea7n l\u01b0u \u00fd Excel s\u1eed d\u1ee5ng n\u0103m theo h\u1ec7 th\u1ed1ng ng\u00e0y th\u00e1ng 1900 \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.<\/span><\/p>

Trong h\u1ec7 th\u1ed1ng ng\u00e0y th\u00e1ng n\u00e0y:<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t