+ Reply to Thread
Results 1 to 7 of 7

Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    Gurus,

    Please note that I have searched far and wide trying to piece up some VBA code but have failed miserably.


    In Excel, I have COLUMN A populated with 500 URL links (all intranet urls) that have the following format: http://testportalwps/search/Pages/Pe...lts.aspx?k=411

    The urls are all the same and the only thing that changes are the 3 digits in the end and they are not sequential.

    All these urls open up to a webpage where I would like to extract certain pieces of information like First/Last Name, Telephone Number, etc. into COLUMN B.

    I know I can do "Get External Data From Web" in excel but that gives me too much information plus I would have to plug that url in every time.

    Any other ideas please? I was thinking if I could get the entire source code of each of the webpages into COLUMN B, I could then regex out the info I need. Unless anyone has any easier method.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    The link does not work.
    Please attach a sample excel book, including the URLs in column A and the desired results in columns B, C or D.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column


  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    Sorry for the late response. Unfortunately, the link will not work because the site is on an Intranet.

    I have found a site that something that is similar:

    https://extranet.in.gov/PhoneDirectory/EmpSearch.aspx


    I am attaching an excel workbook with the format I am looking to extract. Each of the urls in column A take you to a page like the snapshot below. I just want to extract certain data from that page.

    The following image is a snapshot of the actual Intranet site from which I want to extract
    the Last/First Name & Department. Though I am not 100% sure, I believe that the actual Intranet site is powered by Sharepoint People Directory.

    Here is another website that seems similar:
    https://mywsu.winona.edu/search/Page...aspx?k=jackson

    Thank you for any help you guys can provide.

    portal test site.jpg
    Attached Files Attached Files
    Last edited by superdesi; 10-29-2016 at 12:27 AM.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    You will find it difficult to get a data from the Intranet site if you are not familiar with basic HTML and web scrapping methods. Since we do not know or can not see the source file(view), it is almost impossible to come up with a solution.
    For instance, I can see the source file for the site you have attached and can work through to get the area where the page I want to get in to.
    I can try, but not sure if it works. Do the following:
    Right click on the Last/First Name & Department
    Click inspect element. This will open up the page. Do not click the source view as this opens the entire page, but we are only interested on the part of the page (Last/First Name & Department.) section
    Then, copy 5 or 6 lines below and above of the line. When you click the inspect element,the page takes straight in that row.
    This will show us the HTML elements for Last/First Name & Department.

  6. #6
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    Thanks for replying. I will do as instructed and report back what I find.

    I appreciate it.

  7. #7
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Extracting Specific Data From 500 Intranet URLs In Excel On To Another Column

    Hello again. I did as instructed. I even read up on using the function 'GetElementById' but I can't figure out the difference between id, span, etc.

    Thank you very much for your help.


    P.S. I tried inserting the html code but I kept on getting a firewall error saying that it is not allowed. So I am
    including it as a txt file.
    Attached Files Attached Files

+ 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. Extract Specific Data From URLs
    By censo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2016, 12:41 AM
  2. Extracting specific Data from a column
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2012, 07:14 PM
  3. Extracting data from column based on specific criteria and pasting into new column
    By vanvalkenburg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2012, 10:26 PM
  4. extracting URLs from cells and copying to another
    By RichAutechre in forum Excel General
    Replies: 2
    Last Post: 09-29-2011, 02:28 PM
  5. Importing data from intranet to excel 2003
    By b16dlg in forum Excel General
    Replies: 0
    Last Post: 06-09-2010, 08:24 AM
  6. Extracting numbers from text or URLs
    By Willius in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2008, 02:01 PM
  7. Extracting specific data from one column to another column
    By DK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2006, 09:25 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