excel函数:汉字转全拼

Last week, we used the Excel SUBTOTAL function to sum items in a filtered list, while ignoring the hidden rows. Now we'll look at ways to use Subtotal and SumProduct with filter settings applied.

上周,我们使用Excel SUBTOTAL函数对过滤列表中的项目求和 ,而忽略了隐藏的行。 现在,我们将研究在应用过滤器设置的情况下使用小计和SumProduct的方法。

小计功能 (Subtotal Function)

Here's a screen shot of the SUBTOTAL function options, that we used last time.

这是上次使用的SUBTOTAL功能选项的屏幕截图。

In the comments for that blog post, Sam mentioned that you can also use SUBTOTAL with functions like SUMPRODUCT, to do additional sums or counts, based on the visible data in a filtered table.

在该博客文章的评论中, Sam提到您还可以将SUBTOTAL与SUMPRODUCT之类的功能结合使用,根据过滤后的表格中的可见数据进行附加的总和或计数。

Sam sent me his sample Excel file, to show how he uses this technique.

Sam向我发送了他的示例Excel文件,以说明他如何使用此技术。

创建命名范围 (Create Named Ranges)

Sam's workbook has a list with Product, Region and Amount fields. He created dynamic named ranges for the entries in each field, using INDEX and COUNTA.

Sam的工作簿包含一个包含“产品”,“地区”和“金额”字段的列表。 他使用INDEX和COUNTA为每个字段中的条目创建了动态命名范围 。

Note: If you're using Excel 2010 or Excel 2007, and a named table, you can use table references to create the names.

注意:如果使用的是Excel 2010或Excel 2007和命名表,则可以使用表引用来创建名称。

SUMPRODUCT功能 (The SUMPRODUCT Function)

With the a simple SUMPRODUCT function, you could sum the amounts for all the North region rows. This works well if the list is not filtered.

使用简单的SUMPRODUCT函数,您可以将所有北部区域行的金额相加。 如果未过滤列表,则效果很好。

  =SUMPRODUCT((Region=A2)*(Amt))

= SUMPRODUCT((Region = A2)*(Amt))

However, if the list is filtered, the total for North region still calculates as 545, even though only one amount, 55, is visible.

但是,如果列表被过滤,则即使只有一个数55可见,北部区域的总数仍计算为545。

将SUBTOTAL与SUMPRODUCT一起使用 (Use SUBTOTAL with SUMPRODUCT)

To solve the problem, Sam created another named range, vAmt, that is based on the Amt range.

为了解决该问题,Sam创建了另一个命名范围vAmt,它基于Amt范围。

  =SUBTOTAL(109,OFFSET(Amt,ROW(Amt)-ROW('1'!$C$6),,1,1))

= SUBTOTAL(109,OFFSET(Amt,ROW(Amt)-ROW('1'!$ C $ 6),, 1,1))

The named range uses the SUBTOTAL function to return an array of the values, with zero showing if the row is hidden.

命名范围使用SUBTOTAL函数返回值的数组,其中零表示该行是否被隐藏。

When the vAmt range is used in a SUMPRODUCT formula, it shows the total for only the visible rows.

在SUMPRODUCT公式中使用vAmt范围时,它仅显示可见行的总数。

In the screen shot below, the South region is selected, and the two visible amounts for that region are totaled correctly in cell C2

在下面的屏幕快照中,选择了南部区域,并且该区域的两个可见量已在单元格C2中正确总计

查看公式详细信息 (See the Formula Details)

If you select the vAmt in the formula, and press the F9 key, you can see the effect of the SUBTOTAL function. All the amounts show as zero, except for the three visible amounts -- 22, 36 and 19.

如果在公式中选择vAmt,然后按F9键,则可以看到SUBTOTAL函数的作用。 除三个可见的数量-22、36和19外,所有金额均显示为零。

下载样本文件 (Download the Sample File)

To see Sam's workbook and formulas, download the SUMPRODUCT SUBTOTAL sample file.

要查看Sam的工作簿和公式,请下载SUMPRODUCT SUBTOTAL示例文件

The file is zipped, and it is in Excel 2003 file format. ___________________

该文件已压缩,并且为Excel 2003文件格式。 ___________________

翻译自: https://contexturesblog.com/archives/2011/03/18/excel-function-friday-subtotal-and-sumproduct-with-filter/

excel函数:汉字转全拼


http://www.taodudu.cc/news/show-6728552.html

相关文章:

  • excel每页小计累计_您还需要Excel小计吗?
  • mysqladmin、mysqldump、mysqlslap、mysqlshow、mysqlcheck
  • mysqldump: Couldn‘t execute 以及 mysqldump:Can‘t create/write to file
  • mysql 同步 结构_mysqlSync
  • MySQL数据CURD操作
  • MySQL操作mysqldump命令详解
  • mysqldump: Can‘t create/write to file ‘******‘
  • mysq命令mysqldump详解(实现备份)
  • mysqldump 导出提示Couldn‘t execute SELECT COLUMN_NAME...
  • 【MySQL】mysqldump --help
  • MySQL Connector/C++ 操作MySQL数据库
  • mysqldump,select into outfile备份
  • Mysql++关于多数据集查询Commands out of sync; you can‘t run this command now的问题
  • c/c++操作mysql
  • C++ MySql
  • mysqldump: Couldn‘t execute ‘SET OPTION SQL_QUOTE_SHOW_CREATE=1‘
  • mysqldump导出时: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1':
  • Mysql——》show processlist
  • 【php分销商城查找上线】php分销递归查找多个上线并返回
  • 华为昇思MindSpore首席架构师金雪锋:ChatGPT的哲学基础,维特根斯坦思想
  • 架构师成长之路:如何进行服务模块拆分(架构师方法经验干货)
  • android墓碑机制推送,工信部放大招,又一手机品牌加入推送联盟,安卓流畅度有救了...
  • 工业控制系统协议的安全性
  • 工业控制系统面临的安全问题分析
  • 工业控制系统所面临的安全威胁
  • 工业控制系统信息安全与信息安全、功能安全的区别【转自工控工程网】
  • 工业控制信息安全标准介绍
  • 工业控制系统与传统信息系统安全的对比分析
  • 【Grafana】介绍
  • pgagent

