I’m working with an Airtable database that has two separate tables and I need help with a lookup formula.
My setup:
Table A is named “People” and contains:
- Column called “Boys” with about 30k entries
- Column called “Girls” with about 30k entries
Table B is named “Tasks” and has:
- Column called “PersonName”
- Column called “Greeting”
What I want to achieve:
For each PersonName in table Tasks, I need the Greeting column to automatically show:
- “sir” if the name appears in the Boys column from People table
- “madam” if the name appears in the Girls column from People table
- “unknown” if the name is not found in either column
My Google Sheets solution worked like this:
=IF(ISNUMBER(MATCH(B2, people!$A$1:$A$30000, 0)), "sir", IF(ISNUMBER(MATCH(B2, people!$B$1:$B$30000, 0)), "madam", "unknown"))
This formula checked if PersonName existed in either column and returned the appropriate greeting. I can’t figure out how to replicate this logic in Airtable. Is this even possible or should I stick with Google Sheets for this type of cross-table lookup?