I have never used Power Query before so I'm not sure if what I'm asking is even possible. I want to find out a way in excel to dynamically import data from a website based on the value given in another cell, something like importhtml in google sheets. For example, here's what I created using google sheets:
If you notice,
- the first column is an
NPInumber which is what I'd provide (copy and paste to the column in excel). - the second column is the
urlfrom where the data to is to be downloaded. The url number value is referenced to column A. - importHTML then imports the data and puts them in the column following URL.
So, is it possible to do something like this using Excel Power Query?
Although I used the regular url to pull down the data in html table format, I prefer to use JSON if possible. The only reason I didn't use JSON in google sheets is because I don't know how to. The URL for NPI lookup API is https://npiregistry.cms.hhs.gov/api?number= where we can enter any NPI number to lookup.