Change Query link based on cell vaues

Heimdal

New Member
Joined
Nov 18, 2015
Messages
15
Hi everyone

Im trying to figure out a way to change an URL based on column with different items.

Power Query:
    Source = Web.Page(Web.Contents("https://www.albion-online-data.com/api/v2/stats/View/T5_HEAD_GATHERER_FIBER,T5_ARMOR_GATHERER_FIBER,T5_SHOES_GATHERER_FIBER")),
    Data0 = Source{0}[Data],

What i need is the item name to be variable based on a cell information.
My programming skills are comepletly awful since i'm new to programming.

Something like this:
VBA Code:
    Source = Web.Page(Web.Contents("https://www.albion-online-data.com/api/v2/stats/View/"Sheet2, Colmun"A"...")),
    Data0 = Source{0}[Data],
I know its completly wrong, but is it possible to reference some parts of an url to another sheet column and cell? Now the column will have different amounts of listings so it could be 3 cells with information or it could be 30. It depends on the amount of information written into the cell in column A. But its should be able to identify when no more information is meet and stop there.

I've searching all over the web, but i couldnt find a specific identical request which i could borrow the coding.

Thanks in advance.
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,215,360
Messages
6,124,489
Members
449,166
Latest member
hokjock

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top