Home

Import data from Web

%3CLINGO-SUB%20id%3D%22lingo-sub-767467%22%20slang%3D%22en-US%22%3EImport%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767467%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'm%20after%20some%20advice%20regarding%20importing%20website%20data%20into%20excel.%20I'm%20trying%20to%20import%20numbers%20from%20a%20website%20that%20are%20not%20in%20tables.%20When%20I%20paste%20the%20website%20address%20into%20excel%2C%20it%20comes%20up%20with%20lots%20of%20errors%20and%20won't%20even%20preview%20the%20webpage.%20The%20first%20error%20is%20JSON%20is%20undefined.%20If%20I%20close%20this%20it%20comes%20up%20with%20more%20errors%20about%20the%20content.%20I%20have%20attached%20a%20picture%20of%20the%20content%20of%20the%20webpage%20which%20is%20on%20an%20internal%20system.%20I%20thought%20the%20issue%20might%20be%20that%20the%20boxes%20on%20the%20webpage%20are%20expandable%20if%20you%20click%20on%20them%3F%3C%2FP%3E%3CP%3EAny%20advice%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-767467%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20for%20web%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767496%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767496%22%20slang%3D%22en-US%22%3EMaybe%20that%20website%20comes%20with%20a%20webservice%20to%20cnnect%20to%20the%20data%20in%20other%20ways%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767509%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767509%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20so%20much%20for%20your%20prompt%20response.%3C%2FP%3E%3CP%3EDo%20you%20mean%20where%20the%20source%20of%20data%20comes%20from%3F%3C%2FP%3E%3CP%3EI've%20looked%20into%20getting%20the%20source%20data%20that%20is%20displayed%20on%20the%20webpage%20but%20that%20is%20not%20possible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767526%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767526%22%20slang%3D%22en-US%22%3ENo%2C%20I%20mean%20companies%20sometimes%20offer%20a%20separate%20means%20of%20getting%20data%20than%20via%20their%20website.%20One%20technology%20used%20for%20that%20goal%20is%20called%20a%20webservice.%20Search%20the%20website%20for%20the%20keyword%20%22webservice%22.%20If%20nothing%20comes%20up%20they%20don't%20offer%20that.%20Which%20precise%20button%20did%20you%20use%20(and%20in%20which%20version%20of%20Excel)%20to%20try%20to%20get%20the%20data%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767646%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767646%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20indication%20on%20the%20webpage%20that%20there%20is%20a%20webservice.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%202%20options%3A%3C%2FP%3E%3CP%3EData%20-%20From%20Web%3C%2FP%3E%3CP%3EData%20-%20New%20Query%20-%20From%20Other%20Sources%20-%20From%20Web%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20identified%20the%20element%20on%20the%20webpage%20using%20F12.%20Is%20it%20possible%20to%20use%20the%20location%20of%20the%20data%20on%20the%20webpage%20to%20pull%20into%20Excel%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767653%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767653%22%20slang%3D%22en-US%22%3EIs%20it%20possible%20to%20share%20the%20url%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767752%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767752%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%20not%2C%20it%20is%20on%20an%20internal%20system.%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20use%20the%20Xpath%20of%20the%20specific%20number%20I%20need%20and%20use%20this%20in%20Excel%20to%20pull%20the%20data%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767810%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767810%22%20slang%3D%22en-US%22%3EYou%20would%20probably%20have%20to%20revert%20to%20VBA%20for%20this.%20Do%20you%20have%20any%20VBA%20experience%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-768014%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-768014%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20little%20experience%20but%20so%20far%20I've%20been%20unable%20to%20get%20it%20to%20work.%20I've%20attached%20a%20picture%20of%20the%20data%20I'm%20trying%20to%20get.%20I%20need%20the%20number%2017387.%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F124052iBCEF614DE19BB2CC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Image.png%22%20title%3D%22Image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-768043%22%20slang%3D%22en-US%22%3ERe%3A%20Import%20data%20from%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-768043%22%20slang%3D%22en-US%22%3EPlease%20share%20any%20code%20you%20have%20and%20indicate%20what%20doesn't%20work.%3C%2FLINGO-BODY%3E
cswestwood
Occasional Contributor

Hello,

I'm after some advice regarding importing website data into excel. I'm trying to import numbers from a website that are not in tables. When I paste the website address into excel, it comes up with lots of errors and won't even preview the webpage. The first error is JSON is undefined. If I close this it comes up with more errors about the content. I have attached a picture of the content of the webpage which is on an internal system. I thought the issue might be that the boxes on the webpage are expandable if you click on them?

Any advice would be greatly appreciated.

9 Replies
Maybe that website comes with a webservice to cnnect to the data in other ways?

@Jan Karel Pieterse 

Thanks so much for your prompt response.

Do you mean where the source of data comes from?

I've looked into getting the source data that is displayed on the webpage but that is not possible.

No, I mean companies sometimes offer a separate means of getting data than via their website. One technology used for that goal is called a webservice. Search the website for the keyword "webservice". If nothing comes up they don't offer that. Which precise button did you use (and in which version of Excel) to try to get the data?

@Jan Karel Pieterse 

 

There is no indication on the webpage that there is a webservice.

 

I tried 2 options:

Data - From Web

Data - New Query - From Other Sources - From Web

 

I have identified the element on the webpage using F12. Is it possible to use the location of the data on the webpage to pull into Excel?

Highlighted
Is it possible to share the url?

@Jan Karel Pieterse 

Unfortunately not, it is on an internal system.

Is it possible to use the Xpath of the specific number I need and use this in Excel to pull the data?

You would probably have to revert to VBA for this. Do you have any VBA experience?

@Jan Karel Pieterse 

 

I have a little experience but so far I've been unable to get it to work. I've attached a picture of the data I'm trying to get. I need the number 17387. Image.png

Please share any code you have and indicate what doesn't work.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies