Skip to main content

Help with Concatenate field with a condition

  • November 18, 2022
  • 3 replies
  • 37 views

Forum|alt.badge.img+1

Hi! I need to create a formula that concatenates the First Name and Last Name columns. I could do that part easily enough. But I also need it to look to see if there’s a value in the Preferred Name field and if that field has a value in it, to substitute that for the First Name.

Is this possible? How would I do this?

Here’s a screenshot, for reference:

3 replies

Forum|alt.badge.img+6
  • Participating Frequently
  • November 18, 2022

Hi Ashley,
try something like this:

CONCATENATE(
	IF(
		TRIM({Preferred Name})
		, {Preferred Name}
		, {First Name}
	)
	, " "
	, {Last Name}
)

This should do the work


Forum|alt.badge.img+1
  • Author
  • New Participant
  • November 18, 2022

Hi Ashley,
try something like this:

CONCATENATE(
	IF(
		TRIM({Preferred Name})
		, {Preferred Name}
		, {First Name}
	)
	, " "
	, {Last Name}
)

This should do the work


That worked perfectly. Thank you so much!


Forum|alt.badge.img+6
  • Participating Frequently
  • November 18, 2022

That worked perfectly. Thank you so much!


you’re welcome Ashley