Note: The other languages of the website are Google-translated. Back to English
登陆  \/ 
x
or
x
点此注册  \/ 
x

or

如何计算多个工作表中的特定值?

假设我有多个工作表,其中包含以下数据,现在,我想从这些工作表中获取特定值“ Excel”的出现次数。 如何在多个工作表中计算特定值?

doc-count-across-multiple-sheets-1 doc-count-across-multiple-sheets-2 doc-count-across-multiple-sheets-3 2 doc-count-across-multiple-sheets-4

用公式计算多个工作表中的特定值

使用Kutools for Excel在多个工作表中计算特定值


  用公式计算多个工作表中的特定值

在Excel中,有一个公式供您计算多个工作表中的某些值。 请执行以下操作:

1。 在单列中列出所有包含要计数的数据的工作表名称,如以下屏幕截图所示:

doc-count-across-multiple-sheets-5

2。 在空白单元格中,请输入以下公式: =SUMPRODUCT(COUNTIF(INDIRECT("'"&C2:C4&"'!A2:A6"),E2)),然后按 输入 键,您将在这些工作表中获得值“ Excel”的数字,请参见屏幕截图:

doc-count-across-multiple-sheets-6

备注:

1.在上式中:

  • A2:A6 是要在工作表中计算指定值的数据范围;
  • C2:C4 是工作表名称列表,其中包含要使用的数据;
  • E2 是您要基于的条件。

2.如果需要列出多个工作表,则可以阅读本文 如何在Excel中列出工作表名称? 处理这个任务。

3.在Excel中,您还可以使用COUNTIF函数一个接一个地添加工作表,请使用以下公式: =COUNTIF(Sheet1!A2:A6,D2)+COUNTIF(Sheet10!A2:A6,D2)+COUNTIF(Sheet15!A2:A6,D2)Sheet1, Sheet10Sheet15 是您要计算的工作表, D2 是您基于的条件),然后按 输入 获得结果的关键。 看截图:

doc-count-across-multiple-sheets-7


使用Kutools for Excel在多个工作表中计算特定值

如果你有 Kutools for Excel,其 旅游导航 窗格中,您可以快速列出并计算多个工作表中的特定值。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用. 

安装后 Kutools for Excel,租约请执行以下操作:

1。 点击 库工具 > 旅游导航 ,请参见屏幕截图:

doc-count-across-multiple-sheets-9

doc-count-across-multiple-sheets-10

2。 在 旅游导航 窗格,请执行以下操作:

(1.)点击 查找和替换 按钮以展开 查找和替换 窗格

(2.)将特定值键入 查找内容 文本框;

(3.)从 惠廷 下拉,在这种情况下,我会选择 所选工作表;

(4.)然后从中选择要计算特定值的纸张 工作簿 列表框;

(5.)检查 匹配整个单元格 如果要计算单元格匹配的精确度;

(6.)然后单击 找到所有 按钮以列出多个工作表中的所有特定值,并且单元格的数量显示在窗格的底部。

立即下载和免费试用Excel的Kutools!


演示:使用Kutools for Excel在多个工作表中计算特定值

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


相关文章:

如何在Excel中使用countif来计算百分比?

如何在Excel中对多个条件进行计数?


