Trying to get a formula to analyze 5 columns and update a 6th column based on the results of the 5

Best Answer
-
Its just a big nestled if statement. i.e.
=IF(OR(col1@row="Red",col2@row="Red".......),"Red",IF(OR(countif(col1:col5@row,"Yellow')=1,countif(col1:col5@row,"Yellow')=2),"Yellow",IF(countif(col1:col5@row,"Yellow')>2,"Red",IF(OR(col1@row="",col2@row="".......),"Blue","Green"))))
Something like that. you can sort out the details.
I think there is a problem with your logic though as blue and other catregories are not mutually exclusive. So, when something qualifies as both blue and yellow or red, what colour do you want it to show? If you want it to be blue, you will want IF(OR(col1@row="",col2@row="".......),"Blue" at the start of the formula instead.
Answers
-
Its just a big nestled if statement. i.e.
=IF(OR(col1@row="Red",col2@row="Red".......),"Red",IF(OR(countif(col1:col5@row,"Yellow')=1,countif(col1:col5@row,"Yellow')=2),"Yellow",IF(countif(col1:col5@row,"Yellow')>2,"Red",IF(OR(col1@row="",col2@row="".......),"Blue","Green"))))
Something like that. you can sort out the details.
I think there is a problem with your logic though as blue and other catregories are not mutually exclusive. So, when something qualifies as both blue and yellow or red, what colour do you want it to show? If you want it to be blue, you will want IF(OR(col1@row="",col2@row="".......),"Blue" at the start of the formula instead.
-
Awesome! Thank you so much for your help!
-
Awesome! Thank you so much for your help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 436 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 508 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!