Pages

Thứ Hai, 2 tháng 2, 2015

Theo dõi sinh nhật

Thông báo:
Do blogspot bị chặn bởi VNPT, nên mình sẽ không sử dụng blogspot nữa, thay vào đó là sử dụng website sau:
https://sites.google.com/site/takeyourcel/
Mong các bạn vui lòng ghé qua.
Thân!
THEO DÕI SINH NHẬT

I. Tác dụng
    Bạn được giao nhiệm vụ theo dõi ngày sinh nhật của các thành viên trong công ty, để hàng tháng có kế hoạch tổ chức sinh nhật. Nhưng nếu số nhân viên trong công ty nhiều thì việc theo dõi trở nên rất mất thời gian và ảnh hưởng tới công việc của bạn.
Với 1 vài thao tác đơn giản trên excel, việc theo dõi này trở nên rất dễ dàng và nhanh chóng.


Hình 1: Bảng mẫu theo dõi sinh nhật của công ty
Trong đó:
      - Bạn nhập bằng tay cho các cột: Họ tên, bộ phận, ngày sinh
      - Cột tháng sinh: Tính tự động
      - Cột Sinh nhật: Tính tự động
      - Cột Thông báo: Tự động thông báo theo điều kiện đã lập sẵn
      - Tô màu, định dạng các cột: Tự động thực hiện khi có thông báo
      - Ô Tháng (C2) nhập bằng tay, sau khi nhập nội dung trong ô Số người (F2) sẽ tính tự động, nội dung trong cột Thông báo sẽ tính tự động theo Tháng đã nhập.

Sau đây tôi xin hướng dẫn cách thực hiện việc này như sau:

II. Thực hiện
Đầu tiên bạn tạo form bảng dữ liệu, gồm:
- Tên bảng: Để dòng đầu tiên, có thể merge cell từ cột A đến cột G
- Dòng thứ 2 để ghi 2 cột: Tháng và Số người
- Cách ra 1 dòng để dễ co dãn khoảng cách phần bảng so với tên
- Dòng thứ 4 bạn dùng để ghi tiêu đề của các cột trong bảng: Số thứ tự, Họ và tên, Chức vụ (phòng ban), Ngày sinh, Tháng, Sinh nhật, Thông báo
- Các dòng tiếp theo để ghi theo từng người

Ta có mẫu như sau:


Hình 2: Mẫu bố cục bảng

Để thực hiện việc kẻ khung của bảng, ta thực hiện như sau:
   - Bôi đen phần bảng, gồm từ ô A4 đến ô G50 (ví dụ bảng tới dòng thứ 50)
   - Chọn Format Cells
   - Trong bangr Format Cells, bạn chọn phần Border
   - Để chọn đường kẻ, bạn chọn mục Line phía bên trái, để kẻ đường viền, bạn bấm vào các ô thể hiện vị trí đường kẻ tại mục Border. Mục Presets giúp bạn thực hiện kẻ nhanh với các nội dung:
            + None: bỏ đường kẻ
            + Outline: Kẻ viền bên ngoài bảng
            + Inside: Kẻ viền bên trong bảng
Mô tả cụ thể theo hình sau:


Hình 3: Phần Format cells / Bolder

Bạn có thể bôi đen riêng từng phần và kẻ theo ý muốn cho đến khi ưng ý.

Sau khi kẻ xong, bạn nhập 1 vài nội dung: tên nhân viên, ngày sinh vào bảng


Hình 4: Ví dụ về tên nhân viên, bộ phận, ngày sinh của từng người

Sau đây ta sẽ thực hiện việc xây dựng công thức cho nh
ững cột, ô còn lại: (Lưu ý dấu ngăn cách các phần trong hàm của tôi là dấu chấm phẩy, có thể ở máy tính của bạn là dấu phẩy)

* Cột Tháng sinh (Cột E):
Ta nhập công thức sau đây ở ô E5, các ô tiếp theo sẽ copy công thức xuống:
            =RIGHT("0"&MONTH(D5);2)
   Hoặc =TEXT(MONTH(D5);"0#")
