Leverage this space to unlock the power of Airtable formulas.
Recently active
Hi, So I have my formula calculating the 90-day deadline from the start date. DATEADD({Start},90,‘day’) But I want it to only calculate IF there is a date in the start column. Currently, if there is no date in the start column it produces a #error, however, ideally I’d like to set the formula so that the deadline is blank until the actual start date has been entered. Thanks in advance and apologies for the newbie question!!
In [Workers] I have a rollup field called {Lowest_rating} which uses the Min() formula to return the lowest number a worker has in [Worker Interactions]. FWIW, the field in [Worker Interactions] that is being rolled-up is a number field. Where the worker has no rating yet, the rollup returns a “0”. I find this to be visually confusing. Is there anyway in the rollup to return the cell empty rather than a zero? Photos below. thanks!
We track time and often time there are more than one entry until we get a total. Here is what we do… {Start Time 1} and {End Time 1} and calculation formula is DATETIME_DIFF({End Time 1},{Start Time 1},‘seconds’) {Start Time 2} and {End Time 2} and calculation formula is DATETIME_DIFF({End Time 2},{Start Time 2},‘seconds’) {Start Time 3} and {End Time 3} and calculation formula is DATETIME_DIFF({End Time 3},{Start Time 3},‘seconds’) Then I have a Total Calculation formula Field: {Calculation 1} + {Calculation 2} + {Calculation 3} The problem is if one of the calculation fields is empty the Total Calculation field just show “NaN”. I would love any advice on how to solve this or a better way to calculate overall.
Hi, I have data that looks like this: 123: Tom Smith 11: Sally Smith 1200: John Doe I would like to extract just the name with a formula. I know I need to use RIGHT/LEFT, but I can’t quite figure out how to say “extract all text after the colon.” Thanks!
Hi! I’m looking for help with an If formula. I want the end result to be: If Column A says 5, then Column B will display “Now” If Column A says 4 or 3, then Column B will display “Soon” If Column A says 2 or 1, then Column B will display “Later” The formula I used was: IF({Ranking (from Projects)}=5, “NOW :hammer: ”, IF(OR({Ranking (from Projects)}=4, {Ranking (from Projects)}=3), “SOON :soon: ”, “Later :file_folder: ”)) But some of my fields with Column A that says 5, says Later. Do you know what I did wrong? Thanks!
I have an array in a record: “Bob Smith - 30%, Susan Bee - 50%, Alan Watts - 20%” and I want to change this array from percentages to money payouts, in accordance to a currency field, for example total income of $1500. How can I calculate within an array so that the end result would be something like this: “Bob Smith - $450, Susan Bee - $750, Alan Watts - $300” Is this even possible?
Hello, wonderful Airtable community. Not sure if this is a formula or not, looking for some guidance. I’m trying to shorten a list of things that contain sub-groupings by swapping out the full sub-group with a parent word/item. For example, in my shop we sell: Three types of apples: Fuji, Honeycrisp, Gala Two types of oranges: Tangerine, Mandarin One type of banana: Cavendish Within airtable there is a table of the most loyal customers and what they often purchase. A field linked to multiple records. The question/challenge: How would you swap in the group name only if the customer purchases the full set of items? If the list of multiple records contains “Fuji, Honeycrisp, Gala” then swap those out for “Apples”? I have been scratching my head on this one for a few hours. Would really appreciate any guidance. Thanks in advance.
I’m trying to create a formula that can search a column that contains multiple text dates and return only the earliest date. My {Launching} column is a text field that contains many launch dates, as well as region codes for what the date applies to like this - AU: 02/28/2021, CC: 03/01/2021, CK: 03/01/2021, CX: 03/01/2021, GU: 06/30/2021, MH: 06/30/2021, MP: 06/30/2021, NF: 02/28/2021, NZ: 02/28/2021, PR: 06/30/2021, TK: 02/28/2021, VI: 06/30/2021 I’d like to create a formula that can search this text field and tell me only the month of the earliest launch My current formula is this: IF(SEARCH(": 02/", {Launching}), “2Feb “,””) & IF(SEARCH(": 03/", {Launching}), “3Mar “,””) & IF(SEARCH(": 04/", {Launching}), “4Apr “,””) & IF(SEARCH(": 05/", {Launching}), “5May “,””) & IF(SEARCH(": 06/", {Launching}), “6Jun “,””) The values returned look like this: 2Feb 3Mar 2Feb 3Mar 4Apr 2Feb 3Mar 4Apr 2Feb 3Mar 6Jun 2Feb 6Jun 3Mar Is there a way to tell the formula to return the text
Hi I have this time tracker system in which different stages of our process is time stamped by an automation. The difference between these time stamps are calculated in several columns depending on the task (in minutes). In order to account for breaks (maybe the work not being completed during the day off), I installed the Timer app to calculate that. Once the break is calculated, that is deducted from the total time calculated by the time stamp automation. It works for the most part and the timer app is perfect because you can pause and resume the timer whenever you want. However, after running the timer for a task I couldn’t complete overnight, the calculation between the time stamp automation and the timer’s calculation wasn’t accurate. Only when I typed in the break duration did the calculation work. Is this perhaps due to the fact that my automation calculates for “minutes” while the timer calculates not only minutes but seconds and hours? This usually works for smaller break time
Hi there! I’m fairly new to formulas and have been playing around with using them in a new base for a client. I’m wondering if there is any way to create an IF statement or some other formula for if a Date field is empty? Right now if the date field is marked empty, it showcases an error, but I’d like it to still include the other values if left blank. It would be great if it could maybe have TBD" instead. Any suggestions are greatly appreciated! Here’s the formula I have so far: "[" & DATETIME_FORMAT({START / LIVE DATE}, ‘MM/DD’) & "] " & {PROJECT / PROMO NAME} & " " & “[” & SEASON & "]" Also a screenshot of what I’m trying to do:
Hey all! Got a question for y’all: Say I’ve got three tables. Albums Songs on each album (each song has an environment attached) Environments (this is a finite list of pictures with name labels that are used for reference in the ‘Song on each album’ table) In the album tab, I’m looking to create a field that lists/combines the environment used from the first and last track of each album to send out for reference. The first and last track is always called ‘FT’ or ‘LT’ in the ‘Songs on each album’ table. Any insight here? Found this, but it looks like more of a lateral way to do combinations (and it doesn’t have to be pictures – can just be the names of the environments/pictures, if that makes sense).
Hi There. I have a table for capturing fuel fill ups. In one column we have the opening ODO balance, the other is closing ODO balance. Closing Balance is what will be inputted by the user, the opening balance should automatically then become the same value as the closing balance. Perhaps this image might be a bit more clear of what i want to achieve. Apologies if the explanation is not clear
Hello! I’m populating my base with data from an external API and would like to update it regularly as new results come in without creating new duplicate records. I’ve read a couple of other topics that discuss that (like this one and this one), but am still struggling to figure it out. I’m using the [uri] field in the base records and trying to match them to the array of [uri]s from the api. If there’s a match, the record would update, and if not, a new one would be created. FWIW my knowledge of js is survivalist at best! Here’s what I have so far: // The loop for each result in the API for(let i = 0, l = data.results.length; i < l; i++) { // ids for current records let table = base.getTable("Observation"); let queryResult = await table.selectRecordsAsync(); const records = queryResult.records; for(let i = 0, r = queryResult.records.length; i < r; i++) { // grab cell value uri for reference against the api let record = queryResult.records[i];
I have this formula. If there is no date, the formula errors out. I need it to be the exact same formula but if the date field is blank, it still fills in all the other columns. Here’s the formula: DATETIME_FORMAT({Date}, ‘YYYY-MM-DD’)&" “&Type&” || "&{Fellow}&{External Guest} How would I change it to include blank-dates?
Hi Guys, Need some help, new to Airtable. I am trying to create a formula to update a next due date for monthly rent from a contract start date instead of manually updating the dates monthly. The columns i have is Contract start date and Rent due date. Thanks
Hey community, I am decently new to Airtable and am excited to get to know it better, but I am stumped on creating this formula. I’ve beeI have been trying to output the range of a number of days within a week when given the first day of that specific week. I need it to be formatted with the month like, “June 21-27” in it’s column. What I have is… DATETIME_FORMAT({Start Date}, ‘MMMM DD’) & “-” & DATETIME_FORMAT((DATEADD({Start Date}, 6, ‘days’), ‘DD’) I keep getting error messages like: Sorry, there was a problem saving this field. Invalid formula. Please check your formula text. I’ve been messing around with it quite a bit, but can’t seem to produce what I want. I am sure there is a solution to this simple formatting problem. Is there a way to do this using the “Date” field type? Or maybe I can only use DATE_FORMAT() once per line.
Hi Everyone, I’m new to formula’s and can’t quite work out the right answer. I have job listings that I want to archive once they have passed an expiry date. I currently have a status column that has a dropdown to select ‘archive’, once this is selected it goes onto another view (using a filter) but it would be really useful to automatically move this once it reaches the expiry date’, rather than doing it manually. Thanks in advance!
Good day, Airtable Community, I have a base that looks like this, And I would like to create a formula that displays true (or 1) if that day is today, so if today is Monday, all the fields that contain Monday will be 1. But I cannot find any way to do this with the Today() and other date functions. I strongly believe I am missing something. Can anyone shed some light on this?
Hi there, I’m trying to use the DATEADD function to calculate an end time for an event. My formula is: DATEADD({Timeslot StartTime},{Duration mins},‘minutes’) {Duration mins} can be a lookup field or a formula field. I’ve tried all formatting options for these fields but none are producing the correct output. If I make {Duration mins} a text field, the output is correct. I need to make the formula work with {Duration mins} being either a lookup field or a formula ~ What am I doing wrong? P.S. I have also tried to troubleshoot the issue by toggling the GMT settings on and off, all to no avail. Thanks for your help.
I have a set of product attributes, each attribute belongs to a group, example: Product - T Shirt The attributes would be Size > Medium Cut > Round Neck Color > Green What I would like to do is have ONE multi select column with all the attributes in. The output needed would be split into separate columns like so: Column 1: Attribute 1 name : Size Column 2: Attribute 1 Value: Medium Column 3: Attribute 2 name: Cut Column 4: Attribute 2 Value: Round Neck Etc… The multi select needs to be able to be in any order, I have made another table with each attribute and it’s attribute name and then used a LOOKUP to send that back to the main sheet. This returns a string of 3 attribute names. Is there a way to take the first value in the string and return it’s attribute name? I know this seems like doing it the hard way but it has to conform to something our website can digest, and that is: Attribute 1 name Attribute 1 value Attribute 2 name Attribute 2 value… Etc. It doesn’t allow for an
Grateful to those in this community who helped me set up my family’s bookstore inventory. It’s going well and I often recommend Airtable to others. So now I’m using this formula… Title & " • " Author & " • " Place & " • " Date But because a number of books do NOT indicate author, place, or date, I sometimes end up with this: Title • • • Date That’s not great for catalogs. Is there a formula I can use that will leave off the extra bullet(s) when one or more of the fields are empty?
Hello awesome airtable people … I am desperately in need of help after spending days going in circles. Background: I have a list of TASKS (podcast recording tasks in my case). Some tasks have DEPENDENCIES - I can’t do task 2 until task 1 is complete The list of TASKS is repeated for each podcast show. In Airtable, I have a table for my podcast shows and a table for my tasks. I have almost everything working the way I would want if only I could I could figure out how to update the field: Dependency Done? If I was to describe what I wanted, it would be a formula that says: If there is a dependency task listed for this record and that task is done, mark this as TRUE, else FALSE. I can get this work if there is only one episode by using a conditional lookup but as soon as I have multiple episodes, that doesn’t work. I’ve stripped down my table to share in hopes someone has a great tip. Help me Obi-Wan Kenobi, you’re my only hope! https://airtable.com/shrjFGmhEbifXVBge
I’ve looked all over for this, and there are formulas that get close, but nothing that quite gets what I want. If the date is equal to or past the date under “Deadline”, autofill the formula cell with “OVERDUE”, unless the Status column (single select) is tagged “Complete”, in which case it should say “Done” no matter what (before, on, or after deadline) Else-wise, the formula cell should be blank.
I don’t know if what i’m attempting is supported in rollup fields. I have a rollup field, Level, which uses my table’s linked field, Academic year, to pull in a field called, Students from my Academic year table: I’ve attempted a variety of formulas in the rollup using the FIND function, all of them return 0. Here’s some examples: FIND(ARRAYJOIN(values), "John Doe") FIND(ARRAYJOIN(values) & "", "John Doe") FIND(ARRAYJOIN(ARRAYCOMPACT(ARRAYUNIQUE(values))), "John Doe") Is it possible for me to get a result that isn’t 0? Or is the FIND function not supported in rollup fields? (I should add that I’m not really searching the name “John Doe”, but rather searching names that are present in the referenced field.) Thanks for any help.
Hey all, I have been testing out online DB’s, Knack, e.g., and created a formula to take three fields from inside the table and it generates a complete course number. Each of those fields were connected to their own tables. The formula wound up being a text formula is: {ILT Course Course Level.Course Level Number}{ILT Course Course Types.Course Code}.{Sequence Number} How can I do this in AT? I’ve seen the formula option for a field, and even the Link to another Field(tab/table) option so it seems it’s possible, but when I attempt it I don’t get exactly what I was expecting. I get NaNa, or something like that LOL. Any ideas?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.