Feb 19, 2019 07:12 AM
I would like to create a formula that adds a certain number per day. For example:
Lets say I have a field that starts with 8000 and I want the field to increment by 44 each day. I dont want to add a new row each day, I simply want the same field to go: 8000 today then 8044 the next day, then 8088 on day 3. Is this possible?
How would I go about this? Is there a simple way to simply add 44 each day? Or do I need to create a 2nd table that has pre-populated dates and numbers that go up by 44 (88, 132, etc) and the first table references the 2nd table somehow?
I’m really terrible with excel/airtable formulas and logic :frowning:
Any help would be greatly appreciated!
Feb 19, 2019 07:54 AM
8000+44*DATETIME_DIFF(TODAY(),{START DATE},“days”)
Where {START DATE} is a Date field that contains the date you want to start counting from.
Feb 19, 2019 08:06 AM
Awesome, totally makes sense! Seems so simple now that I see it.
Thanks for the quick help!
Feb 20, 2019 05:49 AM
How do I add text to the end of this? So say I’m counting widgets how would I have the formula show 8088 Widgets?
I’ve tried doing it with concatenate but maybe my syntax isnt correct.
Feb 22, 2019 05:19 AM
Try
(8000+44*DATETIME_DIFF(TODAY(),{START DATE},'days'))&' widgets'
Concatenating a number and a text string converts the number to a numeral and appends the text. (The enclosing parentheses aren’t required; I’ve included them here simply to differentiate between the numeric and text portions of the formula.)