Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Extrat server address Email

✭✭✭
edited 10/28/22 in Formulas and Functions

Hello,

I cannot extract the server address from an email address. Can you help me ?

Ex : xxxx.xxxx@grdf-txt.com

I want to extract "grdf-txt"

My formula : =UPPER(MID(LEFT(Email@row; FIND("."; Email@row) - 1); FIND("@"; Email@row) + 1; LEN(Email@row)))

This formula works but only for the following format xxxxxx@grdf-txt.com

Thank you


Cordialy,

azerty64

Best Answer

  • ✭✭✭✭✭✭
    Answer ✓

    @azerty64

    Here's another version which deals with both .com and .org email addresses in case someone has a .org email address:

    =IFERROR(MID(email@row, FIND("@", email@row) + 1, FIND(".com", email@row) - FIND("@", email@row) - 1), MID(email@row, FIND("@", email@row) + 1, FIND(".org", email@row) - FIND("@", email@row) - 1))

Answers

  • ✭✭✭✭✭✭

    @azerty64

    =MID(email@row, FIND("@", email@row) + 1, FIND(".com", email@row) - FIND("@", email@row) - 1)

  • ✭✭✭✭✭✭
    Answer ✓

    @azerty64

    Here's another version which deals with both .com and .org email addresses in case someone has a .org email address:

    =IFERROR(MID(email@row, FIND("@", email@row) + 1, FIND(".com", email@row) - FIND("@", email@row) - 1), MID(email@row, FIND("@", email@row) + 1, FIND(".org", email@row) - FIND("@", email@row) - 1))

  • ✭✭✭

    Hello @Mike TV ,

    Thank's it's perfect.

    Have a nice day !!!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2