Can Smartsheet do an "if" "then"
Example would be I have two columns. I'm trying to populate column 2 based on the value of column 1 as follows:
if the value in column1 is $75,000 - 250,000 then populate column 1 with $2500
if the value in column1 is $251,000 - $1,000,000 then populate column 1 with $5000
if the value in column1 is $1,000,000 or above then populate column 1 with $10000
Can this be done in smartsheet?
Best Answer
-
You got an extra "@row" here: [Estimated New Annual (ACV) Net Booking $ Amount]@row)
@rowan.bradley@rowThis should work now:
=IF(AND([Estimated New Annual (ACV) Net Booking $ Amount]@row >=75000,[Estimated New Annual (ACV) Net Booking $ Amount]@row<=250000), "$2500", IF(AND([Estimated New Annual (ACV) Net Booking $ Amount]@row>= 251000,[Estimated New Annual (ACV) Net Booking $ Amount]@row < 1000000), "$5000", IF([Estimated New Annual (ACV) Net Booking $ Amount]@row>=100000, "$10000")))
Answers
-
Yes, it could be done in smartsheet, please see below formula
=IF(AND([Column1]@row >= 75000, [Column1]@row <= 250000), "$2500", IF(AND([Column1]@row >= 251000, [Column1]@row < 1000000), "$5000", IF([Column1]@row >= 100000, "$10000")))
-
@Christina Lam I tried it and it didn't work, can't find the error in the formula:
=IF(AND([Estimated New Annual (ACV) Net Booking $ Amount]@row)@row>=75000,[Estimated New Annual (ACV) Net Booking $ Amount]@row<=250000), "$2500",if(and([Estimated New Annual (ACV) Net Booking $ Amount]@row>= 251000,[Estimated New Annual (ACV) Net Booking $ Amount]@row < 1000000), "$5000",if([Estimated New Annual (ACV) Net Booking $ Amount]@row>=100000, "$10000")))
-
You got an extra "@row" here: [Estimated New Annual (ACV) Net Booking $ Amount]@row)
@rowan.bradley@rowThis should work now:
=IF(AND([Estimated New Annual (ACV) Net Booking $ Amount]@row >=75000,[Estimated New Annual (ACV) Net Booking $ Amount]@row<=250000), "$2500", IF(AND([Estimated New Annual (ACV) Net Booking $ Amount]@row>= 251000,[Estimated New Annual (ACV) Net Booking $ Amount]@row < 1000000), "$5000", IF([Estimated New Annual (ACV) Net Booking $ Amount]@row>=100000, "$10000")))
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!