+ Reply to Thread
Results 1 to 4 of 4

Trimming Folder Path of a Url Without Losing First Folder

  1. #1
    Registered User
    Join Date
    03-22-2021
    Location
    Los Angeles
    MS-Off Ver
    112
    Posts
    6

    Trimming Folder Path of a Url Without Losing First Folder

    When the case "the case when the domain is "es-la.domain.com/peter.75054"

    With this formula below, everything is correct

    =ArrayFormula(IFERROR(REGEXEXTRACT(A1:A,"\w+.\w+/\w+")))


    YES, GREAT! HOWEVER< THERE IS ONE LAST PROBLEM:

    What if the folder has a period in the folder name...such as the case of: "the case when the domain is "es-la.domain.com/peter.75054"

    Do you see how there is a period in between peter "." 75054 ?

    This throws the formula off. The output of the formula is not correct, it defers the output to an incorrect folder

  2. #2
    Registered User
    Join Date
    03-22-2021
    Location
    Los Angeles
    MS-Off Ver
    112
    Posts
    6

    Re: Trimming Folder Path of a Url Without Losing First Folder

    Do you know how to fix this?

    I need someone who understand how to make that final fix, because the person who helped me this far is not available anymore.

    This did not work

    =ArrayFormula(IFERROR(REGEXEXTRACT(A1:A,"^([^\/]*\/[^\/]*)")))

  3. #3
    Registered User
    Join Date
    03-22-2021
    Location
    Los Angeles
    MS-Off Ver
    112
    Posts
    6

    Re: Trimming Folder Path of a Url Without Losing First Folder

    screenshot3514eA3.png

    This board will not let me post links, so I am trying this as an image.

  4. #4
    Registered User
    Join Date
    03-22-2021
    Location
    Los Angeles
    MS-Off Ver
    112
    Posts
    6

    Re: Trimming Folder Path of a Url Without Losing First Folder

    I am not able to post links, so I am trying to post this as an image.

    If there is anyone here who can help me with this simple formula fix, please help! I am working on a major deadline and need this asap.

    Attachment 724954

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. move files from Source Folder to Destination Folder, based on file name & Path
    By seenai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2020, 09:29 AM
  2. [SOLVED] MacScript for Selecting a Folder doesn't return the path of the selected folder
    By Tsjallie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 01-16-2020, 04:24 PM
  3. [Path location and Document macro]Require File , Folder and sub-folder path creator macro
    By Nitish Shrestha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2017, 02:23 AM
  4. Replies: 2
    Last Post: 12-29-2015, 04:19 AM
  5. [SOLVED] Help with Macro to find full path of Folder, using input of first 4 chars of folder name
    By Anxiety in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2015, 09:02 AM
  6. Open Folder (Prompt User for final folder name in location path)
    By synergeticink in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2014, 03:33 PM
  7. Code to list the folder path and sub folder path of a specific file
    By kalai1587 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 03:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1