If column does not contain string return N/A

Ann11
Ann11 ✭✭
edited 06/17/22 in Formulas and Functions

Hi,

I've created a formula to return me the average "word" that appears when the Title column contains the string "1. Establish Baseline for Web Performance":

=IF(AND(COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "High-3", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Medium-2", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Low-1", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance")), "Extreme-4", IF(AND(COUNTIF(Rating:Rating, "High-3") >= COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "High-3", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Medium-2", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "High-3", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Low-1", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance")), "High-3", IF(AND(COUNTIF(Rating:Rating, "Medium-2") >= COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Medium-2", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "High-3", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Medium-2", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Low-1", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance")), "Medium-2", IF(AND(COUNTIF(Rating:Rating, "Low-1") >= COUNTIFS(Rating:Rating, "Extreme-4", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Low-1", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "High-3", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance"), COUNTIFS(Rating:Rating, "Low-1", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance") >= COUNTIFS(Rating:Rating, "Medium-2", Status:Status, "Open", Title:Title, "1. Establish Baseline for Web Performance")), "Low-1"))))


However, if the title column does not contain the string "1. Establish Baseline for Web Performance", how can I get the result to return to me N/A?

E.g in here:


Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!