Nested IF Function with Dates?

queens123

New Member
Joined
Jul 26, 2011
Messages
5
I've been looking at lots of forums and there seems to be a number of ways to tackle this problem, but none seem to be helping. My database looks something like this --->
----1--------2-------- 3
A Course ---Start Date ---Status
B PLH03---- 2010-04-02 ---Complete
C CPR1----- 2010-04-06 ---Complete
D CPR1 -----2010-05-01 ---Canceled
E CPR2 -----2010-04-12 ---Canceled

And it goes on and on...

Couple of questions -
How would I go about writing a formula to calculate the number of Courses that start in April 2010 and that have been Completed?

Also what formula would let me find the total number of CPR1 courses that start in April?

Any sort of help would be appreciated since I'm about to toss my computer across the room
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try

=SUMPRODUCT(--(MONTH(B2:B5)=4),--(E2:E5="Complete"))

and

=SUMPRODUCT(--(MONTH(B2:B5)=4),--(A2:A5="CPR1"))
 
Upvote 0
Works like a charm, many thanks VoG.

Now what if I wanted to extend it so that I could find the number of completed CPR1 Courses for the month of April?
 
Upvote 0
Try like this

=SUMPRODUCT(--(MONTH(B2:B5)=4),--(A2:A5="CPR1"),--(E2:E5="Complete"))
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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