Dates and Countifs

jwgreen1986

Board Regular
Joined
Mar 8, 2019
Messages
64
Hi, i am trying to produce a spreadsheet that allows me to view how many items someone has sold per month. i am using the below formula but it doesnt seem to be working. if i take the date ranges out then if works but it gives the overall sales the person has had. i basically just want to add the date ranges so i can then show how many they have sold in january.

Sales!H:H is the range in which the sales date information is kept.

=IF(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,"<=31/01/2019")))
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Does it produce 0 as a result? If so then your dates are probably not really dates but text. You can either convert them to true dates or use a sumproduct instead. You can find out by using, for example:

=ISNUMBER(H2)

where H2 contains one of your dates.
 
Upvote 0
yea it is producing 0 as the result. is there any other way around this as the range it is looking in is fed from a different source and continuously updated. it will be a bit tedious if i am to update this every time it updates.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

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