Skip to main content

Formula Tips for Other Users

  • March 2, 2016
  • 3 replies
  • 20 views

Forum|alt.badge.img+4

For us newbies, is there a place where users are posting tips and techniques?

For example, I finally came up with a formula to determine someone’s age if you have their date of birth.

DATETIME_DIFF({D.O.B.}, TODAY(), “days”) / (-365)

Anyway, just thinking that there are a lot of experiences users who might want to share their own tips.

3 replies

Forum|alt.badge.img+4
  • Author
  • Known Participant
  • 42 replies
  • March 3, 2016

Me, again. Actually, that formula doesn’t exactly work because of leap years. You’d think dividing by 365.24 (the exact length of a year in days) would do the trick, but rounding doesn’t work when the birthday is just a day or two before/after the current date. So, who has the formula to determine a person’s age, knowing their date-of-birth?


Forum|alt.badge.img+9
  • Participating Frequently
  • 23 replies
  • March 3, 2016

I think this will do what you want:

DATETIME_DIFF(TODAY(), {D.O.B.}, “years”)

Good idea about a place for tips & techniques, I’ll pass it along!


Forum|alt.badge.img+4
  • Author
  • Known Participant
  • 42 replies
  • March 4, 2016

Kasra, Well, of course. I wonder why I missed this obvious (now) solution.