SUMIF(S), AND, IF, Checkbox formula functions
Hi brainstrust,
I am trying to build a resource conflict formula(s) that deliver the end results of:
- If a project row has overlapping dates AND has the same resource type(s) selected (different columns with check boxes) as the date-conflict project rows, return a "conflict" result.
- AND If a project has a resource type(s) selected, sum the [resource allocation] rows that also have that resource type selected. And if the total of that sum highlight those rows as a conflict.
For column set up - Image 1
Some formulas I have played with:
(Found through Smartsheet Community and adapted)
=IF((ISBLANK([Project Manager.]@row)), 0, IF(COUNTIFS([Project Manager.]:[Project Manager.], @cell = [Project Manager.]@row, [Estimated Start Date]:[Estimated Start Date], @cell <= [Estimated Completion Date]@row, [Estimated Completion Date]:[Estimated Completion Date], @cell >= [Estimated Start Date]@row) > 1, JOIN([Project Manager.]@row)))
- this formula works by itself.
=IF([Project Manager.]@row = 1, SUMIF([Project Manager.]@row = 1, [resource allocation]:[resource allocation]), "No Conflict")
- Image 2, getting the result of "0", when it should be returning "1.6"
Any suggestions would be appreciated!
Answers
-
Image 2
-
Hi
This part of your formula is the problem.
=SUMIF([Project Manager.]@row = 1, [resource allocation]:[resource allocation])
SUMIF needs a range, followed by a comma, then a criteria, then an optional range to count (with a preceding comma).
Instead of the =1 you need a comma to separate the range and the criteria.
Instead of [Project Manager.]@row you need to reference the entire column in your range.
Try this:
=IF([Project Manager.]@row = 1, SUMIF([Project Manager.]:[Project Manager.], 1, [resource allocation]:[resource allocation]), "No Conflict")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!