2 công thức trên có kết quả giống nhau, đều mang ý nghĩa là : Lấy giá trị tháng của cột Ngày sinh, định dạng dưới dạng 2 chữ số, nếu nhỏ hơn 10 thì có số 0 ở trước. Bạn chỉ nên dùng 1 trong 2 công thức.

* Cột Sinh nhật (Cột F)
Ta nhập công thức sau đây ở ô F5, các ô tiếp theo sẽ copy công thức xuống:
            =IF(D5="";"";DATE(YEAR(TODAY());MONTH(D5);DAY(D5)))
Tôi sẽ phân tích cụ thể ý nghĩa của công thức này như sau:
      + Dùng hàm if, nếu giá trị ở ô D5 (ngày sinh) là rỗng (không có giá trị gì), thì sẽ trả về giá trị rỗng cho ô sinh nhật (nếu không có ngày sinh thì sẽ không có sinh nhật)
      + Còn nếu điều trên là sai (tức là D5 khác rỗng, có ngày sinh), thì ngày sinh nhật sẽ tính như sau:
            Hàm date: trả về giá trị ngày tháng, theo thứ tự trong hàm: năm, tháng, ngày
                 Năm: là Year(today()) tức là năm hiện tại. Lưu ý hàm today() sẽ trả về giá trị là ngày, tháng, năm hiện tại. Do đó ta thêm hàm Year để chỉ lấy năm hiện tại thôi.
                 Tháng: là tháng của D5 (ngày tháng năm sinh) -> chỉ lấy giá trị tháng
                 Ngày: là ngày của D5 (ngày tháng năm sinh) -> Chỉ lấy giá trị ngày

* Cột Thông báo (Cột G)
Ta nhập công thức sau đây ở ô F5, các ô tiếp theo sẽ copy công thức xuống:
=IF(D5="";"";IF(TODAY()>F5;"Đã xong";IF(TODAY()+7>=F5;"Chuẩn bị tổ chức";IF(MONTH(D5)=$C$2;"Trong tháng có SN";""))))

Tôi sẽ phân tích cụ thể ý nghĩa của công thức này như sau:
     + Hàm if thứ nhất: Nếu D5 là rỗng, thì sẽ nhận giá trị rỗng (không có ngày sinh thì không thông báo)
     + Hàm if thứ 2: sẽ bắt đầu thực hiện khi hàm if thứ 1 nhận giá trị logic của trường hợp sai (tức là D5 không rỗng, có ngày sinh):
              - Today()>F5: nếu ngày hiện tại lớn hơn ngày sinh nhật, thì thông báo là Đã xong. Từ Đã xong là ký tự, nên được đặt trong dấu nháy kép để excel hiểu.
     + Hàm if thứ 3: Để thực hiện thông báo với điều kiện khác, được đặt trong trường hợp hàm if thứ 2 nhận giá trị logic là sai (tức là những trường hợp ngày hiện tại nhỏ hơn ngày sinh nhật, chưa đến ngày sinh nhật)
              - Today()+7>=F5: nếu ngày hiện tại mà cộng thêm 7 nhỏ hơn hoặc bằng ngày sinh nhật (tức là cách ngày sinh nhật trong vòng 1 tuần), thì sẽ hiện thông báo là "Chuẩn bị tổ chức"
     + Hàm if thứ 4: Thực hiện thông báo khác, với trường hợp sai của hàm if thứ 3 (tức là trường hợp không phải cách sinh nhật 1 tuần, không phải trường hợp đã quá ngày sinh nhật)
              - Month(D5)=$C$2: nếu tháng sinh bằng với tháng được chọn ở ô C2, thì sẽ hiện thông báo Trong tháng có sinh nhật
              Trường hợp sai, thì sẽ nhận giá trị rỗng (tức là ngoài tất cả những khả năng nêu trên, thì đều trả về giá trị rỗng, không có thông báo  => chỉ còn sót lại trường hợp chưa đến sinh nhật, và không phải cách ngày sinh 1 tuần, không phải có sinh nhật trong tháng được chọn ở C2 => trường hợp này không cần thông báo)

* Ô đếm tổng số người có sinh nhật trong tháng (ô F2)
         =COUNTIF($E$5:$E$50;$C$2)
   Nội dung của hàm: Đếm số lần xuất hiện của giá trị tháng được chọn (ô C2) trong nội dung của cột Tháng sinh (từ ô E5 đến ô E50)

