+ Reply to Thread
Results 1 to 12 of 12

Thread: Find pdf link in a cell

  1. #1
    Registered User
    Join Date
    10-16-2006
    Posts
    17

    Find pdf link in a cell

    Hi guys,


    I have a database export in a spreadsheet. I would like to search a cell of text and extract any pdf links, so anything that ends in pdf. I have played around with FIND and LOOKUP functions but without any luck.

    Any help would be greatly appreciated. Should be a relatively easy one but not for me!

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Find pdf link in a cell

    Can you give an example? Before and after?

  3. #3
    Registered User
    Join Date
    10-16-2006
    Posts
    17

    Re: Find pdf link in a cell

    Before:

    A1
    the quick brown fox this/is/a.pdf

    C1 - Result field
    Empty

    After
    C1
    this/is/a.pdf

  4. #4
    Valued Forum Contributor Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds/Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    1,031

    Re: Find pdf link in a cell

    Possibly:
    PHP Code: 
    =MID(A1,MAX((MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1)=" ")*ROW(INDIRECT("A1:A"&LEN(A1))))+1,LEN(A1)) 
    This is an array formula so should be entered with control+shift+enter
    Click the * below to say thanks

    Girls sleep with guys who use photoshop, but marry the ones who work with Excel

    Corduroy
    pillows: They're making headlines!

    Did you mean: recursion
    http://www.google.com/search?hl=en&q=recursion

  5. #5
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Find pdf link in a cell

    Does that mean there will only ever be one mention of pdf per cell? If not, please provide a better data sample.

  6. #6
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Find pdf link in a cell

    Kyle, that will only extract the text after the last space. If there is text after the PDF link, that won't work.

    Mundo, please provide a data sample that represents all the possible variations of how often and where in the text your PDF link can occur.

    cheers,

  7. #7
    Valued Forum Contributor Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds/Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    1,031

    Re: Find pdf link in a cell

    hmm, thanks Teylyn, hadn't thought about that....
    Click the * below to say thanks

    Girls sleep with guys who use photoshop, but marry the ones who work with Excel

    Corduroy
    pillows: They're making headlines!

    Did you mean: recursion
    http://www.google.com/search?hl=en&q=recursion

  8. #8
    Registered User
    Join Date
    10-16-2006
    Posts
    17

    Re: Find pdf link in a cell

    PHP Code: 
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industrys standard dummy text ever since the 1500swhen an unknown printer took a galley of type and scrambled it to make a type specimen bookIt has survived not only five centuriesbut also the leap into electronic typesettingremaining essentially unchanged. <a href="/webadmin/folder/folder/test.pdf">Download the pdf</a>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p

  9. #9
    Valued Forum Contributor Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds/Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    1,031

    Re: Find pdf link in a cell

    hmm, that doesn't look like a database export, it looks like a web page
    Click the * below to say thanks

    Girls sleep with guys who use photoshop, but marry the ones who work with Excel

    Corduroy
    pillows: They're making headlines!

    Did you mean: recursion
    http://www.google.com/search?hl=en&q=recursion

  10. #10
    Registered User
    Join Date
    10-16-2006
    Posts
    17

    Re: Find pdf link in a cell

    It's an export from the database of a website.

  11. #11
    Valued Forum Contributor Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds/Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    1,031

    Re: Find pdf link in a cell

    ok, try this, this will only return one pdf link (the first)

    PHP Code: 
    =MID(A1,FIND("""/",A1)+1,FIND(""">",A1)-FIND("""/",A1)-1
    Click the * below to say thanks

    Girls sleep with guys who use photoshop, but marry the ones who work with Excel

    Corduroy
    pillows: They're making headlines!

    Did you mean: recursion
    http://www.google.com/search?hl=en&q=recursion

  12. #12
    Registered User
    Join Date
    10-16-2006
    Posts
    17

    Re: Find pdf link in a cell

    Thanks Kyle123

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0