Formula for totaling 2 selections from a drop down in sheet summary
Best Answer
-
Hey @KHoward,
If you're only wanting to count cells that contain both those items, then you'll want to use COUNTIF, AND, CONTAINS in the sheet summary formula:
=COUNTIF(Dropdown:Dropdown, AND(CONTAINS("Learning Solutions", @cell), CONTAINS("Instructional Design", @cell)))
If you want to count cells that have either one of them, just change the AND to OR.
Hope this helps!
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
Answers
-
Hey @KHoward,
If you're only wanting to count cells that contain both those items, then you'll want to use COUNTIF, AND, CONTAINS in the sheet summary formula:
=COUNTIF(Dropdown:Dropdown, AND(CONTAINS("Learning Solutions", @cell), CONTAINS("Instructional Design", @cell)))
If you want to count cells that have either one of them, just change the AND to OR.
Hope this helps!
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
-
@bisaacs Thank you, that did the trick. I needed the OR.
-
@bisaacs I was trying to use this formula for my sheet summary formula and it isn't quite working. Will you take a peek please?
=COUNTIF(CAH STATUS:CAH STATUS, OR CONTAINS("YES READY", @CELL), CONTAINS("YES READY NO SHIELDS DUE TO CREDIT HOLDS", @cell)))
I get #PUNPARSEABLE error
-
@Melanie PLU Hey Melanie!
Looks like you missed a couple things to ensure it works:
- Any column names with spaces must have brackets encasing them in a formula:
[CAH STATUS]:[CAH STATUS]
- When using the OR function, you need to use parenthesis around the different expressions you want to use:
OR(CONTAINS(….), CONTAINS(…))
- For the 2nd CONTAINS statement, you only should need to put "NO SHIELDS DUE TO CREDIT HOLDS", since the first contains already is accounting for "YES READY"
Hope this helps!!
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
- Any column names with spaces must have brackets encasing them in a formula:
-
So sorry, I forgot to include the formula that worked for me @Melanie PLU:
=COUNTIF([CAH STATUS]:[CAH STATUS], OR(CONTAINS("YES READY", @cell), CONTAINS("NO SHIELDS DUE TO CREDIT HOLDS", @cell)))
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!