Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nataliemisasi
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Sep 28, 2022

Deploy Preview for grist-help-preview ready!

Name Link
🔨 Latest commit 587fd2b
🔍 Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/6390c4ca39c5580009d02754
😎 Deploy Preview https://deploy-preview-184--grist-help-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

help/formula-cheat-sheet.md Outdated Show resolved Hide resolved
help/formula-cheat-sheet.md Outdated Show resolved Hide resolved
help/formula-cheat-sheet.md Outdated Show resolved Hide resolved
```
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)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

help/formula-cheat-sheet.md Outdated Show resolved Hide resolved
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
Copy link
Member

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.

@nataliemisasi
Copy link
Collaborator Author

nataliemisasi commented Nov 2, 2022

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"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants