Forum Discussion
Anonymous
6 years agoNot applicable
Error for if statement
Hi Guys, So I'm fairly new to this and would like some help over here. For my dataset I created a column Age with randbetween function and values from 10 to 28. So this column is formed correctly. ...
- Anonymous6 years ago
Turns out if and, if and and if works perfectly
Age group = IF(AND('Sheet1 (2)'[Age]>=10,'Sheet1 (2)'[Age]<=12),"Kids") & IF(AND('Sheet1 (2)'[Age]>12,'Sheet1 (2)'[Age]<=19),"Teens")& IF('Sheet1 (2)'[Age]>=20,"Adults")
Anonymous
6 years agoNot applicable
Turns out if and, if and and if works perfectly
Age group = IF(AND('Sheet1 (2)'[Age]>=10,'Sheet1 (2)'[Age]<=12),"Kids") & IF(AND('Sheet1 (2)'[Age]>12,'Sheet1 (2)'[Age]<=19),"Teens")& IF('Sheet1 (2)'[Age]>=20,"Adults")