Count month orders by costumer

Hi.
I'm trying to figure out how to count the number of orders on a spreadsheet based on date.
The table has more or less this structure, although with a lot more fields.
What I want it to do is to count on a separate sheet the amount of orders of the current month, what I have planned is something like this:
- A current date cell with the today formula, so that the value updates daily ->TODAY().
- A month cell that looks up the month based on the current date cell I mentioned before.
Below,
- A list of the costumers.
- The number of orders placed on the current month.
The problem is, I've been trying to do it through formulas and the results haven't been what I expected, like this one that ends up counting the amount of days in which the costumer has placed orders.
=COUNTIFS({Dates}; <TODAY(-30); {CostName}; [Costumer Name]1)
Any help will be appreciated.
Answers
-
Try something like this...
=COUNTIFS({Other Sheet Date Column}, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()), {Other Sheet Customer Name Column}, [Customer Name]@row)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!