最佳办公效率工具

Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及您以前使用过的任何东西; 加密单元 带密码 创建邮件列表 并发送电子邮件...
  • 超级公式栏 (轻松编辑多行文本和公式); 阅读版式 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不会丢失数据; 拆分单元格内容; 合并重复的行/列...防止细胞重复; 比较范围...
  • 选择重复或唯一 行; 选择空白行 (所有单元格都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择...
  • 确切的副本 多个单元格,无需更改公式参考; 自动创建参考 到多张纸; 插入项目符号,复选框等...
  • 提取文字,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级滤镜 (将过滤方案保存并应用于其他工作表); 高级排序 按月/周/日,频率及更多; 特殊过滤器 用粗体,斜体...
  • 结合工作簿和工作表; 根据关键列合并表; 将数据分割成多个工作表; 批量转换xls,xlsx和PDF...
  • 超过300种强大功能。 支持Office / Excel 2007-2019和365。支持所有语言。 在您的企业或组织中轻松部署。 完整功能30天免费试用。 60天退款保证。
kte选项卡201905

Office选项卡为Office带来了选项卡式界面,使您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
officetab底部
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    emran · 2 years ago
    1*1=1 but from 2 it should be 3 double. how i set up in excel? please give me a solution.
  • To post as a guest, your comment is unpublished.
    Mike · 3 years ago
    This was extremely helpful. the below formula is what i use to track all my employees Vacation,Sick,Personal,LOA days. I have tabs for every month of the year and use this to track how many days they have used. All i do is change the "V" to a "S" or "P". Formula works perfect! thanks for the info....

    =COUNTIF(January!B16:AF16,"V")+COUNTIF(February!B16:AF16,"V")+COUNTIF(March!B16:AF16,"V")+COUNTIF(April!B16:AF16,"V")+COUNTIF(May!B16:AF16,"V")+COUNTIF(June!B16:AF16,"V")+COUNTIF(July!B16:AF16,"V")+COUNTIF(August!B16:AF16,"V")+COUNTIF(September!B16:AF16,"V")+COUNTIF(October!B16:AF16,"V")+COUNTIF(November!B16:AF16,"V")+COUNTIF(December!B16:AF16,"V")
    • To post as a guest, your comment is unpublished.
      Hari · 2 years ago
      I want to count specific word in Coloum accross the Jan to Dec, Please advice and sum it up
  • To post as a guest, your comment is unpublished.
    David · 3 years ago
    Hi. Using this formula:
    =SUMPRODUCT(COUNTIF(INDIRECT("'"&C2:C4&"'!A2:A6"),E2))

    I get a Ref error if Column C has more than 9 rows. In other words, INDIRECT("'"&C2:C9&"'!A2:A6"),E2)), is OK but INDIRECT("'"&C2:C10&"'!A2:A6"),E2)) is not.
    How do I avoid this error?
  • To post as a guest, your comment is unpublished.
    foxx · 4 years ago
    How would I write the formula above (=SUMPRODUCT(COUNTIF(INDIRECT("'"&C2:C4&"'!A2:A6"),E2))) if I had to use the COUNTIFS function? Right now I have to see if certain cells have met 2 to 3 criteria (across multiple worksheets).

    cheers for you help.
    • To post as a guest, your comment is unpublished.
      matt · 4 years ago
      try =SUMPRODUCT(COUNTIFS(INDIRECT("'"&C2:C4&"'!A2:A6"),E2),(INDIRECT("'"&C2:C4&"'!A2:A6"),X2),(INDIRECT("'"&C2:C4&"'!A2:A6"),Y2))
      where E2, X2 and Y2 are your criteria and INDIRECT("'"&C2:C4&"'!A2:A6" are your criteria range, where C2:C4 are your tab names and A2:A6 is your data range

      let me know if it works I'm actually very curious, didn't have time to run and test it myself. I just had to use one criteria so above easier formula did work wonders for me
  • To post as a guest, your comment is unpublished.
    juntjoo · 5 years ago
    Can you not specify your range of cells within a RANGE of sheets instead of "sheet1+sheet2+sheet3...." and specify a range to compare to like: countif(sheet1:sheet5!b:b, a:a)
    • To post as a guest, your comment is unpublished.
      matt · 4 years ago
      tried it, didn't work. you need your tab(sheet) names in the cells for it to work. The cells are actually making up a range themselves, hence C2:C4 in the formula
  • To post as a guest, your comment is unpublished.
    fasdfasf · 5 years ago
    sdfasdfas fasdfasf

    dfadf

    asdfsdf

    asdfasf
    asdfasf


    sdfas