Countifs and date range

jwgreen1986

Board Regular
Joined
Mar 8, 2019
Messages
64
Wondering if someone could look at the formula and help me. You can pretty much ignore everything up until where i am trying to get it to count the values between 2 dates. i know the formula works before i put the data range criteria in.

Basically i had it working up until where Sales!R:R,"New. i now want to change the formula so it adds up the totals when the delivery date (Sales!H:H) is more than or equal 01/01/2019 but less than 01/02/2019. i have also tried manually putting the dates into a field and referencing the formula to these fields to no avail.

=IF(OR(B4=""),"",IF(OR(B4="New",B4="Combined"), COUNTIFS(Sales!Q:Q,"YES",Sales!S:S,A4,Sales!R:R,"New",Sales!H:H,">=01/01/2019",Sales!H:H,"<01/02/2019")))
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Sheet1
Excel Workbook
ABC
1
2
3
4SomeNew3
Sheet
Sheet: Sales
Excel Workbook
AHPQRS
1
2
3
401-eneYESNewSome
502-eneNO
603-eneYESNewSome
704-eneNO
805-eneYESNewSome
906-eneNO
1007-eneYESNewy
1108-eneNO
1209-eneYESxy
1310-eneNO
1411-eneYESxy
Sheet
 
Upvote 0
You have to put the data exactly as they are in the example.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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