Looking for Formula where count of distinct PO #s in a given PO month
I'm looking for a formula, where need count of unique PO # falls in a month. In this formula, I used specefic PO # i.,e "123" but I need count of all PO # falls in a given month (See the screen shot attached)
=COUNTIFS([PO Date]:[PO Date], IFERROR(MONTH(@cell), 0) = MONTH(Date12), [PO Date]:[PO Date], IFERROR(YEAR(@cell), 0) = YEAR(Date12), [PO #]:[PO #], "123")
Kindly help me out on this.
Best Answer
-
You would use something like this:
=COUNT(DISTINCT(COLLECT([PO #]:[PO #], [PO Date]:[PO Date], AND(IFERROR(MONTH(@cell), 0) = MONTH(Date@row), IFERROR(YEAR(@cell), 0) = YEAR(Date@row)))))
Answers
-
You would use something like this:
=COUNT(DISTINCT(COLLECT([PO #]:[PO #], [PO Date]:[PO Date], AND(IFERROR(MONTH(@cell), 0) = MONTH(Date@row), IFERROR(YEAR(@cell), 0) = YEAR(Date@row)))))
-
Great! You are genious. Thank you Paul.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!