SUMIFS with Date Range and multiple Contains Criteria
I am trying to write a SUMIFS formula with date range criteria and multiple contains criteria.
Data is pulled from a Sales Pipeline Data Sheet. The formula below would result in the sum of Order Total for those projects that have a Status of "planning" or 'bidding" AND have a Projected Invoice Date between 12/01/2021 and 12/31/2021.
Feels like I'm close but am getting an error.
=SUMIFS({Sales Pipeline Data Sheet Range 1}, {Sales Pipeline Data Sheet Range 2}, AND(CONTAINS("planning", @cell), {Sales Pipeline Data Sheet Range 2}, CONTAINS("bidding", @cell)), {Sales Pipeline Data Sheet Range 3}, AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021)))
Sales Pipeline Data Sheet Range 1 = Order Total
Sales Pipeline Data Sheet Range 2 = Status
Sales Pipeline Data Sheet Range 3 = Projected Invoice Date
Thank you!
Best Answer
-
Try this...
=SUMIFS({Sales Pipeline Data Sheet Range 1}, {Sales Pipeline Data Sheet Range 2}, OR(CONTAINS("planning", @cell), CONTAINS("bidding", @cell)), {Sales Pipeline Data Sheet Range 3}, AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021)))
Answers
-
Try this...
=SUMIFS({Sales Pipeline Data Sheet Range 1}, {Sales Pipeline Data Sheet Range 2}, OR(CONTAINS("planning", @cell), CONTAINS("bidding", @cell)), {Sales Pipeline Data Sheet Range 3}, AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021)))
-
Paul, that did it! As always, I appreciate your help!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.1K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!