joeynotjoe / airtable-formulas

A collection of Airtable formulas that I find useful.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

airtable-formulas

A collection of Airtable formulas that I find useful.

Extract URL from Attachment field

MID({Attachment Field},FIND("(",{Attachment Field})+1,(FIND(")",{Attachment Field})-1)-(FIND("(",{Attachment Field})))

Simple IF formula

IF(
  {Field}=BLANK(),
  "",
  "Otherwise {Field}"
  )

Remove some special characters, convert to lowercase, and change spaces to underscores

SUBSTITUTE(
    SUBSTITUTE(
        SUBSTITUTE(
            SUBSTITUTE(
                SUBSTITUTE(
                    SUBSTITUTE(
                        SUBSTITUTE(
                            SUBSTITUTE(
                                SUBSTITUTE(
                                    SUBSTITUTE(
                                        SUBSTITUTE(
                                            SUBSTITUTE(
                                                SUBSTITUTE(
                                                    SUBSTITUTE(
                                                        SUBSTITUTE(
                                                            LOWER(Name),
                                                            " ",
                                                            "_"
                                                        ),
                                                        "'",
                                                        ""
                                                    ),
                                                    "/",
                                                    "_"
                                                ),
                                                "\"",
                                                ""
                                            ),
                                            "”",
                                            ""
                                        ),
                                        ":",
                                        "_"
                                    ),
                                    "“",
                                    ""
                                ),
                                "&",
                                "and"
                            ),
                            ".",
                            ""
                        ),
                        ",",
                        "_"
                    ),
                    "’",
                    ""
                ),
                "*",
                ""
            ),
            "/",
            ""
        ),
        "(",
        ""
    ),
    ")",
    ""
)

About

A collection of Airtable formulas that I find useful.