Do not laugh at my formula! Countif question.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
Hi Tom,


sumproduct is what you need:
Book4.xls
ABCDE
130-Aug-02NewSystem31/08/2002
202-Sep-02NewSystem4/09/2002
303-Sep-02ThirdPartyRepairCounts
404-Sep-02NewSystemWarrentyRepair1
504-Sep-02UpgradeNewSystem2
604-Sep-02WarrentyRepairThirdPartyRepair1
706-Sep-02NewSystemUpgrade1
8
9
10
Sheet2



Paddy
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Let A1:B8 house the sample, D1 the start date, and D2 the end date.

Create a unique list from B1:B8 using Advanced Filter in E fro E1 on.

In F2 enter & copy down:

=SUMPRODUCT(($A$2:$A$8>=$D$1)*($A$2:$A$8<=$D$2)*($B$2:$B$8=E2))
aaMultCondCount TsTom.xls
ABCDEF
1DateItem31-Aug-02ItemCount
230-Aug-02NewSystem04-Sep-02NewSystem2
302-Sep-02NewSystemThirdPartyRepair1
403-Sep-02ThirdPartyRepairUpgrade1
504-Sep-02NewSystemWarrantyRepair1
604-Sep-02Upgrade
704-Sep-02WarrantyRepair
806-Sep-02NewSystem
Sheet1


Aladin
 
Upvote 0
Tom,

OT
"Do not laugh at my formula! Countif question."

Why should we laugh?

What I found out in this context is that
there exist no stupid questions but stupid answers to relevant questions :)

Kind regards,
Dennis
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top