How to use If and and?
Options
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!