Discussion:
月份的計算
(时间太久无法回复)
TU
2008-08-19 13:28:29 UTC
Permalink
想利用公式來計算表格中,某個月份出現了幾次

 日期
 7/1
 7/15
 7/22
 8/3
 6/3
 6/10

想計算以上出現的日期中,是7月的有幾個
我試過用sum(month(range)=7)
也試過用countif(range,month(range)=7)
都沒有辦法

請各位大大幫忙囉!
感謝
ªá¥Ò¯Î
2008-08-20 10:05:20 UTC
Permalink
COUNTIF(A3:A17,">=2008/7/1")-COUNTIF(A3:A17,">=2008/8/1")
·Q§Q¥Î€œŠ¡šÓ­pºâªí®æ€€¡A¬Y­Ó€ë¥÷¥X²{€FŽXŠž
·Q­pºâ¥H€W¥X²{ªº€éŽÁ€€¡A¬O7€ëªºŠ³ŽX­Ó
§ÚžÕ¹L¥Îsum(month(range)=7)
€]žÕ¹L¥Îcountif(range,month(range)=7)
³£šSŠ³¿ìªk
œÐŠUŠì€j€jÀ°Š£Åo¡I
·PÁÂ
TU
2008-08-20 12:45:02 UTC
Permalink
感謝您的協助。

但,假設,
每個月都要查詢當月賣掉的貨品中,有多少是當月進貨的,
有沒有方法可以在不需要更改公式內容的狀況下,直接做計算?

謝謝



"???" 來函:
Post by ªá¥Ò¯Î
COUNTIF(A3:A17,">=2008/7/1")-COUNTIF(A3:A17,">=2008/8/1")
Post by TU
想利用公式來計算表格中,某個月份出現了幾次
 日期
 7/1
 7/15
 7/22
 8/3
 6/3
 6/10
想計算以上出現的日期中,是7月的有幾個
我試過用sum(month(range)=7)
也試過用countif(range,month(range)=7)
都沒有辦法
請各位大大幫忙囉!
感謝
ªá¥Ò¯Î
2008-08-21 11:04:41 UTC
Permalink
­n¬Ýžê®Æªíªº³]­p¬O«çŒËªº, €Î"§A»¡ªº"Š³Šh€Ö"€§©Ò«ü,
·PÁ±zªºšó§U¡C
Šý¡A°²³]¡A
šC­Ó€ë³£­n¬džß·í€ëœæ±Œªº³f«~€€¡AŠ³Šh€Ö¬O·í€ë¶i³fªº¡A
Š³šSŠ³€èªk¥i¥HŠb€£»Ý­n§ó§ï€œŠ¡€º®eªºª¬ªp€U¡Aªœ±µ°µ­pºâ¡H
ÁÂÁÂ
"???" šÓšç¡G
Post by ªá¥Ò¯Î
COUNTIF(A3:A17,">=2008/7/1")-COUNTIF(A3:A17,">=2008/8/1")
·Q§Q¥Î€œŠ¡šÓ­pºâªí®æ€€¡A¬Y­Ó€ë¥÷¥X²{€FŽXŠž
·Q­pºâ¥H€W¥X²{ªº€éŽÁ€€¡A¬O7€ëªºŠ³ŽX­Ó
§ÚžÕ¹L¥Îsum(month(range)=7)
€]žÕ¹L¥Îcountif(range,month(range)=7)
³£šSŠ³¿ìªk
œÐŠUŠì€j€jÀ°Š£Åo¡I
·PÁÂ
ªá¥Ò¯Î
2008-08-21 11:33:05 UTC
Permalink
COUNTIF(A$3:A$12,">="&A4)

Š¹Š¡¥i¯àŠ³±Òµo?
·PÁ±zªºšó§U¡C
Šý¡A°²³]¡A
šC­Ó€ë³£­n¬džß·í€ëœæ±Œªº³f«~€€¡AŠ³Šh€Ö¬O·í€ë¶i³fªº¡A
Š³šSŠ³€èªk¥i¥HŠb€£»Ý­n§ó§ï€œŠ¡€º®eªºª¬ªp€U¡Aªœ±µ°µ­pºâ¡H
ÁÂÁÂ
"???" šÓšç¡G
Post by ªá¥Ò¯Î
COUNTIF(A3:A17,">=2008/7/1")-COUNTIF(A3:A17,">=2008/8/1")
·Q§Q¥Î€œŠ¡šÓ­pºâªí®æ€€¡A¬Y­Ó€ë¥÷¥X²{€FŽXŠž
·Q­pºâ¥H€W¥X²{ªº€éŽÁ€€¡A¬O7€ëªºŠ³ŽX­Ó
§ÚžÕ¹L¥Îsum(month(range)=7)
€]žÕ¹L¥Îcountif(range,month(range)=7)
³£šSŠ³¿ìªk
œÐŠUŠì€j€jÀ°Š£Åo¡I
·PÁÂ
Loading...