tw4ld6 发表于 2024-10-1 17:50:42

你会制作能够自动变化日期的考勤表吗?


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Excel考勤表是<span style="color: black;">每一个</span>HR都经常会用到的,<span style="color: black;">咱们</span>今天就来学习一种特殊的考勤表制作<span style="color: black;">办法</span>,那<span style="color: black;">便是</span><span style="color: black;">能够</span>动态变化日期的考勤表的制作。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_gif/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXSUI4vjsiawuwfOx5d89a9WCEqKKXjhVbPfdK2fVc9ib8qSQ8jBzAAKDQA/640?wx_fmt=gif&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">如上效果图<span style="color: black;">表示</span>,<span style="color: black;">咱们</span><span style="color: black;">每一个</span>月都有对应的考勤表,<span style="color: black;">咱们</span>在汇总表中设置了下拉月份选项,当<span style="color: black;">选取</span>对应月份后,汇总表中就<span style="color: black;">能够</span><span style="color: black;">表示</span>对应月份表格中的考勤数据。<span style="color: black;">咱们</span>就来<span style="color: black;">瞧瞧</span><span style="color: black;">怎样</span>制作这种<span style="color: black;">能够</span>动态切换的考勤表。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">操作<span style="color: black;">过程</span>:</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1步:<span style="color: black;">咱们</span>需要先制作1-8个月的考勤分表,<span style="color: black;">每一个</span>月份的考勤表中,<span style="color: black;">重视</span>将对应的姓名、工号都要统一相同的位置。如下图所示:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXSDPx8c9pvUtEbP9fsETCaLn3HG8z2icBhahzrbGhicLDQuIBKklzpeeRA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXS6448LYiaNZQ5svVorC5o43lQsNERLmORaDXAqmz41pQEiagdXjHtdHtw/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1步:<span style="color: black;">咱们</span>点击菜单栏:数据—数据有效性—<span style="color: black;">名单</span>,在<span style="color: black;">咱们</span>的汇总表中制作数据有效性下拉选项设置,有效<span style="color: black;">要求</span>运用值<span style="color: black;">选取</span>系列,<span style="color: black;">源自</span>输入:1月、2月...8月,<span style="color: black;">亦</span><span style="color: black;">便是</span>你有几个月数据就输入几个月。如下图所示,</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXSIKtyTrQI6sH3rwJOgxY0AU9fXOsPzqjJcDWFqsz2LYAcGemibibmQpyA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第3步:<span style="color: black;">咱们</span>在汇总表中设置好月份下拉选项后,下面<span style="color: black;">咱们</span>就<span style="color: black;">起始</span>针对<span style="color: black;">每一个</span>周末的单元格列设置为灰色底纹,<span style="color: black;">这般</span><span style="color: black;">咱们</span>切换月份后对应的周末2天都对应的列都会特殊<span style="color: black;">表示</span>颜色;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_gif/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXS4eYjhknJSI9ib63fe4uMbOw9PCpfqEOdm7WlnekLXbBsKRUict3e3zgQ/640?wx_fmt=gif&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">选取</span>区域后,点击:<span style="color: black;">起始</span>—<span style="color: black;">要求</span>格式—新建规则,<span style="color: black;">运用</span>公式确定,输入公式=Weekday(C$5,2)&gt;5,<span style="color: black;">这般</span><span style="color: black;">就可</span><span style="color: black;">针对</span>周末两天对应的单元格设置为灰色底纹。原<span style="color: black;">由于</span><span style="color: black;">倘若</span>是周六周日,Weekday函数返回的值就会大于5。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第4步:关键的一步,用indirect函数和address函数来进行单元格引用<span style="color: black;">就可</span>。函数=IF(INDIRECT($B$3&amp;"!"&amp;ADDRESS(ROW(C6),COLUMN(C6)))=0,"",INDIRECT($B$3&amp;"!"&amp;ADDRESS(ROW(C6),COLUMN(C6))))</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/xgKePcib9ricts6wjXJ5ePZkWMK0tQibgXSQnQUMzmpFlCibfsBrsVIkd6IYN8G3F94EnEmHBiaNkJz4pE2EFyVYcdw/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1、ADDRESS(ROW(C6),COLUMN(C6):<span style="color: black;">位置</span>引用函数,<span style="color: black;">表率</span>返回对应的行和列所在的单元格。此函数<span style="color: black;">表率</span>返回C6单元格内容;ADDRESS(ROW(),COLUMN())函数有对应的两个参数。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2、INDIRECT($B$3&amp;"!"&amp;ADDRESS(ROW(C6),COLUMN(C6))):<span style="color: black;">表率</span>引用单元格B3月份中对应的C6单元格内容,<span style="color: black;">实质</span>=7月!C6,<span style="color: black;">由于</span><span style="color: black;">针对</span>的姓名工号位置都是一致的,只需要引用对应表格的单元格内容<span style="color: black;">就可</span>。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3、IF(INDIRECT()=0,"",INDIRECT()):最后用IF函数来进行判断,<span style="color: black;">倘若</span>引用过来的值为0的时候,就用空来<span style="color: black;">表示</span>,不为空有描述内容的时候,就引用单元格内容,<span style="color: black;">这般</span><span style="color: black;">亦</span>是为了看起来更加美观。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">经过</span>上面对动态考勤表的<span style="color: black;">仔细</span>讲解,<span style="color: black;">此刻</span>你学会<span style="color: black;">怎样</span>制作<span style="color: black;">这般</span><span style="color: black;">能够</span>动态变化的Excel考勤表了吗?</span></p><strong style="color: blue;"><span style="color: black;">精彩<span style="color: black;">举荐</span></span></strong><strong style="color: blue;"><span style="color: black;">
            <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">文案</span>1</p>
      </span></strong>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><a style="color: black;"><span style="color: black;">查询</span>函数中的NO.1,Vlookup<span style="color: black;">所有</span>10种用法详解,值得<span style="color: black;">保藏</span>保</a>存</h1><strong style="color: blue;"><span style="color: black;">
            <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">文案</span>2</p>
      </span></strong>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><a style="color: black;"><span style="color: black;">Excel多工作表数据合并,5种合并<span style="color: black;">办法</span>都在这,告别复制粘贴</span></a></h1><strong style="color: blue;"><span style="color: black;"><span style="color: black;">文案</span>3</span></strong>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><a style="color: black;">Excel<span style="color: black;">查询</span>函数中的NO.1,4种用法详解,比vlookup更好</a></h1>




4lqedz 发表于 2024-10-3 09:00:23

我完全同意你的观点,说得太对了。

wrjc1hod 发表于 2024-10-11 08:54:18

真情实感,其含义为认真了、走心了的意思,是如今的饭圈常用语。

j8typz 发表于 2024-10-15 14:25:22

你的见解独到,让我受益匪浅,非常感谢。
页: [1]
查看完整版本: 你会制作能够自动变化日期的考勤表吗?