If/Then formula for symbols based on range?
Hello,
I'm collecting responses from multiple departments for the same question. I've added the question to a parent row, and each department is a child row below it. Status is a ball symbol...red=issue, yellow=in progress, and green=complete...and every row has a symbol.
I'd like to create a formula on the parent row based on the child rows. So, if any child row has a red ball, the parent row will have a red ball. If child rows have no red but at least one yellow, the parent row will have a yellow status. And finally, the parent row will only show green status if ALL child rows are green.
I'm not sure where to even start with this formula! Any help is appreciated :)
Thank you!
Best Answer
-
You're welcome! I'm glad I could help ๐
Need more information? ๐ | Help and Learning Center
ใใใซใกใฏ (Konnichiwa), Hallo, Hola, Bonjour, Olรก, Ciao!๐ | Global Discussions
Answers
-
Hi @Dana G
You can use the CHILDREN function to COUNT how many of the Child rows have a certain colour, then display the correct colour in the Parent row. Try something like this:
=IF(COUNTIF(CHILDREN(), "Red") >= 1, "Red", IF(COUNTIF(CHILDREN(), "Yellow") >= 1, "Yellow", "Green"))
See: COUNTIF Function / CHILDREN Function / IF Function
Cheers,
Genevieve
Need more information? ๐ | Help and Learning Center
ใใใซใกใฏ (Konnichiwa), Hallo, Hola, Bonjour, Olรก, Ciao!๐ | Global Discussions
-
Thank you @Genevieve P. ! This formula is so elegant :) it worked perfectly.
-
You're welcome! I'm glad I could help ๐
Need more information? ๐ | Help and Learning Center
ใใใซใกใฏ (Konnichiwa), Hallo, Hola, Bonjour, Olรก, Ciao!๐ | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!