Look up a value in another table with a Lookup field

Copy a value from a rate chart, price list or discount table onto each record by matching keys, tiers, date ranges or interpolation, like VLOOKUP.

  • Verified Nov 23, 2026
  • Classic builder

On this page
  1. Add a Lookup field
  2. Match on several keys
  3. Brackets and tiers: nearest lower or higher value
  4. Between a from and a to column, and dates
  5. Interpolate between rows
  6. When nothing matches or several rows do
  7. Test it before you save
  8. When the value updates
  9. Keep a value that stops following the chart
  10. Lookup, Connection, Rollup or Equation?

A Lookup field finds a row in another table, such as a rate chart, price list or discount table, and copies one of that row's values onto each record. It works like VLOOKUP in a spreadsheet: you say which columns of the lookup table must match this record, and which column to return.

The two tables do not need to be connected. Like an Equation, a Lookup is calculated for you and saved with the record: nobody can type a value into it.

Add a Lookup field #

In this example a Rates table holds one row per service with its Hourly Rate, and each job gets the rate of its service.

  1. Open the table In the Data Builder, open the Jobs table and click the Fields tab.
  2. Choose the field type Click Add New Field. Under Equation, click Lookup, then click Add and Configure.
  3. Name it Enter a Name, for example Hourly Rate.
  4. Choose the lookup table Under Look up the value in, pick Rates. A Lookup cannot look up the table it is on.
  5. Choose what to return Under Return this field, pick Hourly Rate.
  6. Add a key Under Match rows where, click Add key. Pick the Rates column Service, leave this record's field selected, and pick the Jobs field Service. The key reads: Service equals this record's Service.
  7. Choose the output type Leave Output Type on Number for a rate or price, and set Decimal Places (up to 6). Choose Text to return text.
  8. Test and save Try the settings in the Test it box (see Test it before you save), then click Save.

These field types cannot be used as keys, on either side: File, Attachments, Image, Signature, Connection, Password, Rich Text, Address, Name, Link, Calendar and Date Range. Any field of the lookup table can be returned.

Match on several keys #

Click Add key again to add more columns that must match. A row is used only when every key matches, for example Service equals this record's Service and Region equals this record's Region. A Lookup can have up to 8 keys; remove one with its x button.

To match a column against the same value for every record, choose a fixed value instead of this record's field and type the value. Use it to pick a scenario: if your rate chart has a Scenario column with rows for Current and Proposed, one Lookup can use the current rates and another the proposed ones.

When the lookup column or this record's field is a Number, Currency, Rollup or Auto Increment field, the key compares numbers, so 5 matches 5.0. Text that is not a number never matches a number key.

Brackets and tiers: nearest lower or higher value #

Exact keys need the same value in the lookup table. For tiers and brackets, where the table lists only the start or end of each band, use Range match:

Range matchUses
Exact keys onlyOnly the keys under Match rows where (the default)
Nearest lower valueThe row with the highest value at or below this record's value, like VLOOKUP with approximate match
Nearest higher valueThe row with the lowest value at or above this record's value
Between a from and a to columnThe row whose from and to columns contain this record's value (see Between and dates)
Interpolate between rowsA value on a straight line between the rows just below and just above (see Interpolate between rows)

After you choose a range match, pick the lookup table column to compare, then after against choose this record's field and the field, or a fixed number and type it.

  • Nearest lower value example: a Discounts table with Min Quantity rows of 0, 10 and 50. An order of 37 uses the 10 row.
  • Nearest higher value example: a Shipping table with Max Weight rows of 1, 5 and 20. A parcel of 3.2 uses the 5 row.
  • Exact keys still apply. With a Region key, only the rows of this record's region are searched for the nearest value.
  • A value outside the table, such as an order of -1 with Nearest lower value, matches no row. Rows whose range column is empty, or holds text that is not a number, are skipped.
  • A number column is compared with a field of this record that is not a date or time field.

Between a from and a to column, and dates #

With Between a from and a to column, pick the From column and the To column. The row whose range contains this record's value is used; both ends count as inside. An empty To column means "and up". If the ranges of several rows contain the value, only the ones that start latest count as matching.

The range column can hold numbers, dates or times. Tadabase compares by the type of the lookup table column:

Lookup table columnMatched with this record'sFixed value format
DateDate or Date/Time field. Compared by day: a date and time on the record counts as its day.YYYY-MM-DD
Date/TimeDate or Date/Time field, compared to the secondYYYY-MM-DD or YYYY-MM-DD HH:MM (a date alone means midnight)
TimeTime or Date/Time field, compared by time of dayHH:MM
Any otherA field that is not a date or time, compared as a numberA number

The from and to columns must both be numbers, both dates or both times. Example: a Rates table with Effective From and Effective To dates gives each job the rate in effect on its Job Date. Nearest lower value on an Effective From date column does the same without a to column: it uses the row in effect on the record's date.

