Skip to main content
Question

Create a formula from a text field in another table - possible?

  • October 31, 2025
  • 4 replies
  • 57 views

SPerry1
Forum|alt.badge.img+4

We have various sales/participation goals that change every year. My idea is to essentially store a unique formula for every goal, for every year, in a text field in a year table. Then in the main table, lookup that text field and somehow create a formula field based on that to do the actual calculation. Is that possible?

 

Year Goal Name Criteria (single line text field)
2024 CP Sales Goal IF({CP Sales Rollup} >= 50000, 1, 0)
2025 CP Sales Goal IF({CP Sales Rollup} >= 60000, 1, 0)

 

Client Year (link) Criteria (lookup text field) CP Sales Rollup Points (formula)
ABC 2024 IF({CP Sales Rollup} >= 50000, 1, 0) $35,500 {Criteria} should return “0”
ABC 2025 IF({CP Sales Rollup} >= 60000, 1, 0) $75,750 {Criteria} should return “1”

 

In the Points formula field, how do I write the formula? I’ve tried just putting in a reference to the Criteria lookup field: {Criteria}, but that doesn’t work. I assume there has to be some conversion from text into something Airtable can use in the calculation.

4 replies

TheTimeSavingCo
Forum|alt.badge.img+31

We can’t create formula fields like that I’m afraid.  As a workaround, what if you put the Criteria into the Years table and then pulled it over via lookup field?  Would do the thing you need I think and I’ve set it up here for you to check out

And here’s how the data looks:

 

IF({CP Sales Rollup} >= {Criteria (from Years)}, 1, 0)

SPerry1
Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 3, 2025

Yes, that would work perfectly on a small scale - unfortunately, I oversimplified the question. We have around 20 goals (some from sales, some from event participation), most of which are tiered and could change every year, so ramping this up to scale probably involves multiple tables and automations (you’ve already helped me with a very nice solution using automations). I’m trying to keep everything as neat and tidy as possible.

It just seems if we could somehow incorporate the text from one field into a formula field, it would be a very workable solution.


Mike_AutomaticN
Forum|alt.badge.img+28

Hey ​@SPerry1,

Unfortunately you canot dynamically (or automatically) update the actual formula within a formula field. Not even via API I believe.

If you want to avoid a complex datbase schema (I don’t think a more complex and robust datbase schema is a bad idea though), you might want to assess having a script that will do the calculations for you based on values from other fields? You could (a) trigger the automation which holds the script on a scheduled basis, or (b) run it manually (e.g. click of a button) whenever you need the data to get updated.

Completely different matter, but would love to have you join our Airtable Hackathon! Make sure to sign up!!

Mike, Consultant @ Automatic Nation 
YouTube Channel


SPerry1
Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 3, 2025

Uff da. Yeah, this is getting complicated. Okay, I think our team will need to take a step back and map out with good ole pencil and paper our workflow and see what pieces can be converted to Airtable and which will need to stay offsite/manual/Excel for now.

Thank you both ​@TheTimeSavingCo and ​@Mike_AutomaticN . Really appreciate your time!