Link in assignment with a lookup that is between two dates

Billy Rock
Billy Rock ✭✭✭✭
edited 10/26/20 inFormulas and Functions

We have scheduled out assignments of who has priority for some planes our company uses. This is assigned at the beginning of each week (Monday to Sunday). I want to link in the assignments from our scheduling smartsheet into our tracking sheet that we use for when a plane is in use. This will be used for our tracking in 2021, so I have put in a stock date of 01/05/21 for now.


So, based on the name of the plane, I want to bring in who has the assignment into our "assigned to" column on our tracking sheet. Hopefully some screenshots help. The circled area is where I want the assignment to go into.

Plane Booking.PNG
Tracking.PNG

Thank you for your time

Tags:

Answers

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@Billy Rock

    From what I can see, it sounds like you're looking to pull in the name from the Assigned To column, with the criteria of the Plane Name & the Date.

    To pull in the Assigned To name you can usean INDEX(COLLECTformula, usingcross-sheet referencesinto your source sheet.Try something like this:

    =INDEX(COLLECT({Assigned To}, {Plane Name}, [Task Name]@row, {Start Date}, Date@row))


    This assumes that the date in your Tracking sheet will be input as the Start Date for that week.

    If that date in your Tracking sheet will be somewhere in the range between your start and end dates, then you can try something like the following:


    =INDEX(COLLECT({Assigned To}, {Plane Name}, [Task Name]@row, {Start Date}, <=Date@row, {End Date}, >=Date@row))


    Let me know if this works for you, or if I've misunderstood what you're looking to do!

    Cheers,

    Genevieve

  • Mary_A
    Mary_A ✭✭✭✭✭✭

    @Billy RockYou could also take a Plan and Assignments approach. This approach assumes you have N number of plans. Each plan has a multiple plane assignments you want to track.

    image.png

    Each plan sheet has a format that includes aReport oncolumn.

    image.png

    Then, you create a report to list just on Falcon assignments.

    image.png

    You could also do report that lists all assignments irregardless of the type of plane;

    image.png

    Finally, if you wanted a bonus functionality you can also make assignments from the report without going to the plans.

    image.png

    This gives you the added ability to see across plans when assignments are in conflict.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the公式手册模板!
I understand what you are attempting to do, but I am not 100% confident that I interpreted which references belong to which sheet in the formula. Try this and see if it works:<\/p>

=COUNTIFS({Polaris minus CSC Creator}, =Creator@row, {Polaris minus CSC Date}, >=DATE(2022, 1, 1), {Polaris minus CSC Date}, <=DATE(2022, 12, 31)) + COUNTIFS(({Polaris CSC Range 2}, =Creator@row, {Polaris CSC Open}, >=DATE(2022, 1, 1), {Polaris CSC Open}, <=DATE(2022, 12, 31))<\/p>

The general concept here is to break your formula up into two different COUNTIFS statements. The first half of your formula seems to be exactly right. You should then essentially write the same formula for the second sheet and add the results of those two statements together.<\/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":111021,"type":"question","name":"Using COUNTIFS to count number of occurrences within two different sheets = UNPARSEABLE","excerpt":"Hello - This is my first time using this community. I am trying count across two sheets to count the number of times a name is present in a column. They could be contained in both or just one sheet. My formula is continually wrong and from experience I know that it is likely something little that I am missing. Here is the…","snippet":"Hello - This is my first time using this community. I am trying count across two sheets to count the number of times a name is present in a column. They could be contained in both…","categoryID":322,"dateInserted":"2023-09-29T22:39:36+00:00","dateUpdated":null,"dateLastComment":"2023-10-02T13:47:16+00:00","insertUserID":167773,"insertUser":{"userID":167773,"name":"Michele R","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Michele%20R","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!jY_1I-0k0nM!wmGyv1sRsn0!t7pDp0ylDku","dateLastActive":"2023-10-02T14:23:13+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":167773,"lastUser":{"userID":167773,"name":"Michele R","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Michele%20R","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!jY_1I-0k0nM!wmGyv1sRsn0!t7pDp0ylDku","dateLastActive":"2023-10-02T14:23:13+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":30,"score":null,"hot":3392284612,"url":"https:\/\/community.smartsheet.com\/discussion\/111021\/using-countifs-to-count-number-of-occurrences-within-two-different-sheets-unparseable","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111021\/using-countifs-to-count-number-of-occurrences-within-two-different-sheets-unparseable","format":"Rich","lastPost":{"discussionID":111021,"commentID":397839,"name":"Re: Using COUNTIFS to count number of occurrences within two different sheets = UNPARSEABLE","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/397839#Comment_397839","dateInserted":"2023-10-02T13:47:16+00:00","insertUserID":167773,"insertUser":{"userID":167773,"name":"Michele R","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Michele%20R","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!jY_1I-0k0nM!wmGyv1sRsn0!t7pDp0ylDku","dateLastActive":"2023-10-02T14:23:13+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-02T13:47:22+00:00","dateAnswered":"2023-10-02T13:38:56+00:00","acceptedAnswers":[{"commentID":397835,"body":"

Because your syntax is off. You need to move one of the closing parenthesis from the very end to close out the first COUNTIFS before moving on to add the second one.<\/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":110978,"type":"question","name":"IndexCollect \/ JoinCollect for Multi Select Columns","excerpt":"I have one column called PRIMARY PRODUCT which is a single select dropdown and another called PRODUCTS OTHER which is a multi-select drop down. I have a third column called PROFIT CENTRE CODE which needs to populate based on all the products selected in the products columns. I have worked out a formula for PRODUCTS OTHER…","snippet":"I have one column called PRIMARY PRODUCT which is a single select dropdown and another called PRODUCTS OTHER which is a multi-select drop down. I have a third column called PROFIT…","categoryID":322,"dateInserted":"2023-09-29T08:50:47+00:00","dateUpdated":null,"dateLastComment":"2023-10-02T13:17:30+00:00","insertUserID":163620,"insertUser":{"userID":163620,"name":"Samantha McDonald","url":"https:\/\/community.smartsheet.com\/profile\/Samantha%20McDonald","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-02T13:02:31+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-10-02T13:35:30+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":38,"score":null,"hot":3392233097,"url":"https:\/\/community.smartsheet.com\/discussion\/110978\/indexcollect-joincollect-for-multi-select-columns","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/110978\/indexcollect-joincollect-for-multi-select-columns","format":"Rich","lastPost":{"discussionID":110978,"commentID":397820,"name":"Re: IndexCollect \/ JoinCollect for Multi Select Columns","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/397820#Comment_397820","dateInserted":"2023-10-02T13:17:30+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-10-02T13:35:30+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-09-29T14:30:55+00:00","dateAnswered":"2023-09-29T13:32:47+00:00","acceptedAnswers":[{"commentID":397633,"body":"

For your first one with the DISTINCT function, you just need to move one of the closing parenthesis from the very end to to after [PRODUCTS OTHER]@row. You need to close the DISTINCT function before you enter your delimiter for the JOIN function.<\/p>


<\/p>

For the second piece, you would \"add\" the INDEX\/COLLECT to the JOIN.<\/p>

=INDEX(...........) + \" , \" + JOIN(..........)<\/p>"},{"commentID":397706,"body":"

My suggestion would be to swap the comma out for a line break and convert the column into a multi-select dropdown column.<\/p>

=INDEX(COLLECT({PROFIT CENTRE}, {PRODUCT MATCH}, [PRIMARY PRODUCT]@row), 1) + CHAR(10)<\/strong> + JOIN(DISTINCT(COLLECT({PROFIT CENTRE}, {PRODUCT MATCH}, CONTAINS(@cell, [PRODUCTS OTHER]@row))), CHAR(10)<\/strong>)<\/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":[]}],"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