简体   繁体   English

EXCEL 中的多个条件计数 IFS 公式

[英]MULTIPLE CONDITION COUNT IFS FORMULA IN EXCEL

i have an excel table which contains index no.我有一个包含索引号的 excel 表。 in a2:a34036, year in b2:b34036 and hourly data of 24 hours ranging from e2:ab34036.在 a2:a34036 中,b2:b34036 中的年份和 e2:ab34036 范围内的 24 小时每小时数据。 i want to count no.我想数不。 of hourly vales that are >10 for each index and year.每个指数和年份的小时值 >10。 for this i have made another table in which vertically all index are placed and years are placed horizontally and i's using the formula为此,我制作了另一个表格,其中垂直放置所有索引,水平放置年份,我使用公式

=COUNTIFS($A$2:$A%34036,$B34040,$B$2:$B$34036,C$34039,$E$2:$AB$34036,">10")

but this formula does not return any value whether it is entered as direct or array formula.但无论是作为直接公式还是数组公式输入,此公式都不会返回任何值。 In place of $E$2:$AB$34036 if i use $E$2:$E$34036 ie for single column then it gives the result but doing this job for 24 times it is difficult.代替 $E$2:$AB$34036,如果我使用 $E$2:$E$34036 即用于单列,那么它会给出结果,但是做 24 次这项工作是很困难的。 please help me请帮我

  1. Create a new column after or before your hourly data, counting what you want for that row (assume new column in AC)在每小时数据之后或之前创建一个新列,计算该行所需的内容(假设 AC 中的新列)

' '

=COUNTIF(E2:AB2,">10")

and copy down并复制下来

  1. For the other table, use a sumifs instead of countifs对于另一个表,使用 sumifs 而不是 countifs

' '

=SUMIFS(AC2:AC34036,$A$2:$A$34036,$B34040,$B$2:$B$34036,C$34039)

Though I would probably have placed this table in a separate sheet, to separate data and report.虽然我可能会将这个表格放在单独的表格中,以分隔数据和报告。

Note also that your formula contains a % where it should be a $另请注意,您的公式包含 % ,它应该是 $

Just out of curiosity, are all indices unique, or do they occur multiple times?出于好奇,所有索引都是唯一的,还是多次出现?

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

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