IF statement issue, can seem to get it to work
I can do it in Excel but cant seem to get it right in Smartsheet.
I need to categorize for an age analysis - Current, 30 days, 60 days, 90 days etc.
=if(([Aging Days]@row>30,"Current"),if([Aging Days]@row>30<60,"30 Days"),if([Aging Days]@row>60<90,"60 Days"),if([Aging Days]@row>90<120,"90 Days"),if([Aging Days]@row>120<150,"120 Days"),if([Aging Days]@row>150<180,"150 Days"),if([Aging Days]@row>180,"180 Days"))
Please help, it works if I do one argument.
Answers
-
Try this...
=IF([Aging Days]@row > 180, "180 Days", IF([Aging Days]@row > 150, "150 Days", IF([Aging Days]@row > 120, "120 Days", IF([Aging Days]@row > 90, "90 Days", IF([Aging Days]@row > 60, "60 Days", IF([Aging Days]@row > 30, "30 Days", "Current"))))))
-
Thanks @Paul Newcome I managed to get it right.
=IF([Ageing days]@row < 30, "Current", IF([Ageing days]@row < 60, "30 Days", IF([Ageing days]@row < 90, "60 Days", IF([Ageing days]@row < 120, "90 Days", IF([Ageing days]@row < 150, "120 Days", IF([Ageing days]@row < 150, "150 Days", "180 Days"))))))
-
Yup. There you go. Same concept but in reverse order. Hahaha.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!