+ Reply to Thread
Results 1 to 11 of 11

Problem getting web query onto work sheet

  1. #1
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Problem getting web query onto work sheet

    I am having trouble getting this web page to load onto a work sheet the way i want it to,, what happens is all the data loads onto just one row when I want it to look like it does when windows opens the page which is all data on a separate row

    is it possible for Excel to read this sort of query and place the data on different rows and then update

    thanks

    https://www.nicehash.com/api?method=...ent&location=0

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem getting web query onto work sheet

    If the URL that you gave is one that you reached after signing in, it is not accessible to see what is going wrong. All I get is an error note from the URL provided but if I go to the site and choose accessible without signing in and the yellow box with an arrow shows in the upper left of the window, the table and a lot of crap can be imported.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Problem getting web query onto work sheet

    Thank's for looking ,,,

    Do you not get the printout shown below from my URL? you should because it is a public data feed no need to sign up ect


    I have tried the method you said it used to work but the site changed and now the data contained in the tables on the site home page does not load into Excel any more even when you press the arrow for the whole page the rest of the page loads in but not the table of numbers

    this below is now the only data I can get from the site, I can get Excel to load it in and update every few minutes but all that data loads onto just one row and I cannot extract the figures I want.

    I need to extract 11 certain figures out of that data relative to algo's 1 to 11


    {"result":{"stats":[{"profitability_above_ltc":"17.70","price":"0.1556","profitability_ltc":"0.1322","algo":0,"speed":"36.62957100"},{"price":"0.0079","profitability_btc":"0.0083","profitability_above_btc":"-4.00","algo":1,"speed":"2162055.60500000"},{"profitability_above_ltc":"80.03","price":"0.4761","profitability_ltc":"0.1322","algo":2,"speed":"0.00094800"},{"profitability_above_ltc":"1908.51","price":"0.3124","profitability_ltc":"0.1322","algo":3,"speed":"11.94475303"},{"profitability_above_ltc":"1497.60","price":"0.3250","profitability_ltc":"0.1322","algo":4,"speed":"0.30266700"},{"profitability_above_ltc":"509.97","price":"0.0016","profitability_ltc":"0.1322","algo":5,"speed":"0.21887500"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.1322","algo":6,"speed":"0.00000000"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.1322","algo":7,"speed":"0.00000000"},{"profitability_above_ltc":"1748.51","price":"6.1102","profitability_ltc":"0.1322","algo":8,"speed":"0.01694813"},{"profitability_above_ltc":"273.14","price":"0.2819","profitability_ltc":"0.1322","algo":9,"speed":"0.08433700"},{"profitability_above_ltc":"533.04","price":"0.0062","profitability_ltc":"0.1322","algo":10,"speed":"0.00000000"},{"profitability_above_ltc":"849.65","price":"0.1932","profitability_ltc":"0.1322","algo":11,"speed":"0.01822800"},{"profitability_above_ltc":"902.59","price":"0.2651","profitability_ltc":"0.1322","algo":12,"speed":"43.50111100"},{"profitability_above_ltc":"-100.00","price":"0.0004","profitability_ltc":"0.1322","algo":13,"speed":"0.00002056"},{"profitability_above_ltc":"2206.37","price":"0.4356","profitability_ltc":"0.1322","algo":14,"speed":"11.71580056"},{"profitability_above_ltc":"2206.37","price":"3.0495","profitability_ltc":"0.1322","algo":100,"speed":"1.26366376"}]},"method":"stats.global.current"}

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem getting web query onto work sheet

    I tried once more with a web query and didn't get an error! The download came into 1 cell.
    I copied that 1 cell into Word and did a replace for }, and replaced with },^p and then copy and pasted back into Excel.
    This is the result:
    A
    2
    {"result":{"stats":[{"profitability_above_ltc":"27.04","price":"0.1680","profitability_ltc":"0.1322","algo":0,"speed":"35.79183100"},
    3
    {"price":"0.0080","profitability_btc":"0.0083","profitability_above_btc":"-3.73","algo":1,"speed":"2206865.64000000"},
    4
    {"profitability_above_ltc":"80.12","price":"0.4763","profitability_ltc":"0.1322","algo":2,"speed":"0.00083800"},
    5
    {"profitability_above_ltc":"1784.70","price":"0.2932","profitability_ltc":"0.1322","algo":3,"speed":"11.25444906"},
    6
    {"profitability_above_ltc":"1504.46","price":"0.3264","profitability_ltc":"0.1322","algo":4,"speed":"0.30900900"},
    7
    {"profitability_above_ltc":"508.84","price":"0.0016","profitability_ltc":"0.1322","algo":5,"speed":"0.21242000"},
    8
    {"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.1322","algo":6,"speed":"0.00000000"},
    9
    {"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.1322","algo":7,"speed":"0.00000000"},
    10
    {"profitability_above_ltc":"3842.58","price":"13.0322","profitability_ltc":"0.1322","algo":8,"speed":"0.10717603"},
    11
    {"profitability_above_ltc":"273.89","price":"0.2825","profitability_ltc":"0.1322","algo":9,"speed":"0.08838102"},
    12
    {"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.1322","algo":10,"speed":"0.00000000"},
    13
    {"profitability_above_ltc":"850.54","price":"0.1934","profitability_ltc":"0.1322","algo":11,"speed":"0.01598900"},
    14
    {"profitability_above_ltc":"970.39","price":"0.2831","profitability_ltc":"0.1322","algo":12,"speed":"42.41847800"},
    15
    {"profitability_above_ltc":"-100.00","price":"0.0004","profitability_ltc":"0.1322","algo":13,"speed":"0.00002130"},
    16
    {"profitability_above_ltc":"2129.91","price":"0.4212","profitability_ltc":"0.1322","algo":14,"speed":"10.17598700"},
    17
    {"profitability_above_ltc":"3842.58","price":"5.2129","profitability_ltc":"0.1322","algo":100,"speed":"1.05195202"}]},
    18
    "method":"stats.global.current"}


    The results were identical if copied into Word then search and replace as above and copy and paste into Excel.

  5. #5
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Problem getting web query onto work sheet

    Doverman thank you for your thoughts,, I can now see a little light ahead,,,,

    However can I let you know that this web query has to update and reload with every 5 minutes so that my macro can then record the different values onto a data base.. I feel therefore that you method would not be automated,, if possible I need Excel to arrange the data in rows on its own,, my macro can then record the new data every 5 minutes

    cheers

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem getting web query onto work sheet

    The import into Excel puts all the data into one cell and it is a real "jumble". However, the rows can possibly be separated by using VBA and replacing }, with },<enter> to get the rows. Someone conversant in VBA should be able to take this further.

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Problem getting web query onto work sheet

    How about:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Problem getting web query onto work sheet

    This works great on a new workbook thanks very much ,,, The only issue i am having is :- when I add your code to my existing macro I cannot get it to write to the sheet I want,,,, I have been changing the "Sheets(1).Cells" part of your code for "Sheets (whatever number sheet I want).Cells" but it does not seem to listen and puts the data on a different sheet

    I will persevere

    thanks again

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Problem getting web query onto work sheet

    Change the number to the name of the sheet you're after

  10. #10
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Problem getting web query onto work sheet

    Yeah got it thank's

    That is just so totally solved

    thanks

  11. #11
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Problem getting web query onto work sheet

    Glad it got you sorted

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Formula in one work sheet wont accept result from another in a different work sheet.
    By Belinea2010 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-07-2015, 12:24 PM
  2. [SOLVED] copy work sheet from another work book into already exits sheet
    By Baskar5353 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2015, 03:18 AM
  3. Excel extended problem work sheet, help?
    By Gogpo2 in forum Excel General
    Replies: 1
    Last Post: 04-11-2015, 08:09 AM
  4. Problem with selecting range with in query table after query refresh
    By shooter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2012, 11:55 AM
  5. Running Query with Sheet Protection and Password Does Not Work
    By gregb281 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2011, 10:26 AM
  6. Replies: 1
    Last Post: 10-29-2005, 11:05 AM
  7. [SOLVED] Problem doing Query to Access with Excel sheet protected
    By Harry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2005, 12:06 PM

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