Formula for "HAS" and "CONTAINS"
I am trying to calculate how many hours each person is allocated to each project. We have list of all of the tasks pulled from each plan and I am trying to write a formula to calculate total hours if the project ID is in the sheet name, if the resource assigned is the person @row and if the start date is today + 7 days.
It is returning #INVALID OPERATION
Answers
-
Hi @Mel_Barnes
A couple of questions:
When the Project ID appears in the column you are searching {Resource: All tasks Sheet name}, is it only the Project ID that will be in the cell or is it part of a string of text?
When the Resource Name appears in the column you are searching {Resource: All tasks Assigned to}, is it only one person that is assigned or can it be multiple resources
-
Hi @Gillian C
Project ID is part of a string of text (ie. "Plan SM-123 Project Name"), the assigned to could be either one person or multiple resources.
Many thanks
Mel -
Hi @Mel_Barnes
Try adding the bold text to your formula?
=SUMIFS({Resource: All tasks Hours}, {Resource: All tasks Sheet name},CONTAINS([Project ID]@row, @cell), {Resource: All tasks Assigned to}, HAS(@cell,[Resource Name]@row),{Resource: All tasks Start date}, TODAY() + 7)
-
@Gillian C
It doesn't allow me to bolden specific text in the formula. If I highlight the text and click "bold", it boldens the cell text and still returns #INVALID OPERATION
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!