Skip to main content
Solved

Formula for if one field is blank then choose another field

  • January 29, 2021
  • 4 replies
  • 101 views

Forum|alt.badge.img+3

Hi all, I’m literally just starting out, but trying to make my primary field choose the correct investor (either personal or corporate). Is there a way to make this work in something like this format:

IF(
{Company Name}!=BLANK(),
{Company Name})
ELSE(
{Last Name})

The first part of the string works, but I can’t get the second part to work. Any suggestions would be greatly appreciated.

Best answer by ScottWorld

Welcome to the community, @Michelle-T!

There is no “Else” statement in Airtable, and you can also just test for the presence of a field’s value by using its name. So your formula could look like this:

IF(
{Company Name},
{Company Name},
{Last Name}
)

4 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Answer
  • January 29, 2021

Welcome to the community, @Michelle-T!

There is no “Else” statement in Airtable, and you can also just test for the presence of a field’s value by using its name. So your formula could look like this:

IF(
{Company Name},
{Company Name},
{Last Name}
)

Forum|alt.badge.img+3
  • Author
  • New Participant
  • January 29, 2021

OMG thank you! I feel like such a dummy now! that was so easy!!


Forum|alt.badge.img+3
  • Author
  • New Participant
  • January 29, 2021

Welcome to the community, @Michelle-T!

There is no “Else” statement in Airtable, and you can also just test for the presence of a field’s value by using its name. So your formula could look like this:

IF(
{Company Name},
{Company Name},
{Last Name}
)

Hi again, just out of curiosity, can i add the first name field as well? I have been trying, but I can’t make it show up.
Thanks!
Michelle


ScottWorld
Forum|alt.badge.img+35
  • Genius
  • January 30, 2021

Hi again, just out of curiosity, can i add the first name field as well? I have been trying, but I can’t make it show up.
Thanks!
Michelle


Here you go:

IF(
{Company Name},
{Company Name},
{First Name} & " " & {Last Name}
)

This documentation might be helpful for you: