Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Formula with formatting for cemetery database

Topic Labels: Formulas
Solved
Jump to Solution
186 2
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

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

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")&(")")