Apply Date parameter in different rows

Hello,

I need to use the same date in different rows but using a formule.

I built a sheet named "Meses" with the dates like below:

image.png

to use the same dates in different rows instead of changing by hand. However it is not working because it is returning 0 in the formule below (for example):

=SUMIFS({Project_Product Release Roadmap Intervalo 11}; {Project_Product Release Roadmap Intervalo 2}; Resource318; {Project_Product Release Roadmap Intervalo 3}; {Meses Intervalo 3}; {Project_Product Release Roadmap Intervalo 3}; {Meses Intervalo 4})


If I use the dates inside works perfectly:

=SUMIFS({Project_Product Release Roadmap Intervalo 11}; {Project_Product Release Roadmap Intervalo 2}; Recurso318; {Project_Product Release Roadmap Intervalo 3}; >=DATE(2020; 10; 1); {Project_Product Release Roadmap Intervalo 3}; <=DATE(2020; 10; 2))

Could you help me?

thank you

Best Answers

Answers

  • M Underbrink
    M Underbrink ✭✭✭✭✭

    If you pull the range into a DATE() formula in your equation, would that work?

    DATE({Meses Intervalo 3})

  • Hello,

    Thank you for the answer.

    Did not work. Appears the error below:


    image.png


  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@Angela Formiga

    You will need to reference a specific criteria after each {range}, instead of referencing an entire column after a range... this is why you're getting an error with your first formula but not with your second.

    How is this formula being used in your destination sheet? Could you have specific dates listed in aDate Columnin this sheet, and use that as your reference?

    EX:

    =SUMIFS({Project_Product Release Roadmap Intervalo 11}; {Project_Product Release Roadmap Intervalo 2}; Recurso318; {Project_Product Release Roadmap Intervalo 3}; >=[Date Column]$1; {Project_Product Release Roadmap Intervalo 3}; <=>=[Date Column]$2)

    ^Here I would have your two dates in rowsone ($1)andtwo ($2).Would that work for you? If not, it would be helpful to see a full screen capture of both sheets (but please block out any sensitive data), with an explanation as to what each of your cross-sheet references are referring to.

    Cheers,

    Genevieve

  • Hello@Genevieve P


    Thank you for the feedback. I tried what you say and did not work.

    Returned the error Incorrect Argument SET"

    My date columns are:

    image.png


    Maybe it is the format?

  • Hello@Genevieve P,


    It is exactly that and worked perfectly :)


    Thank you very much for the help. It was a big help.

Help Article Resources

想实践工作直接与公式Smartsheet?

Check out the公式手册模板!
Try this:<\/p>

