Data · 4 steps

Dates and text in formulas

Make a new column from dates or text with a formula: the year, the month name, the days between two dates, a trimmed name.

Step by step

  1. Open a formula column

    Click ƒx in the table toolbar, or right-click a header and choose Add formula column…. The New column window opens on Formula; give the column a Name.

  2. Write the formula

    Write column names in square brackets, for example MONTH_NAME([order date]). ƒx Functions lists every function with an example; the preview shows the first results before you add the column.

  3. Date functions

    YEAR, MONTH (1 to 12), DAY, QUARTER (1 to 4), WEEK (ISO week, weeks start on Monday), WEEKDAY (1 = Monday … 7 = Sunday; WEEKDAY(d, 7) gives 1 = Sunday … 7 = Saturday), WEEKDAY_NAME and MONTH_NAME (“Monday”, “January”), HOUR, MINUTE, DATE(y, m, d), DAYS(end, start) (whole days), DATEDIF(start, end, unit) (“d” days, “m” complete months, “y” complete years), TODAY() and DATEVALUE(text[, format]) (text to a date, for example DATEVALUE([date text], "%m/%d/%Y")). In the format, %d is the day, %m the month (two digits), %Y the four-digit year and %y a two-digit year; write the separators as they appear, so 24.02.2027 needs "%d.%m.%Y".

  4. Text functions

    TRIM, UPPER, LOWER, PROPER, LEFT, RIGHT, MID, LEN, CONCAT, SUBSTITUTE, VALUE (text to a number: “45%” is 45) and TEXT (a number as text). Press Add formula column.

What you should see

A new column computed from your formula, with its type shown in the header.

Common problems

A date function returns missing values.

The column is text, not a date: convert it first (see Convert text to numbers and dates) or use DATEVALUE inside the formula.

TODAY() changed the results.

TODAY() is the date when the column is computed; recomputing on another day changes it.

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • How do I get the month from a date column?
  • How do I compute age in years from a birth date?

Last reviewed November 16, 2026.

Report an unclear step