Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, pleaseVisit the Current Forums.

LOOKUP

Stephanie Taylor
Stephanie Taylor ✭✭✭✭✭✭
编辑07/20/17 inArchived 2017 Posts

Can someone please help? I cannot figure out why this formula is not working.

Fyi..the Current Designation column is column number 2.

LOOKUP.JPG

LOOKUP.JPG

Tags:

Comments

  • Stephanie,

    I think a couple tips will help you out. Your selection for the look up table should include both the look up data columnandthe column with the return values you want in the Results. Also the look up data column must be the left most column of your selected columns.

    Good Luck!

    Shawn

    Community Help.JPG

  • Stephanie Taylor
    Stephanie Taylor ✭✭✭✭✭✭
    编辑07/20/17

    Unless I am misunderstanding you that is how I have the formula set up.

    Never mind, I got it.

    Thanks!

This discussion has been closed.
Hi @Khari Shiver<\/a> <\/p>

Looks like there needs to be a closing bracket for the YEAR function? Maybe try this?<\/p>

=IF(YEAR([Last Hire Date]@row) = \"2024\", (([Proration Date Reference]@row - [Last Hire Date]@row)\/365), \"1\")<\/p>

Note: you don't need the extra brackets around the 'If True' portion. The following should also work:<\/p>

=IF(YEAR([Last Hire Date]@row) = \"2024\", ([Proration Date Reference]@row - [Last Hire Date]@row)\/365, \"1\")<\/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":111618,"type":"question","name":"How to use IF function with AND OR","excerpt":"I am trying to establish a workflow based on the approval of several stakeholders. There are 8 stakeholders (contact column type) and not all will be required to review\/approve. If the stakeholders approve the change the project sponsor will be required to approve. I intend to have a workflow for each stakeholder to…","snippet":"I am trying to establish a workflow based on the approval of several stakeholders. There are 8 stakeholders (contact column type) and not all will be required to review\/approve.…","categoryID":322,"dateInserted":"2023-10-13T02:04:17+00:00","dateUpdated":null,"dateLastComment":"2023-10-13T04:57:08+00:00","insertUserID":168381,"insertUser":{"userID":168381,"name":"deej","title":"engineer","url":"https:\/\/community.smartsheet.com\/profile\/deej","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T04:46:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":168381,"lastUser":{"userID":168381,"name":"deej","title":"engineer","url":"https:\/\/community.smartsheet.com\/profile\/deej","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T04:46:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":19,"score":null,"hot":3394337485,"url":"https:\/\/community.smartsheet.com\/discussion\/111618\/how-to-use-if-function-with-and-or","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111618\/how-to-use-if-function-with-and-or","format":"Rich","lastPost":{"discussionID":111618,"commentID":399817,"name":"Re: How to use IF function with AND OR","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/399817#Comment_399817","dateInserted":"2023-10-13T04:57:08+00:00","insertUserID":168381,"insertUser":{"userID":168381,"name":"deej","title":"engineer","url":"https:\/\/community.smartsheet.com\/profile\/deej","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T04:46:37+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-13T08:17:16+00:00","dateAnswered":"2023-10-13T03:53:17+00:00","acceptedAnswers":[{"commentID":399810,"body":"

Hi @deej<\/a> <\/p>

Looking only at the initial calc, I suspect the closing bracket for the OR function should be between Not Applicable and Approved - like this:<\/p>

=IF(OR([Stakeholder 1 approval]7 = \"Approved\", [Stakeholder 1 approval]7 = \"Not Applicable\"), \"Approved\", \"Declined\")<\/p>"},{"commentID":399817,"body":"

I forgot the comma between )) and \"Approved\" towards the end. <\/p>

=IF(AND(OR([Stakeholder 1 approval]8 = \"Approved\", [Stakeholder 1 approval]8 = \"Not Applicable\"),OR([Stakeholder 2 approval]8 = \"Approved\", [Stakeholder 2 approval]8 = \"Not Applicable\")), \"Approved\", \"Declined\")<\/p>

this seems to work. thanks for your guidance!<\/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":111596,"type":"question","name":"Count If combination of two values occurs multiple times","excerpt":"Hello community, I'm trying to count if or flag when a value repeats in two columns. As you can see below I have the formula for one column but I want to count if both Location and Count Cells Duplicate. In this instance I can see that a combination of 'London (location) 3 (count)' occurs twice... What is the formula for…","snippet":"Hello community, I'm trying to count if or flag when a value repeats in two columns. As you can see below I have the formula for one column but I want to count if both Location…","categoryID":322,"dateInserted":"2023-10-12T18:25:39+00:00","dateUpdated":null,"dateLastComment":"2023-10-13T06:05:25+00:00","insertUserID":143463,"insertUser":{"userID":143463,"name":"Sam Swain","url":"https:\/\/community.smartsheet.com\/profile\/Sam%20Swain","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T08:20:26+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":143463,"lastUser":{"userID":143463,"name":"Sam Swain","url":"https:\/\/community.smartsheet.com\/profile\/Sam%20Swain","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T08:20:26+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":19,"score":null,"hot":3394314064,"url":"https:\/\/community.smartsheet.com\/discussion\/111596\/count-if-combination-of-two-values-occurs-multiple-times","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111596\/count-if-combination-of-two-values-occurs-multiple-times","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":111596,"commentID":399820,"name":"Re: Count If combination of two values occurs multiple times","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/399820#Comment_399820","dateInserted":"2023-10-13T06:05:25+00:00","insertUserID":143463,"insertUser":{"userID":143463,"name":"Sam Swain","url":"https:\/\/community.smartsheet.com\/profile\/Sam%20Swain","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-13T08:20:26+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\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/WQBT6VXDM1UD\/screenshot-2023-10-12-at-19-22-16.png"},"alt":"Screenshot 2023-10-12 at 19.22.16.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-13T08:18:25+00:00","dateAnswered":"2023-10-12T19:07:53+00:00","acceptedAnswers":[{"commentID":399765,"body":"

@Sam Swain<\/a> If you are flagging, try =IF(COUNTIFS(Location:Location, Location@row, Count:Count,Count@row)>1,1,0) in the flag column<\/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":[{"tagID":254,"urlcode":"formulas","name":"Formulas"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&siteSectionID=0&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 Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending Posts