如何根据月份添加单词

时间:2016-06-08 00:20:52

标签: excel

AI需要找到每年7月份“婚礼”(M列)的出现时间,然后将其添加到F8。然后在八月和那个在F19。

在F8中,我需要加上多少次“*”(R列)仅提供参考“婚礼”

在P8中,我需要加上多少次“*”(列R)引用“婚礼”并参考“皮尔”(U列)

An external link to a screenshot of my Excel sheet

1 个答案:

答案 0 :(得分:0)

  

需要找时间"婚礼" (第M栏)仅在每年7月出现,然后将其添加到F8

=COUNTIFS(M13:M25,"Wedding",A13:A25,">="&DATE(2015,7,1),A13:A25,"<="&DATE(2015,7,31))


  

然后在八月和那个在F19

=COUNTIFS(M13:M25,"Wedding",A13:A25,">="&DATE(2015,8,1),A13:A25,"<="&DATE(2015,8,31))


  

我需要加多少次&#34; *&#34; (R栏)提出参考&#34; Wedding&#34;仅

=COUNTIFS(M13:M25,"Wedding",R13:R25,"*")

但是,我想您希望在"*"WeddingJulyAugust一起计算。 七月:

=COUNTIFS(M13:M25,"Wedding",R13:R25,"*",A13:A25,">="&DATE(2015,7,1),A13:A25,"<="&DATE(2015,7,31))

八月:

=COUNTIFS(M13:M25,"Wedding",R13:R25,"*",A13:A25,">="&DATE(2015,8,1),A13:A25,"<="&DATE(2015,8,31))


  

我需要加多少次&#34; *&#34; (R栏)提到&#34; Wedding&#34;和#34; Peel&#34; (第U栏)

=COUNTIFS(R13:R25,"*",M13:M25,"Wedding",U13:U25,"Peel")

同样,我想您希望在"*"Wedding Peel July引用的August数为=COUNTIFS(M13:M25,"Wedding",R13:R25,"*",U13:U25,"Peel",A13:A25,">="&DATE(2015,7,1),A13:A25,"<="&DATE(2015,7,31))

七月:

=COUNTIFS(M13:M25,"Wedding",R13:R25,"*",U13:U25,"Peel",A13:A25,">="&DATE(2015,8,1),A13:A25,"<="&DATE(2015,8,31))

八月:

$loaded()

注意:根据需要更改范围。