Sau khi đã xây dựng công thức ở các cột và ô xong, ta sẽ có kết quả như sau:


Hình 5: Bảng kết quả sau khi xây dựng công thức

Tuy nhiên, để thuận tiện cho việc theo dõi, ta sẽ làm thêm chức năng tự động tô màu, thay đổi định dạng cho những trường hợp có thông báo. Ta thực hiện như sau:

- Bôi đen bảng dữ liệu từ ô A5 đến ô G50, chọn chức năng Conditional Formatting, sau đó chọn New Rule (để mở chức năng này, vui lòng xem bài: Bài 8: Tùy chỉnh thanh công cụ trong Excel (áp dụng từ Excel 2010 trở lên)


Hình 6: Bảng New Formatting Rule hiện ra sau khi chọn Conditional Formatting / New Rule


Hình 7: Chọn dòng cuối cùng trong mục Select a Rule Type ở bảng New Formatting Rule

Tại đây bạn nhập công thức để làm điều kiện như sau:
             =IF($G5="Đã xong";TRUE;FALSE)
        Ý nghĩa: Nếu giá trị trong cột G, bắt đầu từ ô G5 trở đi, có giá trị là Đã xong, thì là đúng, còn nếu không phái thì là sai.

Tiếp theo bạn bấm vào ô Format ở phía dưới, chọn định dạng theo ý muốn.


Hình 8: Bảng Format Cells hiện ra sau khi bấm vào ô Format

Tại đây, bao gồm:
          Number: Định dạng kiểu dữ liệu
          Font: Định dạng font chữ, kích cỡ, màu chữ...
          Border: Kẻ khung
          Fill: Màu nền của ô
   Thường thì chỉ cần định dạng tô màu chữ, tô đậm, và tô màu nền cho ô.

Làm tương tự với các thông báo khác, mỗi lần thông báo bạn lại tạo 1 Rule mới trong Conditional Formatting

=IF($G5="Chuẩn bị tổ chức";TRUE;FALSE)
=IF(MONTH($D5)=$C$2;TRUE;FALSE)

Sau khi hoàn thành, bạn có thể kiểm tra các rule bằng cách bấm vào Conditional Formatting, chọn Manager Rule


Hình 9: Bảng Conditional Formatting Rules Manager

Lưu ý bạn nên sắp xếp thứ tự các Rule theo đúng thứ tự xuất hiện trong hàm If đã viết ở cột Thông báo (đã xong ở đầu tiên, chuẩn bị ở thứ 2, có SN trong tháng thứ 3)

Cách sắp xếp: Bạn bấm rule cần sắp xếp, bấm vào nút mũi tên chỉ lên trên hoặc xuống dưới ở cạnh nút Delete Rule (Phía trên chữ Applies to) trong bảng trên để di chuyển theo thứ tự như ý muốn.

Ta được kết quả như sau:


Như vậy đã hoàn thành xong bảng theo dõi sinh nhật.
Bây giờ bạn thử thay đổi Tháng tại ô C2, hoặc thay đổi ngày sinh của các nhân viên sẽ thấy thông báo hiện ra có chính xác hay không

III. Kết luận

Muốn thêm dòng, bạn chỉ cần copy công thức từ dòng trên xuống các dòng dưới đã thêm.

Chức năng Conditional Formatting hỗ trợ việc định dạng ô theo các điều kiện mà bạn thiết lập, giúp việc thông báo trên bảng tính trở nên tự động và dễ nhìn.

Việc xử lý các hàm ngày tháng sẽ dùng nhiều tới hàm Date, today, month, year... Ô nào đã chứa giá trị ngày thì bạn có thể sử dụng trực tiếp ô đó vào các phép tính + , - ngày tháng lẫn nhau.

Chúc các bạn áp dụng tốt kiến thức này vào công việc của mình.

Bạn nào muốn xin file mẫu có thể liên hệ với mình qua email duongquan211287@gmail.com








48 nhận xét:

  1. SAO LÀM MÃI MÀ KO TÔ MÀU ĐƯỢC NHỈ

    Trả lờiXóa
    Trả lời
    1. Excel To You: Theo Dõi Sinh Nhật >>>>> Download Now

      >>>>> Download Full

      Excel To You: Theo Dõi Sinh Nhật >>>>> Download LINK

      >>>>> Download Now

      Excel To You: Theo Dõi Sinh Nhật >>>>> Download Full

      >>>>> Download LINK 30

      Xóa
  2. EaseUS Data Recovery Crack is most likely the greatest no charge data recovery software. By making use of this you could recuperate arranged, eliminated and together with dropped details. You can recuperate it by using a laptop computer or Personal Home computer and detachable device promptly also as fairly quite simply. It typically usually takes put the material throughout the

    Trả lờiXóa
  3. trường hợp chỉ có năm sinh, dung công thức nào để lấy tháng sinh nhật ạ

    Trả lờiXóa
  4. pdf eraser pro key is software for deleting and deleting images, texts and logos from PDF files. With the PDF Eraser Pro Key you can easily remove unnecessary content from PDF files. If you have bought a PDF document that contains unwanted text and images, you can delete it with the PDF device and save it in a brand new PDF file. Deleting is not the only problem that the PDF device can solve. With the program you can also insert your own text and footage into the PDF. The PDF device also rotates the PDF pages. It helps you to rotate the PDF pages in the correct orientation. You may find that some PDF page sections are parent. Therefore, you can use the inherent PDF page cutter to delete unwanted pages.
    Source: https://hdlicense.com/pdf-eraser-pro-crack/

    Trả lờiXóa
  5. significantly more expensive scanning utility that also works with a long list of scanners from various companies and also offers many sophisticated features.vuescanprolatestversioncrack

    Trả lờiXóa
  6. Smart Driver Updater Crack is the best software. It is in fact a useful operator device that will improve the efficiency of our PC. crackforsmartdriverupdater

    Trả lờiXóa
  7. SmartDraw Crack Key is the only Visio alternative that runs on Mac and Windows. With industry-leading Visio import and export capabilities, this tool is the simple, powerful, and affordable Visio alternative.smartdrawproductkey

    Trả lờiXóa
  8. The Save Wizard Crack Assistant save editor can be the best and easiest way to cheat in your single-player games. As long as you have a USB drive larger than 4GB and a computer running Windows 7 or later, you’re good to go.ps4savewizardfreecrack

    Trả lờiXóa
  9. Folder Lock registration key can lock and hide files and folders within seconds. It allows you to password protect and prevent unwanted eyes from seeing files, folders, and drives.folderlockactivationkey

    Trả lờiXóa
  10. If you want to change the SD card or USB storage, this software is for you. SData Tool Crack Free Download is
    advanced and the best software for it.sdatatoolserialkey

    Trả lờiXóa
  11. Overwatch Crack is a multiplayer team-based first-person shooter game developed and published by Blizzard Entertainment.overwatchtorrent

    Trả lờiXóa
  12. Reason 11.3.4 Crack is a powerful digital audio workstation. With this D.A.W. you can create and edit any type of audio file.reasonfreedownload

    Trả lờiXóa
  13. Avast Internet Security 2020 Crack is an antivirus suite intended to shield your PC from malware, ransomware, adware, and different dangers to your hard drive. avastinternetsecurity

    Trả lờiXóa
  14. VCE Exam Simulator 2.7 Crack is a complex yet straightforward programming game plan made to offer you the techniques for practicing exams in sensible conditions, engaging you to sort out some way to perform on tests when faced with a period limit.vceexamsimulatorcrack

    Trả lờiXóa
  15. AIDA64 Extreme Edition Crack a hardware detection engine unmatched in its class. aida64extremeeditiontorrent

    Trả lờiXóa
  16. Adobe Dreamweaver CS5 Crack enables designers and developers to build standardized websites with confidence using the industry’s leading web authoring tool. adobedreamweaverkeygen

    Trả lờiXóa
  17. Vandalism – Shocking EDM For ANA Crack Free Download is the first ANA 2 sound set. Not only is it versatile, but it is also designed to help you understand the basics of electronic dance music.vandalismshockingedmforanafreedownload

    Trả lờiXóa
  18. NetBalancer Crack Download is an excellent tool that works as a network analyzer, network controller and network monitoring tool.netbalancerfreekeygen

    Trả lờiXóa
  19. A completely new bishop. It is large enough to fit all the content available on NEXUS3! It has three columns for easy navigation and displays counters for folders, categories, and defaults. A site dedicated to color-code tags, bookmarks, favorites, and user defaults.refxnexusmacfree

    Trả lờiXóa
  20. uTorrent Pro Full Version Crack Download – The world’s most powerful and popular BitTorrent client, designed with all the features to connect to P2P networks.utorrentproactivationkey

    Trả lờiXóa
  21. Blackmagic DaVinci Resolve Studio Free Download is the world’s only and best way to combine professional 8K editing, color correction, visual and audio effects after shooting in one place.davinciresolvestudiotorrent

    Trả lờiXóa
  22. Microsoft Office 2016 Crack is the latest version of Microsoft Office that follows Microsoft Office 2013. The Microsoft Office 2016 Product Key is the key that you can use to work with Office 2016 Professional Plus. If you use Office 365, you can easily upgrade to Office 2016 with MS Office 2016 Product Key.
    https://whitecrack.com/microsoft-office-crack/
    TemplateToaster Crack is web-based design and design software for Windows-based CMS that allows you to create beautiful websites and templates in minutes. TemplateToaster's intuitive user interface allows you to design your ideas and design themes and templates for a variety of popular content management systems (CMS) such as WordPress, Joomla and Drupal, including business platforms such as Magento, OpenCart, Prestashop and VirtueMart.
    https://twitcrack.com/templatetoaster-crack/
    AutoCAD Crack is a modern design program suitable for complex 3D models based on existing products. In fact, this program is available to civil engineers, architects, developers and other design institutions to carry out their daily activities. It offers a wide range of tools and devices that need to renew and facilitate your activities.
    https://yellowcrack.com/autocad-crack/

    Trả lờiXóa
  23. This site have particular software articles which emits an impression of being a significant and significant for you individual, able software installation. This is the spot you can get helps for any software installation, usage and cracked"https://crackglobal.com"

    Trả lờiXóa
  24. final-cut-pro-x-crack With Serial Key is quite a reasonable price. Even when you're on a budget, it's easily affordable. Nord VPN now offers the best price in the current market, especially if you are looking for extended-lasting help using premium features.
    new crack

    Trả lờiXóa
  25. freemake video converter khokharpc Thanks for the post. Very interesting post. This is my first-time visit here. I found so many interesting stuff in your blog. Keep posting.

    Trả lờiXóa
  26. wirecast pro farooqpc Amazing blog! I really like the way you explained such information about this post with us. And blog is really helpful for us.

    Trả lờiXóa
  27. Thank you, I’ve recently been searching for information about this subject for a long time and yours is the best I have found out so far. pycharm crack

    Trả lờiXóa
  28. Such great and nice information about software. This site gonna help me a lot in finding and using much software. Kindly make this like of content and update us. Thanks for sharing us Toon Boom Storyboard Crack . Kindly click on here and visit our website and read more

    Trả lờiXóa
  29. Wow.. Very informative article thanks for sharing please keep it up because there is no limit of information so I'm waiting for an awesome article just like that.
    TC Games Crack
    TablePlus Crack
    Easy Duplicate Finder Crack
    App Builder Crack

    Trả lờiXóa
  30. Well!! I am impressed by your post. It turns me on. Please, keep writing these posts, so that i could keep myself engaged.
    Wirecast Crack
    Driver Easy Crack
    Debut Video Capture Crack
    KeyShot Crack

    Trả lờiXóa
  31. On our blog we cover one of the op rated and mostly viewed and like movies about mental illnes. read more about on our movies about mental illness at showbizclan.com

    Trả lờiXóa
  32. Wow.. This blog is really very amazing. I really like and really very impressed by your hard work on this article. Keep it up and keep sharing this type of useful an helpful information with us.
    Microsoft Office Crack
    Kutool For Excel Crack
    Download TC Games Crack
    quicktime pro registration key
    airparrot crack torrent
    ummy video downloader license key free
    stata free download full version with crack
    bluebeam revu crack

    Trả lờiXóa
  33. Well!! I am impressed by your post. It turns me on. Please, keep writing these posts, so that i could keep myself engaged.
    AutoScreenRecorder Pro Crack
    Markdown Monster Crack
    Infix PDF Editor Pro Crack
    Nitro Pro Crack

    Trả lờiXóa
  34. I really appreciate your clever writing as a design for your blog.
    Is it a payment problem or did you receive it yourself?
    In any case, it is best to stay in writing.
    It's rare to see a webpage as beautiful as this one.
    football manager crack
    autodesk 3ds max crack
    makemusic finale crack

    Trả lờiXóa
  35. It's a great blog! Furthermore, your website loads lightning fast! Who am I as a lord?
    are you making use of Is it possible for me to receive your hosting affiliate link?
    Honestly, I'd love it if your site could be that quick.
    flvto youtube downloader
    tuneskit drm m4v converter crack
    apowersoft screen recorder pro crack
    cyberlink powerdvd crack

    Trả lờiXóa
  36. . For being the first person to come in and the last person to leave, we commend your dedication and hard work
    3dvista virtual tour suite crack
    cleanmymac x crack
    rekordbox dj crack

    Trả lờiXóa
  37. Please let me know if you’re looking for an author for your weblog.
    You have some really good posts and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d love to
    write some content for your blog in exchange for a link back to mine.
    Please send me an email if interested. Thanks!
    tweakbit fixmypc crack
    final draft crack

    Trả lờiXóa
  38. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to saqibtech.net But thankfully, saqibtech.net

    drylab system crack
    file manager local and cloud file explorer crack
    microsoft activation scripts with crack
    tuneskit drm m4v converter crack
    automatic call recorder pro crack

    Trả lờiXóa
  39. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named Crackedfine
    Tuneskit Drm M4v Converter Crack
    TeamViewer Crack

    Trả lờiXóa
  40. Your writing and presentation skills, as well as your overall style, made a strong impression on me.
    blog A purchased theme or a theme that you have customized anyway.
    YOU? Regardless of the situation, the most important thing is to listen to new music with quality lyrics.
    These days, I rarely see a blog as beautiful as this one.
    movavi video converter crack
    movavi 360 video editor crack
    cool edit pro crack
    adobe photoshop cc crack
    clip studio paint crack key
    macx video converter pro crack full version
    clash of clans crack
    download windows loader v2 2 2 by daz free

    Trả lờiXóa
  41. The simplest video downloader, ever with 4K Video downloader crack! Download video and audio from YouTube and similar services on macOS, PC and Linux absolutely for free!
    https://windowscrack.net/4k-video-downloader-crack/
    3DCoat is the application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production-ready,
    https://hdlicensed.com/3d-coat-crack/
    3DCoat is the application that has all the tools you need to take your
    https://cracks4soft.com/3d-coat-crack/
    https://maccracked.com/3d-coat-crack/

    Trả lờiXóa
  42. Hey! It can't be spelled right! As I read this, I am reminded of an old friend I had sex with! He always talked about it.
    I will send you this.
    I am sure you will read this correctly.
    Thanks for sharing!
    revo uninstaller crack
    polarr photo editor pro crack
    snagit crack
    driver genius crack
    adobe audition cc crack
    roguekiller crack
    razer cortex game booster crack
    windows 7 crack

    Trả lờiXóa
  43. I will avoid reading a blog article in the future that makes me so frustrated that I do not even bother to open it.
    It's my choice to read, but I hope you have something to say.
    One of the things I hear from you when you are not thirsty to listen is to call for help on something that can be easily said.
    aiseesoft fonelab crack
    braina pro crack
    4k video downloader crack
    driver booster pro 9 crack

    Trả lờiXóa
  44. Excel To You: Theo Dõi Sinh Nhật >>>>> Download Now

    >>>>> Download Full

    Excel To You: Theo Dõi Sinh Nhật >>>>> Download LINK

    >>>>> Download Now

    Excel To You: Theo Dõi Sinh Nhật >>>>> Download Full

    >>>>> Download LINK

    Trả lờiXóa