excel函数:汉字转全拼_星期五的Excel函数:带过滤器的小计和总和相关推荐

  1. excel函数:汉字转全拼_30天中30个Excel函数:01 –精确

    excel函数:汉字转全拼 Welcome to the Contextures 30 Excel Functions in 30 Days (30XL30D) challenge. Thanks f ...

  2. sql文字转换全拼_取汉字全拼的SQL函数

    /* 根据汉字获取全拼 1.生成所有读音临时表 2.根据Chinese_PRC_CS_AS_KS_WS 排序获取读音 */ CREATE function f_GetPinYin(@str varch ...

  3. sql文字转换全拼_获取汉字全拼SQL函数

    /* 根据汉字获取全拼 1.生成所有读音临时表 2.根据Chinese_PRC_CS_AS_KS_WS 排序获取读音 */ CREATE function f_GetPy(@str varchar(1 ...

  4. Excel汉字转全拼以及首字母

    本文链接:https://blog.csdn.net/liuxi1024/article/details/84816870 一.汉字转全拼 1.启动Excel 2003(其它版本请仿照操作),打开相应 ...

  5. react根据中文获取拼音_vue 获取汉字的全拼、简拼、首拼

    1.封装公共方法,获取汉字的全拼.简拼.首拼 export const Pinyin = { _JMcode:{ "-":"", "-":& ...

  6. mysql root dengru_Mysql学习Mysql中文汉字转拼音的实现(每个汉字转换全拼)

    <Mysql学习Mysql中文汉字转拼音的实现(每个汉字转换全拼)>要点: 本文介绍了Mysql学习Mysql中文汉字转拼音的实现(每个汉字转换全拼),希望对您有用.如果有疑问,可以联系我 ...

  7. java 汉字转换全拼、首字母拼音

    最近接到需求,要求商城中进行半模糊搜索时,输入拼音字母同样要求进行自动匹配出相关品牌.类目.关键词等数据,从而进行筛选商品 本片内容只记录汉字转换拼音 方案一:在mysql数据库中编写函数,此方法存在 ...

  8. Java将汉字转换为全拼

    Java将汉字转换为全拼 pom依赖 <dependency><groupId>com.belerweb</groupId><artifactId>pi ...

  9. C#汉字转全拼,首拼

    1.NuGet安装微软语言包Microsoft.International.Converters.PinYinConverter/// <summary>/// 汉字转全拼/// < ...

最新文章

  1. 《Java和Android开发实战详解》——2.5节良好的Java程序代码编写风格
  2. java 检查输入_在java中检查输入的问题
  3. 成功解决AttributeError: module 'numpy' has no attribute 'equal'
  4. 电脑格式化后需要重装系统吗_电脑经常重装系统对电脑有影响吗
  5. angular中的href=unsafe:我该怎么摆脱你的溺爱!!
  6. java辐射汉化_新研究:低强度环境辐射足以导致量子比特退相干
  7. python基础-PyCharm设置作者信息模板_修改解释器_设置软件UTF-8编码
  8. vrpie在Visio Studio 中无法调试的问题
  9. Android框架揭秘-JAVA服务框架
  10. mPush实战笔记4安装mpush
  11. 基于BS架构的微博系统
  12. 谷歌浏览器 Adobe Flash Player 插件被屏蔽 解决方案
  13. 审计工作存在的难点和问题_审计工作中存在的问题及解决办法
  14. php12生肖是哪个,生肖查询-十二属相年份查询-生肖五行查询-12生肖顺序查询
  15. 多线程导出excel高并发_用多线程优化Excel表格数据导入校验的接口
  16. hive 分区表select全部数据_Hive中如何快速的复制一张分区表(包括数据)
  17. 常用数学符号读法及其含义
  18. 明解C语言入门篇练习题第十章
  19. 南开大学计算机学院宿舍,数说CS | 南开大学计算机学院推免生源大起底!
  20. ERP主要功能模块简介- -

热门文章

  1. 最全spring注解
  2. 模板网站与定制网站的区别有哪些?企业做网站/网站建设制作选择哪个好?
  3. 京东百亿补贴,不要把方向搞偏了
  4. 【正一专栏】榆林产妇和程序员苏享茂怎样你们都不该去死
  5. Gorm学习(五)进阶:多态关联、关联标签以及事务
  6. Java源码程序设计-房屋出租管理系统设计与实现
  7. 【OpenCV】获得视频的帧数、FPS以及按帧数将图片保存到本地
  8. 夸克链 CEO 周期访谈 | ArcBlock 播客
  9. 误删u盘文件夹怎么恢复
  10. 证监会网站查询公募基金申报信息