Help figuring out which formula to use
Hello! I am fairly new to using Smartsheet and need help figuring out if what I'd like to do is even possible and what formula I would use (would it be index/match?). I would like to pull information from one sheet to another sheet. What I am trying to come up with is:
IF the "PRINTER" ON PRINTER LEAD TIMES sheet is the same "PRINTER" ON the PACKAGING FLATS TRACKER, then in the RELEASE TO SGS/PRINTER column on the PACKAGING FLATS sheet, SUBTRACT the number that is in the TOTAL NUMBER OF DAYS column on the PRINTER LEAD TIMES sheet FROM the date that is in the MATERIALS IN HOUSE column on the PACKAGING FLATS sheet.
Does this make sense and is this doable? Right now, I have a long IF statement on just the PACKAGING FLATS TRACKER but I think having a separate sheet where this information is pulled from might be easier when information changes/people need to update.
Thank you!
Best Answer
-
Paul Newcome ✭✭✭✭✭✭
You need to actually use "@cell"
=MAX(COLLECT({Total Number Of Days}, {Printer}, HAS([email protected],@cell)))
thinkspi.com
Answers
-
Paul Newcome ✭✭✭✭✭✭
What about on rows where you have multiple entries in a single cell? Would you want to pull the highest number of days for the two entries or would you want to add the number of days together for both entries?
thinkspi.com
-
lm56 ✭
Hi@Paul Newcome- I would want to pull the highest number of days for the 2 entries. Thank you!
-
Paul Newcome ✭✭✭✭✭✭
In that case you are going to want a MAX/COLLECT/HAS combo to be able to pull the number of days. Something along the lines of...
=MAX(COLLECT({Total Number Of Days}, {Printer}, HAS([email protected], @cell)))
thinkspi.com
-
lm56 ✭
@Paul Newcome- how do I reference the sheet that I want to pull the information from?
-
Paul Newcome ✭✭✭✭✭✭
When you get to the section where you want to create the cross sheet reference, there should be a blue link in the "formula help box" that says something along the lines of "Reference Another Sheet". Click on that link, select the appropriate sheet, then click on the column header to select the entire column.
thinkspi.com
-
lm56 ✭
Hi@Paul Newcome- thank you! I get "invalid operation" - can you take a look at the formula I have and let me know what I'm doing wrong? Can you also let me know if it's possible to subtract a number of days from the reference sheet from a date i have in the 2nd sheet? If that's not possible, how could I just have the number of days from the reference sheet pull into a column on the 2nd sheet?
-
Paul Newcome ✭✭✭✭✭✭
Make sure you include the second portion of the HAS function with the @cell reference.
thinkspi.com
-
lm56 ✭
@Paul Newcome- I am getting INVALID REF. What am I doing wrong? I've created a separate column on the Packaging Flats Tracker to pull in the total number of days from the Printer Lead Times sheet. Is there maybe a simpler function I could use?
-
Paul Newcome ✭✭✭✭✭✭
You need to actually use "@cell"
=MAX(COLLECT({Total Number Of Days}, {Printer}, HAS([email protected],@cell)))
thinkspi.com
-
lm56 ✭
Thanks so much!
-
Paul Newcome ✭✭✭✭✭✭
Help Article Resources
Categories
For logging changes on a particular sheet, I use an automation that copies the entire row to a different sheet used to log the data changes. The automation is triggered whenever a row is modified or added. One of the columns I have in my main sheet is a system column called Modified and the column type is \"Modified Date\".<\/p>
I then use reports or cross sheet links to create the view of the data that I want from the log file.<\/p>
Hope this is helpful for you and have a great day.<\/p>
Tom<\/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":101730,"type":"question","name":"COUNTIFS with CHILDREN and Status Bar","excerpt":"I am trying to count the number of child rows that have a status bar symbol of Quarter, Half, or Three Quarters. Example: if 2 child rows are half, one is full, one is empty, and one is three quarters, the count should be 3 to account for the two halfs and one three quarters, and negate the empty and full ones. Just trying…","categoryID":322,"dateInserted":"2023-02-24T17:22:04+00:00","dateUpdated":null,"dateLastComment":"2023-02-24T17:34:41+00:00","insertUserID":138915,"insertUser":{"userID":138915,"name":"Kristina S Otten","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Kristina%20S%20Otten","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!xJEmseeh63s!aSEn2qecc_s!4EeZbPMRxDk","dateLastActive":"2023-02-24T17:44:27+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":86866,"lastUser":{"userID":86866,"name":"Jeff Reisman","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Jeff%20Reisman","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/3V8W2AM105QE\/nIDXI4I7VDS7W.JPG","dateLastActive":"2023-02-24T21:37:00+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":15,"score":null,"hot":3354521205,"url":"https:\/\/community.smartsheet.com\/discussion\/101730\/countifs-with-children-and-status-bar","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/101730\/countifs-with-children-and-status-bar","format":"Rich","lastPost":{"discussionID":101730,"commentID":364317,"name":"Re: COUNTIFS with CHILDREN and Status Bar","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/364317#Comment_364317","dateInserted":"2023-02-24T17:34:41+00:00","insertUserID":86866,"insertUser":{"userID":86866,"name":"Jeff Reisman","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Jeff%20Reisman","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/3V8W2AM105QE\/nIDXI4I7VDS7W.JPG","dateLastActive":"2023-02-24T21:37:00+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-02-24T17:33:38+00:00","dateAnswered":"2023-02-24T17:27:39+00:00","acceptedAnswers":[{"commentID":364314,"body":"
Here you go, try this:<\/p>
=COUNTIFS(CHILDREN(Progress@row), OR(@cell = \"Quarter\", @cell = \"Half\", @cell = \"Three Quarter\"))<\/p>"},{"commentID":364317,"body":"