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.
The MID function may help to achieve this as outlined 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?
帮助文章资源欧宝体育app官方888
Categories
Try this:<\/p>
=IF(ISDATE([Event Date]@row), IF(AND([Event Date]@row > TODAY(), [Event Date]@row <= TODAY(30)), \"Less than 30 days from today\", \"More than 30 days from today\"), \"//www.santa-greenland.com/community/discussion/66813/\")<\/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":108267,"type":"question","name":"Combining IF Formula for Blank\/ Not Blank Cells","excerpt":"I want to create a formula that provides the below statuses: -Complete: Based on \"Collected Date\" not null -Incomplete: Based on \"Collected Date\" null and \"Antcipated Collected Date\" null -Pending: Based on \"Anticipated Collcted Date\" not null and \"Collected Date\" null Below is what I have, but it's unparseable:…","snippet":"I want to create a formula that provides the below statuses: -Complete: Based on \"Collected Date\" not null -Incomplete: Based on \"Collected Date\" null and \"Antcipated Collected…","categoryID":322,"dateInserted":"2023-07-28T17:23:40+00:00","dateUpdated":null,"dateLastComment":"2023-07-28T18:28:47+00:00","insertUserID":164288,"insertUser":{"userID":164288,"name":"brownrobe","url":"https:\/\/community.smartsheet.com\/profile\/brownrobe","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-28T18:42:06+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":164288,"lastUser":{"userID":164288,"name":"brownrobe","url":"https:\/\/community.smartsheet.com\/profile\/brownrobe","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-28T18:42:06+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":36,"score":null,"hot":3381135147,"url":"https:\/\/community.smartsheet.com\/discussion\/108267\/combining-if-formula-for-blank-not-blank-cells","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108267\/combining-if-formula-for-blank-not-blank-cells","format":"Rich","lastPost":{"discussionID":108267,"commentID":387885,"name":"Re: Combining IF Formula for Blank\/ Not Blank Cells","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/387885#Comment_387885","dateInserted":"2023-07-28T18:28:47+00:00","insertUserID":164288,"insertUser":{"userID":164288,"name":"brownrobe","url":"https:\/\/community.smartsheet.com\/profile\/brownrobe","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-28T18:42:06+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-07-28T18:30:11+00:00","dateAnswered":"2023-07-28T18:22:11+00:00","acceptedAnswers":[{"commentID":387882,"body":"