Count cells equal to a value within a date range

margamo

New Member
Joined
Apr 14, 2002
Messages
16
Can some help me with this array formula:
{=SUM(DrugClass="HS051")*(OrderDate>=T4)*(OrderDate<T5)} I want to check for DrugClass equal to HS051 and then check if the OderDate is within a certain date range.

Any help would be greatly appreciated.
Thanks,
margamo :-?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Somehow the formula didn't copy right it should be:
{=SUM(DrugClass="HS051")*(OrderDate>=T4)*(OrderDate
<T5)}
 
Upvote 0
Try clicking the Code button before and after inserting your formula. It's the < sign that is messing it up. I learned this myself recently.
 
Upvote 0
Try checking the "Disable HTML in this post" button.
 
Upvote 0
Hi,

Like this?

If you use SUMPRODUCT you do not need to array enter.
Book1
NOPQRSTU
1
2HS0492005-10-07
3HS0502005-10-08
4HS0512005-10-0922005-10-10
5HS0512005-10-102005-11-10
6HS0512005-10-11
7HS0522005-10-12
8HS0532005-10-13
9HS0542005-10-14
10HS0552005-10-15
11
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,211
Messages
6,177,162
Members
452,762
Latest member
manuha

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