f9yx0du 发表于 2024-10-1 09:25:03

Excel数据透视表进阶,计算字段和计算项,1分钟学会!


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">计算字段和计算项,专有名词的解释<span style="color: black;">一般</span>都是很难直接理解的。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>举个工作的实例,就能容易理解了,老板让<span style="color: black;">咱们</span>做一个进销存记账本,记录<span style="color: black;">各样</span>商品的入库和出库明细。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">有两种记录方式:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1</span>种记录方式,<span style="color: black;">咱们</span>会记录当前是入库,还是出库</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第二种记录方式,是<span style="color: black;">咱们</span>直接表头写的入库和出库,<span style="color: black;">而后</span>在对应的列下面填写对应的数量</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/45e4e1c141584e0a9473d3c56fb011e3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=Q8kszgp6yky6Jn1dGJKD6vhpEFA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这两种不同的记录方式,<span style="color: black;">咱们</span>想进行汇总<span style="color: black;">各样</span>商品的库存时,用到的方式是不<span style="color: black;">同样</span>的</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">1、<span style="color: black;">第1</span>种记录方式</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>选中数据,<span style="color: black;">而后</span><span style="color: black;">插进</span>数据透视表,<span style="color: black;">而后</span>将物品字段放在了行标签,将类型字段放在了列标签,将数量入在了值,得到如下结果</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/5ade5e77ff2d41fd84f38d65f9024fac~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=LwD%2BPLC2WKbbtarBFPfsI9%2FwahQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><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>对行不汇总,仅对列数据进行汇总</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e30cf33ef6f04d6da8d3b7b670182a78~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=t91aKs7pcrDg51dY7v3GtCophbc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了将库存数据显示出来,<span style="color: black;">咱们</span>点击数据透视表分析,<span style="color: black;">选取</span>计算项</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/a9237735439348d991882bfb0b303776~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=jBjbfMDjC5iPBQifMtKQV0UBfyg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span><span style="color: black;">咱们</span>自定义一个名<span style="color: black;">叫作</span>为库存的,输入的公式是:=入库-出库,得到了如下的结果:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/cb228b79384d4470b0eb3f58ae9b3ce7~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=HRZ59dMyLv1TomEeNtuaBZCxDGU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">第二种记账方式</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>是第2种记账方式,<span style="color: black;">咱们</span><span style="color: black;">插进</span>数据透视表之后,物品放入在行标签,入库和出库需要<span style="color: black;">所有</span>放在值里面</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3b7245e8d6c042d6b12586984dab74e6~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=IWk3SOHqa%2Bezd6oGbYl23hbPoTU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>这个时候,<span style="color: black;">咱们</span>需要选中的计算字段,项目和集,里面的计算字段</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/9268a092920a4b8cb20a163fdf493366~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=Dbqw5Xv0AjruVEe0oLH6WJEKOHs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个时候,我们自定义的名<span style="color: black;">叫作</span>,是库存,输入的公式,<span style="color: black;">一样</span>的是入库-出库,得到了进销存的表格</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/883d2b44678246ffa73300f6fa5467f1~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=mb6dzBYzr7XL0YhLsM1%2Bj8J7000%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">什么时候用计算字段,什么时候用计算项?</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">此刻</span>问题就来了,<span style="color: black;">为何</span>表1的时候,用的是计算项,表2的时候,用的计算字段呢?</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span><span style="color: black;">咱们</span>要<span style="color: black;">认识</span>,字段和项的定义:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">表格里面的<span style="color: black;">第1</span>行数据<span style="color: black;">叫作</span>之为字段,<span style="color: black;">能够</span>理解为领导</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">表格里面的其它数据,<span style="color: black;">叫作</span>之为项目,可以理解为员工</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/7f73866c9d7043ad991730b244080291~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1727956123&amp;x-signature=P2q4C1FLdCU4H1iGDvVDHPoGaPU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>二步走:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1</span>步:<span style="color: black;">知道</span><span style="color: black;">咱们</span>想要的结果公式,例如,<span style="color: black;">咱们</span>库存=入库-出库</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第二步:去<span style="color: black;">查询</span>公式<span style="color: black;">构成</span>的参数“入库”和“出库”的<span style="color: black;">源自</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">由于</span><span style="color: black;">第1</span>个表里面的入库和出库,都是从项目里面出来的,<span style="color: black;">因此</span>用计算项</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第二个表里面的入库和出库,都是领导班子出身的,<span style="color: black;">因此</span>用计算字段。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">关于这个用法,你学会了么?动手试试吧!</p>




qzmjef 发表于 2024-10-29 01:30:29

我赞同你的看法,你的智慧让人佩服,谢谢分享。

wrjc1hod 发表于 2024-11-12 00:12:39

期待与你深入交流,共探知识的无穷魅力。

4zhvml8 发表于 昨天 11:49

你的见解真是独到,让我受益匪浅。
页: [1]
查看完整版本: Excel数据透视表进阶,计算字段和计算项,1分钟学会!