# Re: Combining fields when some are sometimes empty

Solved
604 0
cancel
Showing results for
Did you mean:
7 - App Architect

Grateful to those in this community who helped me set up my family’s bookstore inventory. It’s going well and I often recommend Airtable to others.

So now I’m using this formula…

Title & " • " Author & " • " Place & " • " Date

But because a number of books do NOT indicate author, place, or date, I sometimes end up with this:

Title • • • Date

That’s not great for catalogs. Is there a formula I can use that will leave off the extra bullet(s) when one or more of the fields are empty?

1 Solution

Accepted Solutions
18 - Pluto

You can just do a simple IF() statement before each field to check if it exists.

So you can do this:

Title & IF(Author, " • " & Author) & IF(Place, " • " & Place) & IF(Date, " • " & Date)

3 Replies 3
18 - Pluto

You can just do a simple IF() statement before each field to check if it exists.

So you can do this:

Title & IF(Author, " • " & Author) & IF(Place, " • " & Place) & IF(Date, " • " & Date)

7 - App Architect

Yay! ScottWorld for the win! Thanks so much! :grinning:

18 - Pluto

Haha, you’re welcome! Glad I could help! :slightly_smiling_face: