
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 10:35 AM
Iāve searched, googled and tried all the formulas Iāve found and nothing is working. I feel like Iāve spent more time working on these dang formulas than the table itself. Any help is greatly appreciated. Also, if anyone knows anywhere I can test a formula or understand what each means in the order it should be would be a huge help. I just donāt understand Airtables examples (its just wordsā¦no way of linking) which is where I think I am failing.
I have a scheduled tab with dates (no times) for upcoming projects. Iād like to have a formula that shows if the date is today - the formula reads - DUE TODAY.
if the date is within a week - Due next week
If its due in 1 day - due tomorrow
If its past due - Past due.
I know its simple, but again - I loose it on the commas, parentheses and quotations. Maybe if i can figure this out with some help I can add some emojis.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 10:50 AM
The below should work for what you need!
IF(IS_SAME(TODAY(), Date), "ā¼ļø DUE TODAY", IF(DATETIME_DIFF(TODAY(), Date, 'days') = 1, "ā³ Due Tomorrow", IF(DATETIME_DIFF(TODAY(), Date, 'days') < 7, "š Due Next Week", IF(IS_AFTER(TODAY(), Date), "š« Past Due"))))
It certainly takes a little bit to get the hang of writing formulas! One big rule to remember is that the formula will stop after a condition is matched, so itās important to order things in a certain way. For example, if this part of the formula:
IF(DATETIME_DIFF(TODAY(), Date, 'days') < 7, "š Due Next Week",
Was written before this part:
IF(DATETIME_DIFF(TODAY(), Date, 'days') = 1, "ā³ Due Tomorrow",
The formula would not work correctly. For exampleā¦ If the number of days until the due date were actually 1, we would expect the result to be, ā :hourglass_flowing_sand: Due Tomorrowā. BUT if the formula was written with those parts switched, the result would have incorrectly been, ā :spiral_calendar: Due Next Weekā, This is because the first condition of the formula it matched was that the number is less than 7.
I hope that makes sense!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 11:00 AM
Thank you Neads - I notice from other examples my field name has to go into {brackets} so with my table my field name is scheduled date - I donāt see any brackets in your example. I tried using it as is and I get an error message.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 11:47 AM
Hi Holli - apologies for the confusion. You need the brackets if the field name is more than one word or has any special characters. You will want the brackets for the field name {Scheduled Date}, while if the field name was just āDateā, you wouldnāt need them.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 12:16 PM
Excellent explanation and help. I really appreciate it. This makes much better sense to me!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 12:49 PM
Ok Iāve tried with everything I know but still not getting this right. Based on your example and the change of the ādateā wording to match my cells - its showing due for tomorrow for yesterdayās date? How can I fix this? What about dates that are scheduled further in advance? I tried a formula for those and they all turn past dueā¦?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 01:11 PM
Can you share the formula you are using?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 09, 2019 01:53 PM
IF(IS_SAME(TODAY(), {Scheduled Date}), ā :fire: Scheduled TODAYā, IF(DATETIME_DIFF(TODAY(), {Scheduled Date}, ādaysā) = 1, ā :hourglass_flowing_sand: Scheduled for TOMORROWā, IF(DATETIME_DIFF(TODAY(), {Scheduled Date}, ādaysā) =7, ā :stopwatch: NEXT WEEKā, IF(IS_AFTER(TODAY(), {Scheduled Date}), ā :tired_face: Past Dueā))))

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 10, 2019 07:26 AM
Just one tiny correction - change ā=7ā to ā<= 7ā. I think that should fix it!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
āApr 10, 2019 11:25 AM
I fixed the <=7 and Iām still having the same issue. It seems dates scheduled on the 4th are scheduled for next week - when they are actually past due (marked done by checkmark)
Here is the formula Iām using https://imgur.com/LIlQbMK
IF(IS_SAME(TODAY(), {Scheduled Date}), "š Scheduled TODAY š", IF(DATETIME_DIFF(TODAY(), {Scheduled Date}, 'days') = 1, "ā³ Scheduled for TOMORROW ā³", IF(DATETIME_DIFF(TODAY(), {Scheduled Date}, 'days') <=7, "š NEXT WEEK š", IF(IS_AFTER(TODAY(), {Scheduled Date}), "š« Past Due š«"))))```
