Formula Examples & Use Cases
This chapter provides practical examples of common Airtable formulas to help you understand their real-world applications.
These formulas help you work with text fields:
// Combine first and last name with proper spacing
CONCATENATE({First Name}, " ", {Last Name})
// Get first 3 characters of a product code
LEFT({Product Code}, 3)
// Get file extension from filename
RIGHT({Filename}, 4) // returns ".pdf", ".jpg", etc.
// Find if an email is from Gmail
IF(
FIND("@gmail.com", LOWER({Email})) > 0,
"Gmail User",
"Other Email"
)
// Replace spaces with dashes for URL slugs
SUBSTITUTE({Title}, " ", "-")
Common calculations and number formatting:
// Calculate total cost with tax
ROUND(SUM({Price} * 1.21), 2)
// Round price to nearest dollar
CEILING({Raw Price}, 1)
// Find highest performing sales person
MAX({Sales Team Totals})
// Simple IF for status colors
IF({Status} = "Complete", "green", "red")
// Multiple conditions for task priority
AND({Due Date} < TODAY(), {Status} != "Complete")
The SWITCH formula is a powerful alternative to nested IF statements. Here are two ways to use it:
// Progress status with emojis
SWITCH(
{Progress},
100, "✅ Complete",
75, "🏃 Almost there",
50, "👨💻 Halfway",
25, "🌱 Just started",
"📝 Not started"
)
// More flexible progress status
SWITCH(
TRUE(),
{Progress} = 100, "Complete",
AND({Progress} >= 75, {Progress} < 100), "Final Stretch",
AND({Progress} >= 25, {Progress} < 75), "In Progress",
{Progress} > 0, "Just Started",
"Not Started Yet"
)
Here’s a practical example using SWITCH to categorize deals:
SWITCH(
TRUE(),
{Deal Value} >= 100000, "🐋 Whale",
{Deal Value} >= 50000, "🐠 Big Fish",
{Deal Value} >= 10000, "🐟 Fish",
"🦐 Small Fish"
)
This is much more readable and maintainable than nested IF statements!
In the following Formula, we assume that your date table is called “Date” and there is extra logic to account for the the Fiscal Year Starting on October.
IF(
{Date},
"FY" &
DATETIME_FORMAT(
DATEADD({Date}, IF(MONTH({Date}) >= 10, 1, 0), "year"),
"YY"
) &
"Q" &
SWITCH(
MONTH({Date}),
10, 1,
11, 1,
12, 1,
1, 2,
2, 2,
3, 2,
4, 3,
5, 3,
6, 3,
7, 4,
8, 4,
9, 4
)
)