简体   繁体   English

Google表格基于多个条件的COUNTIF / COUNTIFS公式

[英]Google Sheets COUNTIF / COUNTIFS formulas based on multiple criteria

I'm looking for some expertise with formulas. 我正在寻找一些公式的专业知识。 I've got a raw data source and need to be able to summarise it in a separate sheet based on a number of different variables of both number and text formats. 我有一个原始数据源,需要能够根据数字和文本格式的许多不同变量在单独的表格中进行汇总。 I've tried some COUNTIFS, INDEX and other formulas that I've seen published on this site, but it's just not working the way I need it to. 我已经尝试了一些COUNTIFS,INDEX和其他我在网站上发布的公式,但它并没有按照我需要的方式工作。

The column headings are: 列标题是:

Timestamp
HRBP (name)
Date
Area name
Team name
Enquiry Type
Enquiry Summary

The summary data I need is: Total number of Enquiry Type by HRBP by Area between specified date range , where I can enter the value of HRBP, Area, and dates in defined cells, and the 'count' of Enquiry Type will be displayed below (and then I can create graphs/charts). 我需要的摘要数据是: HRBP的查询类型总数按指定日期范围之间的区域 ,我可以在定义的单元格中输入HRBP,区域和日期的值,查询类型的“计数”将显示如下(然后我可以创建图表/图表)。

My logic would be something along the lines of: 我的逻辑将是:

COUNT [Enquiry Type] IF ([HRBP = 'x'] AND [AREA = 'y'] AND [Date >='z'] AND [DATE <= 'a'])

Can someone please help get to my end goal? 有人可以帮助我实现目标吗? Or does anyone know of an App solution that could create this analysis easily enough - the data is entered via a Google Form at front end. 或者是否有人知道可以轻松创建此分析的应用程序解决方案 - 数据通过前端的Google表单输入。

I think COUNTIFS is what you're looking for. 我认为COUNTIFS就是你要找的。 In my dummy data I used this formula: 在我的虚拟数据中,我使用了这个公式:

=countifs(B:B,"a",C:C,"x",D:D,"y",E:E,">=7/30/2015",E:E,"<=7/31/2015")

It's put in the cell G2 in the image: 它放在图像中的单元格G2中: 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM