Formula Counting Created Date as Following Day When Recorded After 5:30 PM PDT
When creating a metric sheet that evaluates entries in another sheet, I am attempting to write a COUNTIF formula that counts all entries for that day, but any entries recorded after 5:30 PM PDT are counted towards the following day. I created a helper column that converts the system column into just a date, and that fixes the issue. I am curious if anyone knows the reason why this happens? Tried searching for the issue, but was unable to diagnose on my own.
Thank you!
Answers
-
Hey @Katy H
The problem is known problem caused by the difference in the sheet owner's midnight and the midnight of how the system dates (Created and Modified) are stored in smartsheet. Although the dates appear in your timezone, the data is stored as differently. There are various posts in the community for fixing this but since you are only interested in days, the easiest fix is with a helper Date column and using Record a Date automation. Record a Date will record the date in your actual timezone. Use this date field in your formula instead of Created.
Step 1 - Create a helper Date column. You can name it anything. You can keep this column hidden and shoved to the far right if desired. In my example below I called it Recorded Date.
Step 2 - Create a Record a Date automation.
You could create the automation from a template if you prefer. This one is so simple I created it from scratch.
Trigger = When rows are added or changed. Don't forget, as a good practice, to name your automation. Choose the Created column as your column that is changing.
Choose Record Date as the Action
Select the helper date column* you created. *Your column names will be in your list.
Will this work for you?
Kelly
-
Thank you so much! The issue was my guess but couldn't seem to find the solution. I appreciate it!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!