How to use If and and?
PeggyLang
✭✭✭✭✭✭
I have 3 columns A, B, C
I need to write a formula that will return Column C based on the values of Column A and Column B.
If Column B=3 AND Column A is between 3.5 & 4.4 then return 4
If Column B=2 AND Column A is between 3 & 3.4 then return 3
If Column B=2 AND Column A is between 3.5 & 4.4 then return 3
I am able to write a formula for =, <, >,however, I am unable to include for between a range.
Ideas?
Tags:
Answers

Try this:
=IF(AND([Column B]@row = 3, [Column A]@row>= 3.5, [Column A]@row<= 4.4), 4, IF([Column B]@row = 2, IF(OR(AND([Column A]@row>= 3, [Column A]@row<= 3.4), AND([Column A]@row>= 3.5, [Column A]@row<= 4.4)), 3))
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 63.8K Get Help
 410 Global Discussions
 219 Industry Talk
 457 Announcements
 4.7K Ideas & Feature Requests
 143 Brandfolder
 136 Just for fun
 57 Community Job Board
 459 Show & Tell
 31 Member Spotlight
 1 SmartStories
 298 Events
 37 Webinars
 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!