
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 15, 2022 04:56 PM
Hello Community!
I am struggling with writing a formula for naming the main field in a table.
I would like the formula to name the field {Company} if the field {Company} is not blank and name the field {Last Name} - {First Name} if the {Company} field is blank.
I just can’t seem to get it right. Can anyone help?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 15, 2022 05:08 PM
Hi Leah, could you try the following?
IF(
{Company},
{Company},
{Last Name} & " - " & {First Name}
)
Edit: Fixed the error kuovonne pointed out below!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 15, 2022 05:36 PM
I think you mean
{Last Name} & " - " & {First Name}
Otherwise you are trying to do math with names.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 15, 2022 05:37 PM
Formulas can set cell values. Formulas cannot change the name of a field (the column heading).
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 15, 2022 05:53 PM
Hahahha now you’ve got me thinking about how I would deduct a first name from a last name
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2022 01:42 PM
YES! You are amazing. I was totally over complicating it.
Thank you :slightly_smiling_face:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 18, 2022 01:43 PM
:rofl: too funny - and good point!