Interpolate between rows #

Interpolate between rows draws a straight line between the row just below and the row just above this record's value, like Excel's TREND. With Distance rows of 10 (charge 20) and 20 (charge 30), a distance of 14 returns 24. A value exactly on a row returns that row's value.

  • Interpolation returns a number: Output Type must be Number, and the returned column should hold numbers.
  • Second key to interpolate on (optional): pick a second column, for a table such as a delivery charge by distance and weight. The value is blended from the four surrounding rows (bilinear interpolation), so the table needs a row for each combination of the two keys. If one of the four rows is missing, nothing matches. The two keys must be different columns.
  • Use the nearest end row outside the table: on, a value below the first row uses the first row and a value above the last row uses the last row. Off (the default), a value outside the table counts as no match and gets the When nothing matches, use value.
  • Exact keys still apply, so you can interpolate within this record's region or product.

When nothing matches or several rows do #

When nothing matches, use sets the value when no row matches. Leave it empty to leave the field empty. With Output Type Number, it must be a number, and a matching row whose returned value is not a number also gets this value.

When several rows match, use decides what happens when more than one row matches, for example because the chart has a duplicate row:

OptionReturns
The first row (lowest row number)The value of the matching row with the lowest record ID (the default)
The last row (highest row number)The value of the matching row with the highest record ID
The total of their valuesThe sum of the matching rows' values (Number output only)
The average of their valuesThe average of the matching rows' values (Number output only)
The smallest valueThe lowest of the matching rows' values
The largest valueThe highest of the matching rows' values
Nothing: treat it as no matchA value only when exactly one row matches; otherwise the When nothing matches, use value

With a range match, only the rows at the nearest value count as matching. With Between a from and a to column, only the matching rows that start latest count. With interpolation, the setting applies to rows that sit on the same table point.

Test it before you save #

The Test it box appears once you have chosen Return this field. It runs the settings as they are on screen, saved or not, and changes nothing.

  1. Pick a record or type values In the list, pick one of the table's 50 newest records, shown with the values the Lookup reads. Or leave Type values selected and type a value for each field the Lookup reads.
  2. Run it Click Test, or press Enter in a value box. Picking a record runs the test straight away.

The result shows:

  • Result: the value the field would get, or (empty).
  • Why, in one sentence, for example "3 rows matched (#4, #9, #12), so the first one, #4, is used." or "No row matched, so the field is empty."
  • For a record, the values of its fields that the Lookup read.
  • The lookup table rows that were used, with the columns the Lookup reads and the returned column last. Each row is labeled: Also matched, not used marks rows that matched but did not give the value, which is how duplicates show up. With interpolation, rows are labeled Below and Above, or Below / below, Above / below, Below / above and Above / above with two keys.

If a setting is missing, the box says what to fix. A test that takes longer than 5 seconds stops with a message that the lookup table may be too large to search without an index. Changing a setting clears the result.

When the value updates #

  • When a record changes a field the Lookup matches with, its Lookup is calculated again.
  • When a row of the lookup table changes in a column the Lookup reads (a key, range or return column), the Lookup is calculated again for every record of the table. Change a rate in the chart and every record that uses it, old or new, shows the new rate.
  • Fields that use the Lookup, such as an Equation, are calculated again after it.

To keep a value from changing when the chart changes, see the next section.

Keep a value that stops following the chart #

A Lookup always shows the chart as it is now. When a record should keep the rate it had at a certain moment, such as when a quote is sent, use one of these:

  • Copy the value with a workflow. Add a plain Number or Text field, for example Rate at Booking. In a workflow on the table, add an Update Record step on the Source Record that sets Rate at Booking from the Lookup field. Run it at the moment the value should be kept, for example when Status changes to Booked. The copied value stays as it is when the chart changes later. See Create, update and copy records in a workflow.
  • Keep the history in the chart. Give the lookup table an Effective From date and match it with Nearest lower value (or Between a from and a to column) against the record's date. When rates change, add new rows instead of editing old ones: older records keep matching the rows that were in effect on their date.

Using the Lookup in an Equation does not keep an old value: the Equation is calculated again whenever the Lookup changes.

Lookup, Connection, Rollup or Equation? #

You want toUse
Copy a value from the row of a chart, price list or rate table that matches this record's values, with no link between the recordsLookup
Link a record to records you choose, such as a job to its customer, and show their valuesConnection
Count, total, average or list the records connected to this oneRollup
Calculate from this record's own fieldsEquation

A Lookup finds its row by values, so nobody has to pick or link the right rate: change the job's service or quantity and it finds the new row. A Connection is a link that someone or something sets. A Rollup summarizes many connected records; a Lookup returns one value from the rows that match. They combine well: an Equation can multiply a job's Hours by its Hourly Rate Lookup.

Was this page helpful?

Something wrong or missing on this page? Tell us.