Skip to main content

extracting google docs id from url

  • January 11, 2024
  • 1 reply
  • 278 views

Forum|alt.badge.img+2

Hi all! I'm trying to extract the ID from a google drives doc link, any ideas on how to do this? Knowing the ID of the file is the one after the /d/?

1 reply

preshetin
Forum|alt.badge.img+5
  • Inspiring
  • January 11, 2024

Hi @pedroarango11 - You can use a formula like this:

 

MID({URL}, FIND("/d/", {URL}) + 3, FIND("/edit", {URL}) - FIND("/d/", {URL}) - 3)

 

In this formula, replace {URL} with the field name or variable containing the URL string.

Here is how this formula works in action:

Hope this helps!

P.S. Kudos to Chat GPT whom I asked this question!