=COUNTIFS(Status:Status, =\"Full\", [Media Type]:[Media Type], OR(@cell = \"Press Release\", @cell = \"News Release on CHA.com\")<\/strong>, [Completion Date]:[Completion Date],<\/p><\/div><\/div>


<\/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":["discussion","question"]},"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":112389,"type":"question","name":"Formula to create \"all that apply\" for Knowledge Check Form","excerpt":"Hello Community, I am currently creating a knowledge check and was wondering if there was a formula to create an \"all that apply\" type of question. For example: 5. What is on the customer experience call flow? Smile Engage Trust Own Listen This is my broken formula: =IF(CONTAINS((\"Trust\", \"Smile\", “Own”), [5. What is on…","snippet":"Hello Community, I am currently creating a knowledge check and was wondering if there was a formula to create an \"all that apply\" type of question. For example: 5. What is on the…","categoryID":322,"dateInserted":"2023-10-31T17:20:52+00:00","dateUpdated":null,"dateLastComment":"2023-10-31T18:17:19+00:00","insertUserID":169329,"insertUser":{"userID":169329,"name":"Michael_Selfe","title":"Just looking to learn","url":"https:\/\/community.smartsheet.com\/profile\/Michael_Selfe","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-31T18:49:43+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":165153,"lastUser":{"userID":165153,"name":"DKazatsky2","url":"https:\/\/community.smartsheet.com\/profile\/DKazatsky2","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-11-01T03:53:52+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":27,"score":null,"hot":3397550291,"url":"https:\/\/community.smartsheet.com\/discussion\/112389\/formula-to-create-all-that-apply-for-knowledge-check-form","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/112389\/formula-to-create-all-that-apply-for-knowledge-check-form","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":112389,"commentID":402434,"name":"Re: Formula to create \"all that apply\" for Knowledge Check Form","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/402434#Comment_402434","dateInserted":"2023-10-31T18:17:19+00:00","insertUserID":165153,"insertUser":{"userID":165153,"name":"DKazatsky2","url":"https:\/\/community.smartsheet.com\/profile\/DKazatsky2","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-11-01T03:53:52+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,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-31T18:49:41+00:00","dateAnswered":"2023-10-31T18:17:19+00:00","acceptedAnswers":[{"commentID":402434,"body":"

Hi @Michael_Selfe<\/a> ,<\/p>

Try something like this.<\/p>

=IF(COUNTM([5. What is on the customer experience call flow?]@row) = 3, IF(AND(HAS([5. What is on the customer experience call flow?]@row, \"Trust\"), HAS([5. What is on the customer experience call flow?]@row, \"Smile\"), HAS([5. What is on the customer experience call flow?]@row, \"Own\")), \"Correct\", \"Wrong\"))<\/p>

This assumes you wanted all 3 items to be checked.<\/p>

Hope this helps,<\/p>

Dave<\/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":["discussion","question"]},"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":[{"tagID":254,"urlcode":"formulas","name":"Formulas"}]},{"discussionID":112379,"type":"question","name":"IF, AND, and OR equation","excerpt":"Hello. I am trying to make an IF, AND equation with one of the constituents in the AND equation to have an OR function. The equation would go for the \"Amount paid\" column. The constituents would be \"# of pets\", \"Talent\" and \"Time\". The \"Amount paid\" would be $125 if # of pets=1, Talent= External OR Rescue and Time=Half.…","snippet":"Hello. I am trying to make an IF, AND equation with one of the constituents in the AND equation to have an OR function. The equation would go for the \"Amount paid\" column. The…","categoryID":322,"dateInserted":"2023-10-31T15:48:15+00:00","dateUpdated":null,"dateLastComment":"2023-10-31T16:58:36+00:00","insertUserID":166827,"insertUser":{"userID":166827,"name":"mpajuelo","url":"https:\/\/community.smartsheet.com\/profile\/mpajuelo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-31T19:24:08+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":166827,"lastUser":{"userID":166827,"name":"mpajuelo","url":"https:\/\/community.smartsheet.com\/profile\/mpajuelo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-31T19:24:08+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":24,"score":null,"hot":3397540011,"url":"https:\/\/community.smartsheet.com\/discussion\/112379\/if-and-and-or-equation","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/112379\/if-and-and-or-equation","format":"Rich","lastPost":{"discussionID":112379,"commentID":402414,"name":"Re: IF, AND, and OR equation","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/402414#Comment_402414","dateInserted":"2023-10-31T16:58:36+00:00","insertUserID":166827,"insertUser":{"userID":166827,"name":"mpajuelo","url":"https:\/\/community.smartsheet.com\/profile\/mpajuelo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-31T19:24:08+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\/UR7CB4IY38ET\/image.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/UR7CB4IY38ET\/image.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/UR7CB4IY38ET\/image.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/UR7CB4IY38ET\/image.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/UR7CB4IY38ET\/image.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/UR7CB4IY38ET\/image.png"},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-31T18:27:39+00:00","dateAnswered":"2023-10-31T16:30:04+00:00","acceptedAnswers":[{"commentID":402406,"body":"

@mpajuelo<\/a> Try this instead: =IF(AND(AND(OR(Talent@row = \"External\", Talent@row = \"Rescue\"), [# of pets]@row = 1), Time@row = \"Half\"), \"125\", \"//www.santa-greenland.com/community/discussion/71906/\")<\/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":["discussion","question"]},"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":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions