SOLVED

为何不能计算出结果?

%3CLINGO-SUB%20id%3D%22lingo-sub-2380061%22%20slang%3D%22zh-CN%22%3EWhy%20can't%20the%20results%20be%20calculated%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2380061%22%20slang%3D%22zh-CN%22%3E%3CP%3EHello%2C%20everyone%2C%20please%20ask%3A%3C%2FP%3E%3CP%3EThe%20formula%20in%20the%20pink%20box%20below%20is%20%3CSTRONG%3Ecountifs%2C%3C%2FSTRONG%3Eso%20why%20can't%20the%20results%20be%20calculated%3F%20What's%20the%20problem%3F%3C%2FP%3E%3CP%3EIf%20you%20use%20countif%2C%20you%20can%20calculate%20the%20results.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22countifs%20%E5%85%AC%E5%BC%8F%E8%AE%A1%E7%AE%97%E4%B8%8D%E5%87%BA%E7%BB%93%E6%9E%9C%20202105241518.jpg%22%20style%3D%22width%3A%20741px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283068iECCA699049D34F16%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22countifs%20%E5%85%AC%E5%BC%8F%E8%AE%A1%E7%AE%97%E4%B8%8D%E5%87%BA%E7%BB%93%E6%9E%9C%20202105241518.jpg%22%20alt%3D%22The%20countifs%20formula%20does%20not%20calculate%20the%20results%20202105241518%20.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2380061%22%20slang%3D%22zh-CN%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2380632%22%20slang%3D%22de-DE%22%3ESubject%3A%20%E4%B8%BA%E4%BD%95%E8%83%BD%E8%AE%A1%E7%AE%97%E7%BB%93%E6%9E%9C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2380632%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1061444%22%20target%3D%22_blank%22%3E%40Lynn111%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E7%BF%BB%E8%AF%91%E6%98%AF%E7%94%B1%E6%9C%BA%E5%99%A8%E5%AE%8C%E6%88%90%E7%9A%84%EF%BC%8C%E4%BD%9C%E8%80%85%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E8%AF%AD%E8%A8%80%EF%BC%9A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%9C%A8%E6%82%A8%E7%9A%84%E6%B6%88%E6%81%AF%2F%E5%9B%BE%E7%89%87%E4%B8%AD%EF%BC%8C%E6%88%91%E7%9C%8B%E4%B8%8D%E5%88%B0%E5%85%AC%E5%BC%8F%EF%BC%8C%E4%B9%9F%E7%9C%8B%E4%B8%8D%E5%88%B0%E5%AE%83%E5%BA%94%E8%AF%A5%E5%AE%9E%E9%99%85%E5%81%9A%E4%BB%80%E4%B9%88%E5%92%8C%E4%B8%8D%E5%BA%94%E8%AF%A5%E5%81%9A%E4%BB%80%E4%B9%88%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E7%BB%8F%E6%82%A8%E5%85%81%E8%AE%B8%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%88%91%E5%8F%AF%E4%BB%A5%E6%8E%A8%E8%8D%90%E7%9A%84%E8%AF%9D%E3%80%82%20%E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E5%B0%BC%E5%9F%BA%E5%88%A9%E8%AF%BA%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%80%E4%B9%88%E9%83%BD%E4%B8%8D%E7%9F%A5%E9%81%93%EF%BC%88%E8%8B%8F%E6%A0%BC%E6%8B%89%E5%BA%95%EF%BC%89%3C%2FP%3E%3CP%3E%3CSTRONG%3E------------------------------------------------------------------%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EIn%20English%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EIn%20your%20message%20%2F%20picture%20I%20cannot%20see%20the%20formula%2C%20nor%20what%20it%20should%20actually%20do%20and%20not%20do.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWith%20your%20permission%2C%20if%20I%20can%20recommend.%20It%20can%20help%20us%20all%20if%20you%20upload%20an%20Excel%20file%20(without%20sensitive%20data)%2C%20no%20picture.%20Even%20if%20it%20is%20said%20that%20a%20picture%20can%20say%20a%20thousand%20words%2C%20it%20is%20certainly%20not%20in%20the%20case%20of%20Excel%2C%20on%20the%20contrary%20in%20some%20cases.%20This%20would%20also%20be%20a%20blessing%20for%20all%20of%20us%2C%20as%20we%20can%20understand%20the%20problem%20much%20better%2C%20a%20win-win%20situation%20for%20everyone.%3C%2FP%3E%3CP%3E*%20Knowing%20the%20Excel%20version%20and%20operating%20system%20would%20be%20an%20advantage.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20understanding%20and%20patience%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382219%22%20slang%3D%22zh-CN%22%3EBetreff%3A%20Why%20can't%20I%20calculate%20the%20results%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382219%22%20slang%3D%22zh-CN%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40NikolinoDE%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20is%20in%20the%20PINK%20cell%2C%3CSTRONG%3Ecountifs%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20output%26nbsp%3Bshould%20be%203%2CBut%20it%20actually%200.%3C%2FP%3E%3CP%3ESo%20i%20am%20confused.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20upload%20a%20EXCEL%20file%20already.%20Will%20there%20have%20more%20helpful%20materials%2Cplease%20let%20me%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

各位好,请问:

下图粉红色框内公式是countifs,为何不能计算出结果?是哪里的问题呢?

如使用countif,能计算出结果。

countifs 公式计算不出结果 202105241518.jpg

3 Replies

@Lynn111 

翻译是由机器完成的,作者无法使用以下语言:

 

在您的消息/图片中,我看不到公式,也看不到它应该实际做什么和不应该做什么。

 

经您允许,如果我可以推荐的话。 如果您上传Excel文件(不包含敏感数据),但没有图片,它将为我们所有人提供帮助。 即使说图片可以说一千个单词,但在某些情况下,Excel肯定不是。 这也将对我们所有人都有好处,因为我们可以更好地理解问题,对每个人都是双赢的局面。

 

*了解Excel版本和操作系统也将是一个优势。

 

 

感谢您的理解和耐心

 

 

尼基利诺

 

我知道我什么都不知道(苏格拉底)

------------------------------------------------------------------

In English:

In your message / picture I cannot see the formula, nor what it should actually do and not do.

With your permission, if I can recommend. It can help us all if you upload an Excel file (without sensitive data), no picture. Even if it is said that a picture can say a thousand words, it is certainly not in the case of Excel, on the contrary in some cases. This would also be a blessing for all of us, as we can understand the problem much better, a win-win situation for everyone.

* Knowing the Excel version and operating system would also be an advantage.

 

Thank you for your understanding and patience

 

Nikolino

I know I don't know anything (Socrates)

@NikolinoDE 

 

The formula is in the PINK cell,countifs

The output should be 3,But it actually 0.

So i am confused.

 

I am upload a EXCEL file already.Will there have more helpful materials,please let me know.

best response confirmed by Lynn111 (New Contributor)
Solution

@Lynn111 

That's since you try to calculate numbers of cells which are at the same time apples AND oranges. There are no such.

For OR condition you may use

=SUM(COUNTIFS( $A$2:$A$5,A2:A3))

or

=COUNTIFS( $A$2:$A$5,A2)+COUNTIFS( $A$2:$A$5,A3)