New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formula cheat sheet round 2 #184
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for grist-help-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
help/formula-cheat-sheet.md
Outdated
``` | ||
Because we round to a whole number, the partial day (represented in seconds) doesn't make a difference in our final value. If you were calculating difference in days, the seconds might make a difference, depending how far into the current day you are. | ||
|
||
**Community Example:** [Calculating Hours Worked](https://public.getgrist.com/a3HWPxrhNwJa/1863/p/4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of removing the "hours worked" example? It's complex and advanced enough that it feels outside the scope of a cheat sheet.
I like the "years" one because it builds on the complexity of ($Date1 - $Date2).days
while teaching important concepts, and doesn't feel out of reach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it is complex but I think it's good to keep. Just because there is not a simple way to do time. I did break out date though and added a simple example then put the 'years' example in the same grouping to build on ($Date1 - $Date2).days
You can find the number of days between two [Date](col-types.md#date-columns) values using the [DAYS()](functions.md#days) function. | ||
|
||
<span></span><details><summary> | ||
#### Example of Calculating the Difference Between Two Dates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to not chime in earlier, but we support Excel-compatible function DATEDIF (https://support.getgrist.com/functions/#datedif). For days, it's exactly equivalent to what's here. For years or months, DATEDIF is much simpler, and I think we should recommend it in the cheatsheet instead of the more complicated solutions.
I forgot to update Phone Number in this most recent commit. This is a reminder to myself to update it and re-commit. also add link to tip on summary tables: Video Walkthrough: Back to Basics: Migrating from spreadsheet to Grist{:target="_blank"} |
No description provided.