Date updating to Next Day using Index, Match, Max, Collect Formula
Hi,
I'm working with two Smartsheets.
(1) One sheetcollects the data from a Smartsheet form. I added two columns to this sheet using the Auto-Number/System Feature (under Edit Column Properties). This features stamps new row entries with a date/time (Created) and by whom (Created By).I'm curious about the cell surrounded by the orange box in the below image.
(2) Second sheethas cell links that pulls the most recent entries by date (Created) and by Name. In the Created column I have this formula:
=INDEX({Created Range 2}, MATCH(MAX(COLLECT({Created Range 2}, {Name Range 3}, "Named Site")), {Created Range 2}, 0))
My question:When the second sheet updates the cell link using the formula above, the date advances to the next day. What causes this behavior?
I am using the formula below in the细胞细胞上方和下方I am having issues with. The formula below is working as intended in the other cells.
=INDEX({Created Range 2}, MATCH(MAX(COLLECT({Created Range 2}, {Name Range 3}, "Named Site")), {Created Range 2}, 0))
Thank you in advance.
Answers
-
Debbie Sawyer ✭✭✭✭✭✭
Hello
I have set up a couple of test sheets to see if I can replicate this issue. I am going to pop some data in over the next few hours and tomorrow too; to see if I can see any correlation to time.
I'll pop back in here again tomorrow to see if I found anything. (your formula here worked fine on my initial data)
Kind regards
Debbie SawyerConsultant & Training Manager
-
Eric M Oliveira Employee
Hi Amy,
Happy to help, I understand you're experiencing issues referencing a timestamp-based off of the System Generated Created(Date) column, I'd be glad to assist you! On the Smartsheet server-side, we store all dates and times in UTC. In the App though, we surface to the user based on your timezone. We pass you what our server says is the time and then your Smartsheet instance interprets that time per your Personal Settings. So anything row created after a certain time will show via a formula as the next day.
You may want to compare your time zone to UTC time and see what time your time zone differs. You could then take the data obtained from your research and alter the formula to account for this where if the day values don't match minus 1.
中期outli功能可以帮助实现这一目标ned here:https://help.smartsheet.com/function/mid
Have a wonderful day.
Cheers,
Eric
Smartsheet Technical Support
-
Debbie Sawyer ✭✭✭✭✭✭
Thanks Eric
I was thinking that there was a time issue as the one that was showing a day later was after 6pm in the users timezone. Your answer is great :)
Thank you
Kind regards
Debbie
-
I have encountered this same problem but for me the date rolls over at 4pm local time. Is there a way to submit this for improvement?
Help Article Resources
Categories
I figured it out! Updated formula to get the 2 decimal places as well.<\/p>
=\"We are at \" + IFERROR(ROUND([% closed rate]@row * 100, 2), \"//www.santa-greenland.com/community/discussion/comment/\") + \"% closed rate on ticket status for the month of \" + Month@row<\/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":108861,"type":"question","name":"IF\/AND Formula","excerpt":"Formulas are the bane of my existence and I really need to take a class! Today I'm trying to set up a formula to throw a flag when 2 conditions are met. I want a red ball when I have not received an invoice and the invoice due date is within 30 days. I know I'm close since I've gone from \"unparsable\" to \"incorrect…","snippet":"Formulas are the bane of my existence and I really need to take a class! Today I'm trying to set up a formula to throw a flag when 2 conditions are met. I want a red ball when I…","categoryID":322,"dateInserted":"2023-08-11T16:27:44+00:00","dateUpdated":null,"dateLastComment":"2023-08-11T17:49:45+00:00","insertUserID":120231,"insertUser":{"userID":120231,"name":"Pamela Wagner","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Pamela%20Wagner","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T17:47:38+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":null,"lastUserID":120231,"lastUser":{"userID":120231,"name":"Pamela Wagner","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Pamela%20Wagner","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T17:47:38+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":47,"score":null,"hot":3383549849,"url":"https:\/\/community.smartsheet.com\/discussion\/108861\/if-and-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108861\/if-and-formula","format":"Rich","lastPost":{"discussionID":108861,"commentID":390268,"name":"Re: IF\/AND Formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390268#Comment_390268","dateInserted":"2023-08-11T17:49:45+00:00","insertUserID":120231,"insertUser":{"userID":120231,"name":"Pamela Wagner","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Pamela%20Wagner","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-11T17:47:38+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-08-11T17:48:48+00:00","dateAnswered":"2023-08-11T17:12:43+00:00","acceptedAnswers":[{"commentID":390261,"body":"
You were, indeed, very close.<\/p>
=IF([Invoice Received?]@row = 0, IF(AND([Renewal Date]@row >= TODAY(), [Renewal Date]@row <= TODAY(+30)), \"Red\"))<\/p>"},{"commentID":390264,"body":"