This post is kinda old, but I had a bit of fun tweaking your formula around and came out with this:
IF(
OR(
{Column A},
{Column B},
{Column C},
{Column D},
{Column E}
),
(
IF(
{Column A} = {Column F},
{Column A},
""
) &
IF(
{Column B} = {Column F},
" " & {Column B},
""
) &
IF(
{Column C} = {Column F},
" " & {Column C},
""
) &
IF(
{Column D} = {Column F},
" " & {Column D},
""
) &
IF(
{Column E} = {Column F},
" " & {Column E},
""
)
)
)
This was a nice challenge!
Here’s what I tweaked.
Instead of nesting a bunch of IF statements together, I separated them and concatenated possible values. I like this modular structure for a few reasons.
If a problem occurred with one of the fields, or if you wanted to remove, add, or modify a set of fields in the future, you won’t have to dig your hands into the guts of a huge nested mess to try and plug in a new field or configuration.