Count If from Roll Up
Hi all,
I am trying to count the number of occurrences of certain keywords from a sheet column into a rollup. I cannot seem to get the formulas right. Error coming up as #UNPARSEABLE
Keyword "HHS", Sheet Name "25", Column Name "Funding Agency"
=COUNTIF({25 Range 1}[Funding Agency]:[Funding Agency], "HHS")
A little additional context, the agency acronym is usually embedded in the larger block of text within the column --> National Institute of Environmental Health Sciences (HHS - NIH)
Thanks in advance for your help!
Best Answers
-
Yes what you define as a variable the formula will use it to count. for your sample the formula will be:
=COUNTIFS({25 Range 1}, @cell = "National Institute of Environmental Health Sciences")
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
@Bassam Khalil Thank you! You helped me understand the larger picture.
Here is the formula that resulted for this use case: =COUNTIFS({25 Range 1}, CONTAINS("HHS", @cell))
Answers
-
Hi @Virginian
Hope you are fine, if you try to count in the same sheet then the formula will be:
=COUNTIFS([Funding Agency]:[Funding Agency], @cell = "HHS")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Hi @Virginian
If you try to make cross sheet formula then the formula will be:
=COUNTIFS({25 Range 1}, @cell = "HHS")
{25 Range 1} is the range of Funding Agency of the data sheet.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
@Bassam Khalil - thanks for your help! The formula appears to execute now, however, it is just showing 0 for all values. Does it matter the agency acronym is usually embedded in a larger block of text within the column -->Example: National Institute of Environmental Health Sciences (HHS - NIH)
-
Also clarifying the formula provided does work if I provide the full name, like listed in the above example. So it must need to parse it to isolate "HHS"?
-
Yes what you define as a variable the formula will use it to count. for your sample the formula will be:
=COUNTIFS({25 Range 1}, @cell = "National Institute of Environmental Health Sciences")
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
@Bassam Khalil Thank you! You helped me understand the larger picture.
Here is the formula that resulted for this use case: =COUNTIFS({25 Range 1}, CONTAINS("HHS", @cell))
-
Excellent, i will be happy to help you any time.and I will be grateful for your "Vote Up" or "Insightful"
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!