+ Reply to Thread
Results 1 to 5 of 5

ImportHTML Formula Help

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    ImportHTML Formula Help

    Hi,

    I am familiar with the ImportHTML function, but I want to insert the text in a cell into the actual html. Is this possible?

    For example, if I have the text "ABC" in cell A1, and the text "ABC" also exists within a url, and I periodically update the contents of cell A1, is it possible to inject the contents of A1 it into the following formula rather than having to manually type "ABC" into the link when I update cell A1:

    =ImportHTML("http://finance.yahoo.com/q/hp?s=ABC&a=05&b=15&c=2012&d=01&e=6&f=2099&g=d","table",15)

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: ImportHTML Formula Help

    Is the placement of ABC in url is constant or variable? if so what is the mid area?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: ImportHTML Formula Help

    Quote Originally Posted by :) Sixthsense :) View Post
    Is the placement of ABC in url is constant or variable? if so what is the mid area?
    It can vary and still be a valid url, but it is always in the same place in the url. For example, you can substitute xyz for abc and the url will still be valid.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: ImportHTML Formula Help

    Not able to follow can you please provide at least 2 or 3 example data and the expected outcome for better understanding

  5. #5
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: ImportHTML Formula Help

    Cell A1 contains the text 'ABC'. I want to change the contents of cell A1 on occasion. When I change the text in cell A1 to 'XYZ' I want it to automatically update the link used in the ImportHTML function to reflect the new text in cell A1.

    For example, instead of =ImportHTML("http://finance.yahoo.com/q/hp?s=ABC&a=05&b=15&c=2012","table",15) I would like the url to read whatever is in cell A1 =ImportHTML("http://finance.yahoo.com/q/hp?s=A1&a=05&b=15&c=2012","table",15).

    Thus, if I change the contents of cell A1 to XYZ the url will also update to http://finance.yahoo.com/q/hp?s=XYZ&a=05&b=15&c=2012

+ 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.6.0 RC 1