SUMIFS + CONTAINS Formula help.
Hi there!
I am trying to figure out how many projects start in the current month for a designated department.
This formula works: =COUNTIFS(Department:Department, "Marketing", Start:Start, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
However, I tried to apply it to a new sheet where the department is a multiple drop down and more than one department can be selected per project. It's only picking up the cells that JUST have the "Marketing" department.
I tried to use CONTAINS and came up with this, but its not working:
=COUNTIFS(Department:Department, "Marketing", (CONTAINS("Marketing")) Start:Start, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
Any suggestions?
Thank you!
Answers
-
=COUNTIFS(Department:Department, CONTAINS("Marketing",@cell) Start:Start, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
Give that a try.
-
Missed a comma between the CONTAINS and the next range.
=COUNTIFS(Department:Department, CONTAINS("Marketing", @cell), Start:Start, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
-
@Paul Newcome Whoops. Good callout thanks
-
Haha. No worries. Sometimes I think commas are more problematic than parenthesis.
-
Hi - I'm struggling to get something similar to work so looking for advice.
I would like to total the number of days allocated to each resource in my project plan to see what overhead I have. The "Assigned To" column has multiple contacts...
SUMIF(ASSIGNED:ASSIGNED, CONTACT NAME,DURATION:DURATION) works if there is only one contact name in the column.
Tried SUMIF(ASSIGNED:ASSIGNED, CONTAINS(CONTACT NAME,@CELL),DURATION:DURATION) but it just returns 0.
-
Hi @Tony Hope
Try this:
SUMIF(ASSIGNED:ASSIGNED, HAS(@cell, "Contact Name"), DURATION:DURATION)
The HAS function was specifically designed for multi-select lists to see if the cell HAS a certain value.
Keep in mind that the "Contact Name" will need to be exactly how your contact is spelled. If this doesn't work, it would be helpful to see a screen capture of your sheet, and an exact copy/paste of how you're inputting the formula.
Thanks!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Hello,
I am trying to do sum if collect but with more than one set of criteria.
=SUMIF(Month:Month, CONTAINS("January", @cell, "February", @cell, "March" @cell), [Number of Visitors]:[Number of Visitors])
I was able to do it with just January, but not the other two months.
Any suggestions?
Thank you!
-
=SUMIF(Month:Month, or(CONTAINS("January", @cell),contains("February", @cell),contains("March" @cell)), [Number of Visitors]:[Number of Visitors])
-
@L@123
Thank you! I got it to work:)
-
@L@123 Thanks for filling in. My workload has increased to an absurd amount, and I haven't had tie to hang out here as much as I used to.
-
Yeah I've taken on a new job so I haven't been on much either. Been on here less than once/week. Only checked this one cause I got the alert.
-
@L@123 That's pretty much where I am now. Only checking alerts and not able to help with the more complicated solutions. If it is going to take more than a few minutes I have to let it sit for a while until I can work on it more.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!