Skip to main content

Looking for a formula to count days worked on a project.

  • July 12, 2023
  • 2 replies
  • 34 views

Forum|alt.badge.img+1

We have a base that has start date and end date columns. Need a formula that counts how many days worked in the month on that project. Anyone done this before? 

2 replies

Forum|alt.badge.img+21
  • Inspiring
  • 560 replies
  • July 13, 2023

There's DATETIME_DIFF function and WORKDAY_DIFF function available

Formula Field Reference - Overview | Airtable Support


CJSmith
Forum|alt.badge.img+12
  • Participating Frequently
  • 42 replies
  • July 13, 2023

Hi @Kelsey123, wondering if you could provide a little more context on how the data would be interpreted. Given the "in the month" requirement, this might be more complex than a single formula field. In the meantime, providing  some options below:

Standard formula for counting days between the start/end date:

DATETIME_DIFF({End Date}, {Start Date}, 'days')

 

If you want to count workdays only, it would use a different operator and the order of the start/end dates would be reversed:

WORKDAY_DIFF({Start Date}, {End Date})