Multiple IFs around Dates
I am trying to create a column formula that says if [Date of Record]@row is less than a specific date (7/14/23) for instance, then return the number 43. If it is between 7/14/23 and 8/22/23 then 46, and so on. Is this possible?
Best Answer
-
SoS | Dan Palenchar ✭✭✭✭✭✭
Hello@Michelle Choate 2!
Yes, use this formula:
=IF([Date of Record]@row < DATE(2023, 7, 14), 43, IF([Date of Record]@row <= DATE(2023, 8, 22), 46))
It looks like this:
You can keep adding IF() statements to this for additional date limits and outputs.
Hope that helps!
___________________________________________________________________________________________
Dan Palenchar |School of Sheets Solutions Consulting| Smartsheet Aligned Gold Partner
If this response helped you please help me & the community by accepting it and reacting as you see fit (insightful, ⬆️ Vote Up, and/or ❤️Awesome).
Smartsheet Consulting Inquiries:schoolofsheets.com/workwithus
▶️ Smartsheet Tutorial Videos:schoolofsheets.com/youtube
PS - If you have a follow up response attention use@Dan Palencharso I get notified of your reply!
Dan Palenchar |School of Sheets Solutions Consulting| Smartsheet Aligned Gold Partner
If this helped, help me & the SSC by accepting and reacting w/ insightful, ⬆️ Vote Up, and/or ❤️Awesome!
- Smartsheet Consulting Inquiries:schoolofsheets.com/workwithus
- ▶️ Smartsheet Tutorial Videos:schoolofsheets.com/youtube
PS - If you have a follow up response tag me@SoS | Dan Palencharso I get notified of your reply!
Answers
-
SoS | Dan Palenchar ✭✭✭✭✭✭
Hello@Michelle Choate 2!
Yes, use this formula:
=IF([Date of Record]@row < DATE(2023, 7, 14), 43, IF([Date of Record]@row <= DATE(2023, 8, 22), 46))
It looks like this:
You can keep adding IF() statements to this for additional date limits and outputs.
Hope that helps!
___________________________________________________________________________________________
Dan Palenchar |School of Sheets Solutions Consulting| Smartsheet Aligned Gold Partner
If this response helped you please help me & the community by accepting it and reacting as you see fit (insightful, ⬆️ Vote Up, and/or ❤️Awesome).
Smartsheet Consulting Inquiries:schoolofsheets.com/workwithus
▶️ Smartsheet Tutorial Videos:schoolofsheets.com/youtube
PS - If you have a follow up response attention use@Dan Palencharso I get notified of your reply!
Dan Palenchar |School of Sheets Solutions Consulting| Smartsheet Aligned Gold Partner
If this helped, help me & the SSC by accepting and reacting w/ insightful, ⬆️ Vote Up, and/or ❤️Awesome!
- Smartsheet Consulting Inquiries:schoolofsheets.com/workwithus
- ▶️ Smartsheet Tutorial Videos:schoolofsheets.com/youtube
PS - If you have a follow up response tag me@SoS | Dan Palencharso I get notified of your reply!
-
Michelle Choate 2 ✭✭✭✭✭
Perfect! Thank you!
Help Article Resources
Categories
I think you are trying to do =IF(AND(CONTAINS(Number@row, {Wave B (EMEA) - L4 Mapping}), CONTAINS(\"Be\", {Wave B (EMEA) - Country x2}), \"True\", \"False\")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":111984,"type":"question","name":"Added TODAY() to a formula that works and get an error","excerpt":"Goal is to have a symbol represent how much newer the forecasted date is to TODAY. Any help would be much appreciated.","snippet":"Goal is to have a symbol represent how much newer the forecasted date is to TODAY. Any help would be much appreciated.","categoryID":322,"dateInserted":"2023-10-20T20:35:04+00:00","dateUpdated":null,"dateLastComment":"2023-10-20T22:41:11+00:00","insertUserID":162896,"insertUser":{"userID":162896,"name":"PR12x3","title":"Senior Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/PR12x3","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-20T23:36:26+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":163506,"lastUser":{"userID":163506,"name":"JamesB","title":"IT Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/JamesB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nEQMY42MFGXWS.png","dateLastActive":"2023-10-20T22:40:43+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":31,"score":null,"hot":3395677575,"url":"https:\/\/community.smartsheet.com\/discussion\/111984\/added-today-to-a-formula-that-works-and-get-an-error","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111984\/added-today-to-a-formula-that-works-and-get-an-error","format":"Rich","lastPost":{"discussionID":111984,"commentID":401050,"name":"Re: Added TODAY() to a formula that works and get an error","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/401050#Comment_401050","dateInserted":"2023-10-20T22:41:11+00:00","insertUserID":163506,"insertUser":{"userID":163506,"name":"JamesB","title":"IT Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/JamesB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nEQMY42MFGXWS.png","dateLastActive":"2023-10-20T22:40:43+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/I1RSSUK7PSEV\/image.png"},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-20T22:38:59+00:00","dateAnswered":"2023-10-20T21:08:05+00:00","acceptedAnswers":[{"commentID":401042,"body":"