Suppose in A1:A10 some dates are there and in B1:B10 I am having some receipt number. I want to count all the receipt numbers for today's date in A1:A10.

Can anybody help me?

有帮助吗?

解决方案 2

try this:

=SUMPRODUCT((A1:A10=TODAY())*(B1:B10<>""))

or, if your receipts column can't contain empty cells, just

=SUMPRODUCT((A1:A10=TODAY())*1)

UPD:

how should i use a start date and a end date in the same formula

=SUMPRODUCT((A1:A10>= DATE(2014,2,1))*(A1:A10<= DATE(2014,2,28))*(B1:B10<>""))

其他提示

The following might suit:

=COUNTIF(A:A,TODAY())  

judging by a subsequent comment, named ranges are being used and allowance required for dates without receipts, so maybe:

=COUNTIFS(date,TODAY(),QID,"<>")
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top