# Help with IF AND OR and CONTAINS in formula

marym
✭✭✭✭

I am trying to check a checkbox column if another check box column in the row is checked AND another column in the row contains either of two values. I can't figure out if I should use CONTAINS or OR and how to nest the IF.

something like this.....

IF (AND (checkbox1@row,1), IF(text@row contains "A" or "B"),1)

Tags:

## Answers

## Help Article Resources

#### Categories

- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives

Want to practice working with formulas directly in Smartsheet?

Check out the

Check out the

**Formula Handbook template!**