Help

Formula with formatting for cemetery database

Topic Labels: Formulas
Solved
Jump to Solution
858 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Samuel_Duncan
5 - Automation Enthusiast
5 - Automation Enthusiast

I have created this database to catalog those buried in a cemetery. I understand that I can’t use formatting in a formula–unfortunately. In a perfect world, I need to format “short name” in quotes (or bolding) and “maiden name” in italics. Could any of the experts suggest a different approach if indeed formatting is not available in formulas?

Thanks,
Sam

paynegap.info

1 Solution

Accepted Solutions
Samuel_Duncan
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks John. Final and successful formula:

{First Name} & " " & IF({Short Name}," \"") & {Short Name} & IF({Short Name},"\" ") & {Middle Name} & " " & IF({Maiden Name}," [") & {Maiden Name} & IF({Maiden Name},"] ") & {Last Name} & " " & {Suffix} &("(")&DATETIME_FORMAT({Birth Date},"YYYY")&("-")&DATETIME_FORMAT({Death Date},"YYYY")&(")")

See Solution in Thread

2 Replies 2
John_Reid
5 - Automation Enthusiast
5 - Automation Enthusiast

Hey Sam,

Adding quotes is possible in a formula field, for your field, something like the below could be added.

IF({Short Name},"\" ","")

When adding quotes you need to add a ‘’ before so that the formula knows to treat the quote as a string.

So your formula would look like this (apologies, I didn’t write out the whole formula but you get the idea):

{First Name} & " " & IF({Short Name}," \"","") & {Short Name} & IF({Short Name},"\" ","") & {Middle Name} & " " & {Last Name} & " " & Suffix

You can see this in the base, I duplicated it here.

As far as I know, it isn’t possible to make words bold or italics in formulas.

Hope this helps!
John

Samuel_Duncan
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks John. Final and successful formula:

{First Name} & " " & IF({Short Name}," \"") & {Short Name} & IF({Short Name},"\" ") & {Middle Name} & " " & IF({Maiden Name}," [") & {Maiden Name} & IF({Maiden Name},"] ") & {Last Name} & " " & {Suffix} &("(")&DATETIME_FORMAT({Birth Date},"YYYY")&("-")&DATETIME_FORMAT({Death Date},"YYYY")&(")")