Mar 28, 2018 01:37 AM
I have a formula that pulls text from another field. That field is a link to another table. Airtable is creating quotation marks around the text if the text contains any punctuation marks. Is there a way of stopping this??
Mar 28, 2018 03:16 AM
What is your formula? Or what are you trying to do?
Mar 28, 2018 03:22 AM
That’s Airtable’s default behavior when accessing a text field with embedded punctuation. I know of no way to prevent it from happening — but you could always wrap your formula with something like
MID({Text},2,LEN({Text})-2)
Apr 20, 2019 12:15 AM
@W_Vann_Hall
I may need your help on this on. Being from the Netherlands I keep running into issues related to quotation marks.
Your formula works for me, but… it works for all records (duh…). The thing is that unlike @Thomas_Lea only the records that have a comma included appear with the quotation marks. So, I figured I use a formula like
IF(LEFT({text},1)=""",MID({text},2,LEN({text})-2),{text})
The formula is not accepted because of the 3 quotation marks.
Do you have an idea how I can solve this?
Thanks in advance!
André
Apr 20, 2019 05:56 AM
Airtable will accept strings surrounded with single quotes as well as double quotes. In your case, you can search for a double quote by surrounding it with single quotes, like this.
IF(LEFT({text}, 1)='"', MID({text}, 2, LEN({text})-2), {text})
Apr 20, 2019 07:09 AM
Worked like a charm!! Thank you.
Nov 17, 2020 06:26 AM
I think this post has the solution I need. But, I can’t figure out how to apply it to my existing formula.
I have a 4-part title (4 fields concatenated into 1 to make up a title). Not all 4 parts are used in every record, so I wanted my formula to remove added punctuation or spaces in case of a blank field in the concatenated string. I can’t figure out how to keep that aspect of my formula and add the aspect in this forum that gets rid of the unwanted quotation marks when part of the title has a comma.
Here is my current formula:
IF(OR({Agency, Program}=BLANK(),{Module Title}=BLANK()),CONCATENATE({Agency, Program},{Module Title}),CONCATENATE({Agency, Program}," - ",{Module Title}))
Can anyone help me adapt this to get rid of the quotation marks, please? Thank you!!!
Nov 17, 2020 03:31 PM
This could be done by wrapping your existing formula inside a SUBSTITUTE()
function. If all you need to do is remove quotes, this will work:
SUBSTITUTE(IF(OR({Agency, Program}=BLANK(),{Module Title}=BLANK()),CONCATENATE({Agency, Program},{Module Title}),CONCATENATE({Agency, Program}," - ",{Module Title})), '"', "")
If there aren’t any quotes to remove, the output will remain unmodified.
Nov 18, 2020 08:03 AM
Worked perfectly. Thank you!!!
Jan 28, 2021 06:44 PM
Hey Justin!
I have the same problem as Jessica, I did follow the steps you guided but I am still having the quotations.
SUBSTITUTE(CONCATENATE({Customer},"-",{Project Street Address},"-",{Project Number}), ‘"’, ‘""’)